Skip to content

Bump charset-normalizer from 3.3.0 to 3.3.2 #7

Bump charset-normalizer from 3.3.0 to 3.3.2

Bump charset-normalizer from 3.3.0 to 3.3.2 #7

GitHub Actions / Test Results (reference) failed Nov 30, 2023 in 0s

1 fail, 431 pass in 21m 23s

       71 files         71 suites   21m 23s ⏱️
     432 tests      431 ✔️     0 💤   1
30 672 runs  29 828 ✔️ 812 💤 32

Results for commit 46f661b.

Annotations

Check warning on line 25 in python/test/test_action_yml.py

See this annotation in the file changed.

@github-actions github-actions / Test Results (reference)

32 out of 71 runs failed: test_composite_action (python.test.test_action_yml.TestActionYml)

artifacts/Test Results (python-3.10, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.10, macos-12)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.10, macos-13)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.10, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.10, ubuntu-22.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.11, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.11, macos-12)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.11, macos-13)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.11, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.11, ubuntu-22.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.12.0-rc.3, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.12.0-rc.3, macos-12)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.12.0-rc.3, macos-13)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.12.0-rc.3, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.12.0-rc.3, ubuntu-22.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.7, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.7, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.8, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.8, macos-12)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.8, macos-13)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.8, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.8, ubuntu-22.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.9, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.9, macos-12)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.9, macos-13)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.9, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.9, ubuntu-22.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-installed, macos-11)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-installed, macos-12)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-installed, macos-13)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-installed, ubuntu-20.04)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-installed, ubuntu-22.04)/test-results/pytest.xml [took 0s]
Raw output
AssertionError: '3acc34d5540e851ea91812221c6db7c7' != 'df386fe4e04a72c96e140f0566a5c849'
- 3acc34d5540e851ea91812221c6db7c7
+ df386fe4e04a72c96e140f0566a5c849
 : Changing python/requirements.txt requires to update the MD5 hash in composite/action.yaml
self = <test_action_yml.TestActionYml testMethod=test_composite_action>

    def test_composite_action(self):
        with open(project_root / 'action.yml', encoding='utf-8') as r:
            dockerfile_action = yaml.safe_load(r)
    
        with open(project_root / 'composite/action.yml', encoding='utf-8') as r:
            composite_action = yaml.safe_load(r)
    
        self.assertIn('runs', dockerfile_action)
        self.assertIn('runs', composite_action)
        dockerfile_action_wo_runs = {k: v for k, v in dockerfile_action.items() if k != 'runs'}
        composite_action_wo_runs = {k: v for k, v in composite_action.items() if k != 'runs'}
    
        # composite action has outputs.json.value, which does not exist for dockerfile action
        self.assertIn('value', composite_action.get('outputs', {}).get('json', {}))
        del composite_action.get('outputs', {}).get('json', {})['value']
    
        # compare dockerfile action with composite action
        self.assertEqual(dockerfile_action_wo_runs, composite_action_wo_runs)
        self.assertIn(('using', 'composite'), composite_action.get('runs', {}).items())
    
        # check cache key hash is up-to-date in composite action
        # this md5 is linux-based (on Windows, git uses different newlines, which changes the hash)
        if sys.platform != 'win32':
            with open(project_root / 'python' / 'requirements.txt', mode='rb') as r:
                expected_hash = hashlib.md5(r.read()).hexdigest()
            cache_hash = next(step.get('with', {}).get('key', '').split('-')[-1]
                              for step in composite_action.get('runs', {}).get('steps', [])
                              if step.get('uses', '').startswith('actions/cache/restore@'))
>           self.assertEqual(expected_hash, cache_hash, msg='Changing python/requirements.txt requires '
                                                            'to update the MD5 hash in composite/action.yaml')
E           AssertionError: '3acc34d5540e851ea91812221c6db7c7' != 'df386fe4e04a72c96e140f0566a5c849'
E           - 3acc34d5540e851ea91812221c6db7c7
E           + df386fe4e04a72c96e140f0566a5c849
E            : Changing python/requirements.txt requires to update the MD5 hash in composite/action.yaml

test_action_yml.py:54: AssertionError