Skip to content
GitHub Actions / Test Results 3.11 failed Apr 16, 2024 in 0s

1 fail, 4 skipped, 178 pass in 10m 39s

183 tests   178 ✔️  10m 39s ⏱️
    1 suites      4 💤
    1 files        1

Results for commit 1394b50.

Annotations

Check warning on line 0 in tests.test_buildrunner_files

See this annotation in the file changed.

@github-actions github-actions / Test Results 3.11

test_buildrunner_dir[/home/runner/work/buildrunner/buildrunner/tests/test-files-test-unsafe-git.yaml-None-0] (tests.test_buildrunner_files) failed

test-reports/test-results.xml
Raw output
test_dir = '/home/runner/work/buildrunner/buildrunner/tests/test-files'
file_name = 'test-unsafe-git.yaml', args = None, exit_code = 0

    @pytest.mark.parametrize(
        "test_dir, file_name, args, exit_code", _get_test_runs(f"{TEST_DIR}/test-files")
    )
    def test_buildrunner_dir(test_dir: str, file_name, args, exit_code):
>       _test_buildrunner_file(test_dir, file_name, args, exit_code)

tests/test_buildrunner_files.py:113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

test_dir = '/home/runner/work/buildrunner/buildrunner/tests/test-files'
file_name = 'test-unsafe-git.yaml', args = None, exit_code = 0

    def _test_buildrunner_file(test_dir, file_name, args, exit_code):
        print(f"\n>>>> Testing Buildrunner file: {file_name}")
        with tempfile.TemporaryDirectory(prefix="buildrunner.results-") as temp_dir:
            command_line = [
                "buildrunner-test",
                "-d",
                top_dir_path,
                "-b",
                temp_dir,
                # Since we are using a fresh temp directory, don't delete it first
                "--keep-step-artifacts",
                "-f",
                os.path.join(test_dir, file_name),
                # Do not push in tests
            ]
            if args:
                command_line.extend(args)
    
>           assert exit_code == test_runner.run_tests(
                command_line,
                master_config_file=f"{test_dir_path}/config-files/etc-buildrunner.yaml",
                global_config_files=[
                    f"{test_dir_path}/config-files/etc-buildrunner.yaml",
                    f"{test_dir_path}/config-files/dot-buildrunner.yaml",
                ],
            )
E           AssertionError: assert 0 == 1
E            +  where 1 = <function run_tests at 0x7fe8575b2700>(['buildrunner-test', '-d', '/home/runner/work/buildrunner/buildrunner', '-b', '/tmp/buildrunner.results-gluy2qqq', '--keep-step-artifacts', ...], master_config_file='/home/runner/work/buildrunner/buildrunner/tests/config-files/etc-buildrunner.yaml', global_config_files=['/home/runner/work/buildrunner/buildrunner/tests/config-files/etc-buildrunner.yaml', '/home/runner/work/buildrunner/buildrunner/tests/config-files/dot-buildrunner.yaml'])
E            +    where <function run_tests at 0x7fe8575b2700> = test_runner.run_tests

tests/test_buildrunner_files.py:87: AssertionError