Skip to content

Helm CI: wait for fixture database readiness before ct install#4604

Merged
adutra merged 1 commit into
apache:mainfrom
venkateshwaracholan:helm-ci-fixture-readiness
Jun 3, 2026
Merged

Helm CI: wait for fixture database readiness before ct install#4604
adutra merged 1 commit into
apache:mainfrom
venkateshwaracholan:helm-ci-fixture-readiness

Conversation

@venkateshwaracholan

Copy link
Copy Markdown
Contributor

Fixes #4601.

Helm CI applied fixture databases and immediately ran ct install, while local workflows (make helm-fixtures) and developer docs wait for PostgreSQL and MongoDB pods to become Ready first.

This adds the same kubectl wait steps to CI before chart-testing install.

No production or chart behavior changes.

What changed
After kubectl apply for helm/polaris/ci/fixtures, CI now waits for:

app.kubernetes.io/name=postgres
app.kubernetes.io/name=mongodb
in namespace polaris-ns (120s timeout), matching the selectors already used in the Makefile and helm-chart/dev.md.

Notes
Fixture YAML confirms both Deployments use these labels, run at replicas: 1, and define readiness probes — so --for=condition=ready pod is appropriate.

This aligns CI with documented local practice. It may reduce Helm CI flakes when persistence scenarios start before databases are accepting connections, but I have not tied it to a specific past CI failure.

Test plan

CI Helm chart-testing job passes
Verified fixture labels/selectors in:
helm/polaris/ci/fixtures/postgres.yaml
helm/polaris/ci/fixtures/mongodb.yaml

Checklist

  • 🛡️ Don't disclose security issues! (contact security@apache.org)
  • 🔗 Clearly explained why the changes are needed, or linked related issues: Fixes #
  • 🧪 Added/updated tests with good coverage, or manually tested (and explained how)
  • 💡 Added comments for complex logic
  • 🧾 Updated CHANGELOG.md (if needed)
  • 📚 Updated documentation in site/content/in-dev/unreleased (if needed)

@github-project-automation github-project-automation Bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jun 3, 2026
@MonkeyCanCode

Copy link
Copy Markdown
Contributor

Changes looks good. Thanks @venkateshwaracholan .

@MonkeyCanCode
MonkeyCanCode requested a review from snazy June 3, 2026 03:41
@adutra
adutra merged commit b7745fd into apache:main Jun 3, 2026
24 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to merge to Done in Basic Kanban Board Jun 3, 2026
MonkeyCanCode pushed a commit to MonkeyCanCode/polaris that referenced this pull request Jun 4, 2026
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.

Helm CI: wait for fixture database readiness before ct install

4 participants