Skip to content

Commit 9fe06a8

Browse files
committed
test(release): isolate report deduplication from workflow attempts
CI reruns expose GITHUB_RUN_ATTEMPT to a test that expects a URL for the first attempt. Keep its synthetic run identity independent of the surrounding workflow. Fixes: 5a997fb ("feat(release): post an immutable report of every classification and write record version 2") Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent 3b4db69 commit 9fe06a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cmd/backport-batch/report_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ func TestReportDedupAndTrust(t *testing.T) {
130130
t.Setenv("GITHUB_SERVER_URL", "https://github.com")
131131
t.Setenv("GITHUB_REPOSITORY", "cozystack/cozystack")
132132
t.Setenv("GITHUB_RUN_ID", "100")
133+
t.Setenv("GITHUB_RUN_ATTEMPT", "1")
133134

134135
// The report the next run makes, read off a run that publishes nothing,
135136
// planted by someone the batch does not trust.

0 commit comments

Comments
 (0)