Repository navigation
fix(ci): size document-cli's mutation slices by its own cold cost per line - #1842
Merged
Merged
Conversation
… line The slice planner estimated every package's cold run at one second per source line. document-cli's tests are far heavier per line than any other package's: after a configuration change emptied every incremental cache, its four cold slices of about 4740 lines ran for 6646 to 8924 seconds, and the second was cancelled by its own job timeout after 10610 seconds, so the package had no report and the run ended cancelled. A package can now carry its own per-line rate, which sizes both its slices and their timeouts, and document-cli's is set above its slowest measurement. Raising the shared rate instead would have split every light package into slices its cold runs never needed. The cold slice measurements from that run join the calibration samples, each checked against its own package's rate. Refs #1791
|
If your organization's extra usage balance is empty or was never set up, an Owner of your Claude organization can add extra usage credits at claude.ai/admin-settings/usage. If your organization's monthly spend limit for extra usage is $0 or was reached, an Owner can raise it on the same page. If neither applies, contact Anthropic support. Once that's fixed, PR Steward starts at the next push to this pull request. |
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.
Scheduled run 45604657786 ended cancelled with no report for document-cli slice 2. A configuration change had emptied every slice's incremental cache, so every slice ran cold, and document-cli's cold cost per line is far above the one second per line the planner assumes for every package: its slices of about 4740 lines ran for 6646, 7055 and 8924 seconds of Stryker time, and slice 2 hit its derived 177-minute job timeout after 10610 seconds without finishing. Turbo buffers the task's output, so the cancelled job's log shows nothing from Stryker at all. Every other package's cold slice in that run stayed under 0.93 seconds per line.
The planner now takes a per-package rate (
COLD_SECONDS_PER_LINE_BY_PACKAGE), used for both slicing and the job timeout, with document-cli at 3 seconds per line, above slice 2's lower bound of 2.19. That plans document-cli into slices of about 1720 lines, each with a cold estimate inside the same 90-minute slice budget. The shared rate stays at 1, since raising it would re-slice every light package for one heavy one.The run's cold slice measurements are added as calibration samples, each checked against its own package's rate. With document-cli's rate at 1.5 the two slowest document-cli samples fail the envelope test, which is the guard for this class.
The 23 and 24 November runs restored warm caches and finished document-cli in under 40 minutes per slice, so this showed up only on a cold run. The next one will come with the next Stryker configuration change.
Refs #1791