Repository navigation
feat(roadmap): check each behavior group fails on base before the change - #3602
Merged
Merged
Conversation
The change folder plans the check that a behavior group's tests fail on the base commit of the group, and pass after the change. It names the trace event, the PR comment line and the recorded output of a group of kind other. The proposal records the premise check and the open tool that the check reuses.
The implement step replays the test files of a behavior group on the base commit of the group, with the head's tests overlaid. A group is accepted only when one of its tests fails in its call phase there. A test that passes on the base, or that cannot be collected there, stops the step with a message. One repair round may change only the test files. A group that changes no test file stops with no repair round. The replay reuses the base worktree and the JUnit run of devops_cli.ci.fail_to_pass. The result is kept on the step outcome, and the trace holds a check event for the run. Tasks of group 1 are ticked.
The trace holds a check event for each replay of a behavior group on its base commit. The PR comment of a step shows one line for each behavior group with the result of the replay and the tests that failed on the base. The tests of the replay now cover every change since the base commit, so a test that a wip commit of the keeper folded is still found. A shared support module holds the JUnit report and the tasks of a behavior group, and the job support stages extra files on the branch. Tasks of group 2 are ticked.
…3042) The implement guide lists the replay of a behavior group on its base commit among the exit checks. It states the repair round that a refused replay gets, and the lines that the comment of the pull request holds. The output of the verify commands of a group of kind other is kept in the same comment. Tasks of groups 3 and 4 are ticked. The output of a group of kind other came with the exit checks of group 1, and its comment line with group 2.
A replay that could not run, a replay that collects no test, and a group that says it is a behavior group now have tests. The PR comment maps each result of a replay to its words with a lookup, and the step matches the results without a catch-all, so mypy checks that every result is handled.
The change folder moves to the archive, and the spec of the implement step takes the requirements of the check: a behavior group's tests fail on the base commit, the trace holds the replay, the PR comment shows it, and a group of kind other keeps the output of its verify commands.
The PR comment test checked one behavior group. Add a change whose two groups are behavior groups, and check that each group has its own fail-to-pass line. Also check that the output of a verify command of a group of kind other is in the comment.
A test that stops with an error on base can fail in a setup or teardown phase, as well as in collection. The message said that the tests cannot be collected, which was wrong for those cases. It now says that they stop with an error before an assertion runs. The PR comment and the docs use the same wording.
…#3042)" This reverts commit 5a8d47b8855b3a2e7d123e5bf078605bc88de76a.
The repair round of a refused behavior group is the shared budget roadmap.implement.repair_rounds. A base error is an error before an assertion, not only a collection error. A PR comment line is shown for each behavior group the step replayed, also when the group then stops.
Owner
Author
Finish notes for #3042Local CI resultCommand:
Fail-to-pass result
Deviations
Open items
|
dan-petty
marked this pull request as ready for review
November 5, 2026 12:08
dan-petty
pushed a commit
that referenced
this pull request
Nov 5, 2026
🤖 I have created a release *beep* *boop* --- ## [0.61.0](v0.60.0...v0.61.0) (2026-11-05) ### Features * **roadmap:** check each behavior group fails on base before the change ([#3602](#3602)) ([7b8a4a1](7b8a4a1)) * **roadmap:** the inbox lists every person wait of each service repo ([#3616](#3616)) ([b81913b](b81913b)) * **telemetry:** measure how long roadmap items wait in each state ([#3601](#3601)) ([05c9ebd](05c9ebd)) ### Bug Fixes * **github:** send a GET again when its connection is lost ([#3608](#3608)) ([4528f49](4528f49)) * **roadmap:** accept a clean merge by a person on a branch ([#3603](#3603)) ([4fff490](4fff490)) * **roadmap:** the stage job waits for an open plan that creates a path ([#3613](#3613)) ([7e66373](7e66373)) --- 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>
12 tasks
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.
A behavior group adds behavior, so its new tests must fail before the change. The implement step now checks this.
For a behavior group, the step runs the test files of the group on the base commit of the group. The tests of the head are overlaid on the base. The step records the outcome of each test and the exit status of pytest, as a check event of the trace.
A group whose tests pass on the base is refused. A group whose tests stop with an error on the base is refused too. Such a refusal starts a repair round, in which the agent may change only test files.
A group that changes no test file is refused, with no repair round.
The PR comment shows the fail-to-pass result of each behavior group. A group of kind other records the masked, bounded output of its verify command in the step outcome and in the PR comment.
Closes #3042
Change:
openspec/changes/archive/2026-11-05-3042-behavior-group-fail-to-pass-check/