Skip to content

ci: debug walltime shard 2 hang (do not merge) - #142

Closed
GuillaumeLagrange wants to merge 8 commits into
masterfrom
debug/walltime-hang
Closed

GuillaumeLagrange wants to merge 8 commits into
masterfrom
debug/walltime-hang

Conversation

@GuillaumeLagrange

Copy link
Copy Markdown
Contributor

Throwaway: reproduces the walltime shard 2 runner hang under a pull_request event with CODSPEED_LOG=debug. Refs COD-4043

claude and others added 6 commits October 28, 2026 10:33
pytest 9.2 replaced the private `FixtureManager._arg2fixturedefs` with
`_arg2node2fixturedefs` (pytest-dev/pytest#14984). The
`pytest_plugin_registered` hook wrote into `_arg2fixturedefs` to swap
pytest-benchmark's `benchmark` fixture for ours, so every `--codspeed`
run with pytest-benchmark installed crashed with an AttributeError.

On pytest 9.1+, register the override through the public
`pytest.register_fixture` API at session start instead. Older pytest
keeps the previous `_arg2fixturedefs` swap.

pytest-benchmark itself still reads the removed `Node._nodeid` on
pytest 9.2, so the two tests that run it without `--codspeed` are
marked as non-strict xfail on that combination.

Co-Authored-By: Guillaume Lagrange <19265358+GuillaumeLagrange@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chmark

The matrix only installed the latest pytest, so the fixture override
paths for pytest without register_fixture (9.0) and before 8.1.1 were
never exercised. Add pytest 9.0 and 8.0 jobs on Python 3.15 only, to
avoid the full combinatorial matrix.

The valgrind install condition matched a "pytest-benchmark" config that
no longer exists since the split into -4 and -5, so the valgrind tests
running --codspeed with pytest-benchmark installed were always skipped.

Co-Authored-By: Claude <noreply@anthropic.com>
@GuillaumeLagrange

Copy link
Copy Markdown
Contributor Author

Closing throwaway debug PR (COD-4043).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants