Repository navigation
fix(roadmap): measure a task group by the files its step reads - #2847
Conversation
…hem (#2838) The stage measure packed each file to the step budget, so constants.py counted 38159 tokens where the step reads 1847. One shared packed_file now serves the measure and the step.
The measure counted the files of reads and changes. The step reads the files that its tasks name. A stop record from the old measure also kept the items out. The measure now parses the group as the step does, and the record names the file cap of its measure.
|
Test results and review findings. Fail-to-pass: Full Live check: Findings of the review, all fixed:
Open point for a person: the prompt |
🤖 I have created a release *beep* *boop* --- ## [0.26.0](v0.25.0...v0.26.0) (2026-10-31) ### Features * **k8s:** preview requests in dry run for cluster commands ([#2839](#2839)) ([b6de1a4](b6de1a4)), closes [#2238](#2238) * **pr:** preview requests in dry run for pr commands ([#2835](#2835)) ([2a9b746](2a9b746)), closes [#2234](#2234) ### Bug Fixes * **k8s:** enforce the window of each gateway deployment ([#2843](#2843)) ([2ff7d9f](2ff7d9f)), closes [#2825](#2825) * **roadmap:** measure a task group by the files its step reads ([#2847](#2847)) ([2f3986a](2f3986a)), closes [#2838](#2838) * **tests:** replace real test sleeps with clock ([#2169](#2169)) ([#2833](#2833)) ([506f769](506f769)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The stage job measured a task group with more tokens than its implement step reads. Four P1 bugs (#2735, #2739, #2147, #2747) stopped on this and waited for a person.
This pull request fixes the cause. It does not build the second split ask that the issue asks for. A split moves files between groups, and it cannot make one file smaller. One file,
src/devops_cli/config/constants.py, counted 38159 tokens in the old measure and 1847 in the step. The issue criteria for a second ask and a stop after the last ask are replaced by the fix of the measure.What changes:
CONST_ROADMAP_IMPLEMENT_FILE_MAX_TOKENStokens, as the step packs them. A file that only theReads:line lists adds no token, as the step does not read it.roadmap/step_files.pyholds the parser,named_filesandpacked_file. The step and the stage job use the same code.stage.file_cap. Astage.needs_splitrecord counts only when it holds the file cap of now. The records of the four items come from the old measure, so the default plan takes them without a person.--itemstill overrules a record.Closes #2838