Repository navigation
tests: remove accidental waits, duplicate runs and checks of wording - #128
Merged
Merged
Conversation
… once The job runner helper polled at the production 60 s, so one test slept a minute; the test servers' shutdown waited out serve_forever's 0.5 s poll in every teardown. Together about two of the suite's five and a half minutes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Searches of the page's source for strings, banned words in the docs and in comments, and the host dialog's texts, which the dialog's interaction test reads from the dialog as it runs. The docs' route, chapter links and figure labels stay checked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Which stages take a resume or an edit is the stage tables', and the table tests check the exact sets; the route keeps one taken and one refused case of each (16 cases fewer). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…exists The assertion was a Path, which is always true. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Two pairs of tests ran the same round for one assertion each: the assertions are kept in one run. The set id of a send-back and of a revoke is asserted in the entry the workflow writes, not found in its source. The replay that changed a log format is gone; the recorded history beside it stays. The 21 recorded-history tests start a Temporal test server only when they record. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Why
CI takes six minutes, and 5 min 43 s of that is pytest. Part of that time was waiting on nothing, and an audit of the suite found tests that repeat a scenario, tests that check wording, and one assertion that could not fail.
What changes
Waits removed (about two minutes)
_jobshelper intests/test_autodev_jobs.pybuilt the job runner with its production poll interval of 60 s. It now passespoll_s=0.serve_forever(poll_interval=0.01).Tests removed or merged
resumeand a buffer'seditthrough the route go from 20 cases to four: one taken and one refused each. Which stages take them is the stage tables', and the table tests check the exact sets. The revoked, shelved and stale-revision cases stay.Assertions made real
Path, which is always true. It now checks that the newer commit's file exists.No code outside
tests/is touched.Measured
On
main, pytest runs 1,969 tests in 5 min 43 s. With this PR it runs 1,946 tests in 2 min 53 s, and the whole CI job takes 3 min 9 s, down from 6 min 6 s.🤖 Generated with Claude Code