Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test_requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ ruff>=0.1.7
ruff-lsp>=0.0.45
# Python 3.8 only supports up to 3.5.0
pre-commit<3.6
pytest-rerunfailures>=14.0
4 changes: 4 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ nodeenv==1.8.0
packaging==23.1
# via
# pytest
# pytest-rerunfailures
# ruff-lsp
platformdirs==3.5.1
# via virtualenv
Expand All @@ -49,11 +50,14 @@ pytest==7.3.1
# -r test_requirements.in
# pytest-cov
# pytest-randomly
# pytest-rerunfailures
# pytest-xdist
pytest-cov==4.1.0
# via -r test_requirements.in
pytest-randomly==3.12.0
# via -r test_requirements.in
pytest-rerunfailures==14.0
# via -r test_requirements.in
pytest-xdist==3.3.1
# via -r test_requirements.in
pyyaml==6.0.1
Expand Down
12 changes: 4 additions & 8 deletions tests/test_buildrunner_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"test-general-buildx.yaml",
"test-general.yaml",
"test-push-artifact-buildx.yaml",
"test-security-scan.yaml",
]


Expand Down Expand Up @@ -186,14 +185,11 @@ def test_buildrunner_arm_dir(test_dir: str, file_name, args, exit_code):
_test_buildrunner_file(test_dir, file_name, args, exit_code)


@pytest.mark.serial
@pytest.mark.skipif(
"arm64" not in platform.uname().machine,
reason="This test should only be run on arm64 architecture",
)
@pytest.mark.flaky(reruns=2, reruns_delay=1)
@pytest.mark.parametrize(
"test_dir, file_name, args, exit_code",
_get_test_runs(test_dir=f"{TEST_DIR}/test-files/arm-arch", serial_tests=True),
_get_test_runs(test_dir=f"{TEST_DIR}/test-files/scan", serial_tests=False),
)
def test_serial_buildrunner_arm_dir(test_dir: str, file_name, args, exit_code):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no files for test_serial_buildrunner_arm_dir to run. So I removed this test.

def test_buildrunner_scan_dir(test_dir: str, file_name, args, exit_code):
# The scan tests can be flaky, with errors like "TOOMANYREQUESTS: retry-after: 804.543µs, allowed: 44000/minute"
_test_buildrunner_file(test_dir, file_name, args, exit_code)
Loading