Repository navigation
M3b part 2: pattern 3 (CI-CD) page live — 12 of 12 - #13
Merged
Merged
Conversation
- Gateway /api/patterns/delivery: each running service's build commit compared with the latest commit on main (current / behind / local / unknown), plus the latest CI and Deploy runs on main, from GitHub's public API, cached 60 s. Built test-first; GitHub stubbed in tests. - CI-CD pattern page: problem, how this project does it, when not to use it, live demo. - README, Home and Patterns say all 12 are live; screenshot p03-ci-cd.jpg. Closes #10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "behind main" now uses Deploy's rule: only when main changed the service's folder or shared code since its build; otherwise "no changes since its build". No more false "press Deploy" alarms. - GitHub calls run in parallel, are reused for 5 minutes and then revalidated with their ETag (a 304 does not use the 60-per-hour anonymous limit); on 403/5xx the last good answer is kept; odd or non-JSON replies give "unknown", never a 500. - Tests fake GitHub at the HTTP layer (httpx.MockTransport), so caching, ETags and errors are tested. - Runtime fan-out shared through resilience.collect_runtimes; loading state and typed status maps on the page; copy fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 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.
Closes #10. Refs #7: this PR's CI run should be the proof that a small change skips the jobs it doesn't touch.
What it does
/api/patterns/delivery:docs/screenshots/p03-ci-cd.jpg.Review
Matt Pocock code review on both axes found 9 standards findings and 2 spec findings. All are fixed, test-first. GitHub is faked at the HTTP layer, so caching, ETags and errors are really tested.
Tests
🤖 Generated with Claude Code