Repository navigation
test: assert generated prompts reach the agent, and fix stale token-report test docstrings - #1702
Merged
Merged
Conversation
…eport test docstrings
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
Bumps generator version to 0.3.27 and syncs lockfile. 8 commits since 0.3.26: nightly restarts stalled CI causes and weekly restarts other unfinished issues (#1688), review-runs drains outage trackers the bot closed (#1700), nightly files unfixed reachable defects as issues (#1699), the sandbox gets its own XDG_RUNTIME_DIR (#1697), comment and test fixes (#1701, #1702, #1703), and the 0.3.26 regeneration (#1695).
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.
Test-only cleanup from the nightly survey: two prompt tests that couldn't fail on a mangled prompt now check the prompt the agent receives, and several test docstrings and names that described the older
jq-based token report now describe the current code.test_config_edge_cases.py.test_very_long_prompt_nightlyandtest_prompt_with_multilineonly asserted that the generated workflow parses as a mapping, so a truncated prompt or one with its line breaks lost would still pass. Both now compare the parsedprompt:input exactly (via the sharedagent_prompthelper, as the placeholder test above them already does). Two variables intest_setup_steps_preserves_orderwere still named after old setup steps (node_pos,cache_pos); they are renamed to match theecho first/echo laststeps they locate.test_token_report.py. The docstring oftest_one_unreadable_artifact_costs_its_own_run_and_no_otherdescribedjqfailing underset -euo pipefail.token_report.mainnow parsestoken-usage.jsonin Python and skips the run onTypeError/ValueError.test_workflow_prefix_is_passed_to_jq_as_datais renamed, since prefixes are matched withstr.startswithand never reachjq. A docstring citing the removedEXTRA_PREFIXESvariable now says "extra prefix arguments", and an unusedREPO_ROOTconstant is gone.test_list_recent_runs.py. Drops a function-localfrom datetime import datetimethat repeated the module-level import.The three files pass locally (177 tests). None of these edits touch the hunks open PR #1672 changes in
test_token_report.py.