Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump wrapt from 1.15.0 to 1.16.0 #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Bump wrapt from 1.15.0 to 1.16.0

a14e891
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Bump wrapt from 1.15.0 to 1.16.0 #8

Bump wrapt from 1.15.0 to 1.16.0
a14e891
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results (reference) failed Nov 30, 2023 in 0s

1 fail, 431 pass in 21m 31s

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

Results for commit a14e891.

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: '9634bdb542da13c0ca2bfa9aeff77c90' != 'df386fe4e04a72c96e140f0566a5c849'
- 9634bdb542da13c0ca2bfa9aeff77c90
+ 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: '9634bdb542da13c0ca2bfa9aeff77c90' != 'df386fe4e04a72c96e140f0566a5c849'
E           - 9634bdb542da13c0ca2bfa9aeff77c90
E           + df386fe4e04a72c96e140f0566a5c849
E            : Changing python/requirements.txt requires to update the MD5 hash in composite/action.yaml

test_action_yml.py:54: AssertionError