Skip to content

🐛 fix(demo): wait for Forgejo install UI, not version API - #254

Merged
konih merged 1 commit into
mainfrom
fix/demo-03-forgejo-api-ready2
Aug 4, 2026
Merged

konih merged 1 commit into
mainfrom
fix/demo-03-forgejo-api-ready2

Conversation

@konih

@konih konih commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • Local: / → 200, /api/v1/version → 404 pre-install (kind repro)
  • bash hack/test/demo_03_hero_smoke_test.sh
  • CI hero-demo-smoke after merge

/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.
Copilot AI lite review requested due to automatic review settings August 4, 2026 21:49
@konih
konih merged commit d03290d into main Aug 4, 2026
23 of 24 checks passed
@konih
konih deleted the fix/demo-03-forgejo-api-ready2 branch August 4, 2026 21:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_forgejo to 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

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

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.

2 participants