Skip to content

Fix initial credential detection on fresh CI runners - #3

Merged
justmycode37 merged 1 commit into
mainfrom
codex/fix-ci-startup-cache
Oct 30, 2026
Merged

justmycode37 merged 1 commit into
mainfrom
codex/fix-ci-startup-cache

Conversation

@justmycode37

Copy link
Copy Markdown
Owner

The credential cache used zero as its initial timestamp, so a monotonic clock below 30 seconds suppressed the first credential lookup. This made the cascade report missing credentials and fail five tests on the original PR run, while the later main run passed.

Use an explicit unchecked state and check credentials on the first call. Preserve the 30-second cache, including failed lookups, and refresh at expiry. Let both Python CI versions finish independently so failures no longer cancel the other matrix job.

Validation: reproduced the original bug with a supplied fixture credential and clock zero; all 145 backend tests passed from an isolated snapshot containing only this fix; all nine cascade tests also passed with the monotonic clock fixed at zero; git diff --cached --check passed. Added regression coverage for initial lookup, cached presence/absence, expiry, and recovery after lookup errors.

Unrelated in-progress research and Monid changes remain outside this PR.

@justmycode37
justmycode37 merged commit a418713 into main Oct 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant