Skip to content

test(ci): tests safe across UTC midnight; Python client on 3.9 to 3.13 - #243

Merged
scrimshawlife-ctrl merged 3 commits into
mainfrom
chore/test-ci-hardening
Oct 29, 2026
Merged

scrimshawlife-ctrl merged 3 commits into
mainfrom
chore/test-ci-hardening

Conversation

@scrimshawlife-ctrl

@scrimshawlife-ctrl scrimshawlife-ctrl commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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 at start + 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.toml declares 3.9 and later, with classifiers for 3.9 to 3.13, but CI only ran 3.12. The client-python job now runs pytest on all five versions. mypy --strict and python -m build stay on 3.12. client-python isn't a required check, so the job names gaining a version suffix doesn't affect branch protection.

Found by the new matrix:

  • ubuntu-latest is 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 on ubuntu-24.04.
  • test_quote_post_quotes_every_text_field checked 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 tests
  • Python client locally, via uv: 135 passed and 2 skipped on each of 3.9, 3.10, 3.11, 3.12 and 3.13

🤖 Generated with Claude Code

- 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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T07:30:49.993169Z 06841ea 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.

scrimshawlife-ctrl and others added 2 commits October 29, 2026 00:33
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]>
@scrimshawlife-ctrl
scrimshawlife-ctrl merged commit db2b5f1 into main Oct 29, 2026
9 checks passed
@scrimshawlife-ctrl
scrimshawlife-ctrl deleted the chore/test-ci-hardening branch October 29, 2026 07:47
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.

1 participant