Skip to content

Calibration tests: fresh once-per-process store warnings for each test - #597

Merged
jtravs merged 1 commit into
mainfrom
fix/calibration-test-warnings
Nov 9, 2026
Merged

jtravs merged 1 commit into
mainfrom
fix/calibration-test-warnings

Conversation

@jtravs

@jtravs jtravs commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

The store and the profile reader in solprop_native warn once per message per process. Two calibration tests expect the same "ignoring a calibration row" StoreWarning: test_a_malformed_row_is_passed_over (added in #582's last commit) and test_an_unreadable_or_equal_row_is_replaced_on_publication. When xdist puts both in one worker, the second sees no warning and fails ("DID NOT WARN"). This happened on #582's last run (the linux-x86_64-v2 and windows-amd64-v2 lanes), which merged before the fix was pushed. main's CI passed on the merge only because the two tests ran in different workers.

This adds tests/calibration/conftest.py with an autouse fixture that gives each calibration test fresh _WARNED sets in both modules. Without it, running the two tests in one process fails; with it, they pass in either order, and so does the whole calibration suite.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XGENPvJBFJdUL6p1LDpss5

The store and the profile reader warn once per message per process, so of two
tests expecting the same warning in one worker, the second saw none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGENPvJBFJdUL6p1LDpss5
Copilot AI balanced review requested due to automatic review settings November 9, 2026 10:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T10:52:26.865869Z aed8303 PR opened
🔒 Security Review ✅ Completed 2026-11-09T10:53:10.724116Z aed8303 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jtravs
jtravs merged commit 0901bf6 into main Nov 9, 2026
78 of 80 checks passed
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