marked multithreaded trace benchmarks test to be skipped during CI as its flaky with github action machines
This commit is contained in:
parent
f14cf010ee
commit
e5ca10fbb6
2 changed files with 3 additions and 6 deletions
2
.github/workflows/unit-tests.yaml
vendored
2
.github/workflows/unit-tests.yaml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: uvx poetry install --with dev
|
||||
|
||||
- name: Unit tests
|
||||
run: uvx poetry run pytest tests/ --cov --cov-report=xml --benchmark-skip
|
||||
run: uvx poetry run pytest tests/ --cov --cov-report=xml --benchmark-skip -m "not ci_skip"
|
||||
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
|
|
|
|||
|
|
@ -177,11 +177,8 @@ def test_code_to_optimize_bubble_sort_codeflash_trace_sorter():
|
|||
output_file.unlink(missing_ok=True)
|
||||
shutil.rmtree(replay_tests_dir)
|
||||
|
||||
# Skip the test if the machine has only 1 thread/CPU
|
||||
@pytest.mark.skipif(
|
||||
multiprocessing.cpu_count() <= 1,
|
||||
reason="This test requires more than 1 CPU thread"
|
||||
)
|
||||
# Skip the test in CI as the machine may not be multithreaded
|
||||
@pytest.mark.ci_skip
|
||||
def test_trace_multithreaded_benchmark() -> None:
|
||||
project_root = Path(__file__).parent.parent / "code_to_optimize"
|
||||
benchmarks_root = project_root / "tests" / "pytest" / "benchmarks_multithread"
|
||||
|
|
|
|||
Loading…
Reference in a new issue