Make the missing-FORGEJO_TOKEN CLI test deterministic #1071
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1071
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
test_a_missing_token_without_a_client_exits_non_zero_naming_forgejo_token(plugins/os-backlog/tests/forgejo_cli_test.rb:72) fails at random. It failed 1 of 5 suite runs on main55a1ef76on 2026-10-16, and once in an agent run the same day. The failing run gotHTTP 404: GetUserByNameinstead of a message that names FORGEJO_TOKEN. The test passes no fake client, so a run can reach a real Forgejo lookup instead of the missing-token path. A gate test that fails at random blocks merges.Reproduce
Run the command five times. Expect one failure at plugins/os-backlog/tests/forgejo_cli_test.rb:72.
Origin
55a1ef76on 2026-10-16 (1 of 5 failed) and an agent run the same dayHTTP 404: GetUserByName← the test passes no fake client, so a run can reach a real Forgejo lookup ← DESIGN: plugins/os-backlog/tests/forgejo_cli_test.rb:72VERDICT: CREATE — real flake seen 2026-10-16; the test reaches a real lookup without a fake client; parent #835 is user-filed.