Repository navigation
test(ci): tests safe across UTC midnight; Python client on 3.9 to 3.13 - #243
Merged
Merged
Conversation
- quarantine-first: the 'second run the same day' check runs an hour later or at the day's last second, whichever is sooner, so a start within an hour of midnight no longer crosses into tomorrow. - scan: neuronsUsed() sums today's and yesterday's counters, so two reads either side of midnight compare the same total. - ticket-36: the sign-in race waits 10 s instead of 2 s; the send is held until release, so any finite wait proves the point. - client-python CI runs pytest on 3.9, 3.10, 3.11, 3.12, and 3.13, the versions pyproject.toml declares; mypy --strict and the build stay on 3.12. client-python is not a required check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ubuntu-latest is now Ubuntu 26.04, for which setup-python has no 3.9 build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The block's nonces are random hex and contain 'cc0' about once in 60 runs, which failed the 3.10 job on #243. Drop them before checking that the license is not quoted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 tasks done
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
Two items from the 2026-10-29 gap analysis.
Tests that could fail near UTC midnight or on a slow runner:
quarantine-first.test.ts: the "a second run the same day sends nothing" check ran atstart + 1h, which crosses into the next UTC day if the test starts after 23:00. It now runs at whichever comes first, an hour later or the day's last second.scan.test.ts:neuronsUsed()built its counter key from the clock at read time, so a before-and-after pair either side of midnight compared different days. It now sums today's and yesterday's counters.ticket-36.test.ts: the sign-in race test now waits 10 s instead of 2 s. The email send is held until the test releases it, so any finite wait proves the page doesn't wait on it; 2 s left a slow runner little room.Python versions:
clients/python/pyproject.tomldeclares 3.9 and later, with classifiers for 3.9 to 3.13, but CI only ran 3.12. Theclient-pythonjob now runs pytest on all five versions.mypy --strictandpython -m buildstay on 3.12.client-pythonisn't a required check, so the job names gaining a version suffix doesn't affect branch protection.Found by the new matrix:
ubuntu-latestis now Ubuntu 26.04, and setup-python has no 3.9 build for it (3.9 reached end of life in October 2025). The 3.9 job runs onubuntu-24.04.test_quote_post_quotes_every_text_fieldchecked that "cc0" (the license) is absent from the block. The block's random hex nonces sometimes contain "cc0", about once in 60 runs, which failed the 3.10 job. The check now drops the nonces first. The fixed test passed 300 runs in a row locally.Checks
npm test: 67 files and 605 testsuv: 135 passed and 2 skipped on each of 3.9, 3.10, 3.11, 3.12 and 3.13🤖 Generated with Claude Code