Skip to content

test(integration): copy the state-leak baseline into the GitLab mutation candidate - #4269

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
p-leak-baseline-harness
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
p-leak-baseline-harness

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

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.py errored with FileNotFoundError .../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 reads tests/fixtures/test_state_leak_baseline.json. This harness copies tests/conftest.py into 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

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Local (macOS, host guard): pytest -n 2 tests/integration/test_gitlab_sparse_transport_mutations.py gives 14 passed in 80 s. Ruff check and format pass on the changed file. The full-integration label runs the full suite here.

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.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.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

…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]>
@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.37.0 milestone Nov 20, 2026
@danielmeppiel Daniel Meppiel (danielmeppiel) added the full-integration Run the full integration suite (ci-integration.yml) on this PR before merge label Nov 20, 2026
Copilot AI balanced review requested due to automatic review settings November 20, 2026 10:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 4b3fd83 into main Nov 20, 2026
49 of 53 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the p-leak-baseline-harness branch November 20, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-integration Run the full integration suite (ci-integration.yml) on this PR before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants