Repository navigation
🐛 fix(demo): wait for Forgejo install UI, not version API - #254
Merged
Merged
Conversation
/api/v1/version is 404 until first-time install; probing it in _wait_forgejo (and briefly in readiness) blocked every cold hero boot. Wait on / before install; keep a 480s post-Available cushion.
There was a problem hiding this comment.
Pull request overview
This PR fixes the hero demo’s Forgejo bootstrap flow on fresh installs by no longer waiting on /api/v1/version (which is 404 until Forgejo is installed) and instead waiting on / (the install UI) while keeping a 480s safety window.
Changes:
- Update Forgejo Kubernetes readiness probing to use
/instead of/api/v1/version(pre-install 404). - Update
_wait_forgejoto curl/and adjust messaging accordingly, while retaining the ≥480s post-Available deadline. - Update the demo smoke test to lock the new “pre-install wait uses
/” contract and forbid pre-install waits on/api/v1/version.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
hack/test/demo_03_hero_smoke_test.sh |
Updates the contract test to assert pre-install waiting/probing targets / (install UI) and not /api/v1/version. |
hack/demo/hero/manifests/forgejo.yaml |
Switches readiness probing to path: / so the pod can become Ready pre-install. |
hack/demo/hero/bootstrap-forgejo.sh |
Changes _wait_forgejo to wait on HTTP / rather than the version API and updates the failure message. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
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
/api/v1/versionis 404 until install on fresh Forgejo — do not probe/wait on it in_wait_forgejo/(install UI) with 480s cushion; readiness stays on/Test plan
/→ 200,/api/v1/version→ 404 pre-install (kind repro)bash hack/test/demo_03_hero_smoke_test.shhero-demo-smokeafter merge