This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / Test Results (Dockerfile)
failed
Oct 2, 2023 in 0s
2 fail, 429 pass in 17m 24s
Annotations
Check warning on line 25 in python/test/test_action_yml.py
github-actions / Test Results (Dockerfile)
32 out of 45 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
StopIteration
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@'))
E StopIteration
test_action_yml.py:51: StopIteration
Check warning on line 56 in python/test/test_action_yml.py
github-actions / Test Results (Dockerfile)
All 45 runs failed: test_composite_inputs (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.10, windows-2019)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.10, windows-2022)/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.11, windows-2019)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.11, windows-2022)/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.12.0-rc.3, windows-2019)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.12.0-rc.3, windows-2022)/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.7, windows-2019)/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.8, windows-2019)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.8, windows-2022)/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-3.9, windows-2019)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-3.9, windows-2022)/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]
artifacts/Test Results (python-installed, windows-2019)/test-results/pytest.xml [took 0s]
artifacts/Test Results (python-installed, windows-2022)/test-results/pytest.xml [took 0s]
Raw output
AssertionError: {'GITHUB_TOKEN': '${{ inputs.github_token [2117 chars] }}'} != {}
Diff is 2459 characters long. Set self.maxDiff to None to see it.
self = <test_action_yml.TestActionYml testMethod=test_composite_inputs>
def test_composite_inputs(self):
with open(project_root / 'composite/action.yml', encoding='utf-8') as r:
action = yaml.safe_load(r)
# these are not documented in the action.yml files but still needs to be forwarded
extra_inputs = ['files', 'root_log_level', 'log_level']
expected = {key.upper(): f'${{{{ inputs.{key} }}}}' for key in list(action.get('inputs', {}).keys()) + extra_inputs}
steps = action.get('runs', {}).get('steps', [])
step = next((step for step in steps if step.get('name') == 'Publish Test Results'), {})
inputs = {key.upper(): value for key, value in step.get('env', {}).items()}
> self.assertEqual(expected, inputs)
E AssertionError: {'GITHUB_TOKEN': '${{ inputs.github_token [2117 chars] }}'} != {}
E Diff is 2459 characters long. Set self.maxDiff to None to see it.
test_action_yml.py:68: AssertionError
Loading