Repository navigation
factory: two tests expect the commit attribution and check-run source #1899 added - #2151
Merged
Merged
Conversation
Since #1899 the publish commit carries the approval trailer and then codeaf's shared attribution (Assisted-by and the co-author line, no model named). The test still expected the approval trailer alone.
Since #1899 every check run names its source (a commit status or a check run). The test compared against a run without one. A completed failure still rolls the checks up to failure while another run is queued.
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.
Summary
Two tests on
app/v3still expected what the code did before #1899, which changed both behaviours on purpose:commitApproved(internal/factory/run/publish.go) signs the approved commit with codeaf's shared attribution, no model named, unless the repository refuses trailers. Its doc comment says so. The test now pins that exact message, approval trailer first.CheckRunnames its source (a commit status or a check run). The roll-up itself was right: a completedfailuremakes the checksfailurewhile another run is stillqueued. Only the struct literal was stale.No production code changes.
Evidence
TestPublishCommitsPushesAndOpensThePullRequestWithTheTrailerpublish_test.go:301(message carries the attribution)internal/factory/runpackage ok)TestFilesChecksAndOneIssueforge_detail_test.go:79(Source:check_runmissing from the literal)Merge Danger
Door: two-way
Blast Radius: tests only.
🤖 Generated with Claude Code