Repository navigation
[codex] Speed up test matrix - #1623
Merged
Merged
Conversation
Collaborator
Author
|
@JuroOravec Thoughts? |
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
EmilStenstrom
force-pushed
the
codex/speed-up-test-matrix
branch
from
April 25, 2026 07:24
a219ca0 to
1018f95
Compare
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
EmilStenstrom
marked this pull request as ready for review
April 25, 2026 08:28
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
Contributor
Performance Benchmark ResultsComparing PR changes against master branch: Benchmarks that have stayed the same:
|
Collaborator
|
@EmilStenstrom Great idea! I remember that in the past there was a Firefox-specific bug w.r.t. to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This splits the slow full test run into focused CI lanes so the compatibility matrix stops paying for browser setup and heavyweight snapshot tests on every Python/Django/OS combination.
Changes include:
pytest-xdist, excluding browser E2E and benchmark snapshot tests.tests/test_templatetags_provide.pyserial because it has shared cache assertions that are not xdist-safe.e2eandbenchmark_snapshottox envs.DJC_TEST_BROWSERS, defaulting to all browsers locally while CI runs Chromium in the E2E lane.Timing
Measured locally before the change:
uv run pytest -q:1325 passed, 7 skipped,real 120.50sMeasured locally after the split:
1211 passed, 6 skipped,real 9.69s37 passed,real 11.55s4 passed,real 1.20sThe comparable local split is about
22.44stotal versus120.50sbefore. CI should see a larger practical win because Playwright browser installation now only happens in the E2E job.Validation
uv run tox -e py314-django52uv run tox -e e2e,benchmark_snapshotuv run ruff check tests/conftest.py tests/e2e/utils.pyuv run ruff format --check tests/conftest.py tests/e2e/utils.pyuv run mypy tests/conftest.py tests/e2e/utils.py