Repository navigation
test(integration): copy the state-leak baseline into the GitLab mutation candidate - #4269
Merged
Merged
Conversation
…ion candidate The root conftest's leak detector (#4226) reads tests/fixtures/test_state_leak_baseline.json; the mutation harness copied tests/conftest.py into its candidate tree but not the baseline, so every case errored with FileNotFoundError. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 10:56
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the baseline-copy change.
No open issues 🎉
What changed in this PR
Fixes the GitLab sparse-transport mutation harness regression caused by #4226’s state-leak detector, addressing a full-integration failure tracked under #4115.
Changes:
- Copies the required state-leak baseline into disposable candidate trees to prevent missing-file errors.
- Adds a comment explaining the fixture dependency.
| File | Description |
|---|---|
tests/integration/test_gitlab_sparse_transport_mutations.py |
Adds the state-leak baseline to the candidate tree’s copied inputs. |
Review effort: Balanced
3 of 9 tasks
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.
Description
Fixes main-regression family N from the #4149 full-integration dispatch (run 44719321796). All 14 cases of
tests/integration/test_gitlab_sparse_transport_mutations.pyerrored withFileNotFoundError .../candidate/tests/fixtures/test_state_leak_baseline.json.Root cause: #4226 added a state-leak detector to the root
tests/conftest.py, and the detector readstests/fixtures/test_state_leak_baseline.json. This harness copiestests/conftest.pyinto a disposable candidate tree, but not the baseline file. The fix adds that one file to the harness's copied inputs.Issue and approved scope
Issue: Part of #4115 (follow-up to #4226; release gate item 6, full validation green)
Human scope-approval comment: the #4115 apm-scope:v1 record.
Does this PR complete the issue, or what remains? No. Other #4115 work continues in #4150.
Type of change
Testing
Local (macOS, host guard):
pytest -n 2 tests/integration/test_gitlab_sparse_transport_mutations.pygives 14 passed in 80 s. Ruff check and format pass on the changed file. Thefull-integrationlabel runs the full suite here.Changelog
## [Unreleased]inCHANGELOG.md: user-visible effect first, 25 words or fewer, ending with(#PR); breaking changes only under upgrade notes; no Highlights; see.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)