Skip to content

add to gci and minor improvements#29

Merged
KevinGruber2001 merged 2 commits intomainfrom
chore/update-helm-releases-to-gci
Mar 7, 2026
Merged

add to gci and minor improvements#29
KevinGruber2001 merged 2 commits intomainfrom
chore/update-helm-releases-to-gci

Conversation

@KevinGruber2001
Copy link
Collaborator

@KevinGruber2001 KevinGruber2001 commented Mar 7, 2026

Summary by CodeRabbit

  • Documentation

    • Reorganized deployment notes for clearer section order and removed debugging details.
    • Added Reposilite port‑forward and UI access instructions.
  • Configuration

    • Updated authentication credential reference and pod checksum target for improved consistency.
  • CI/CD

    • Updated chart publishing and release workflow to derive registry owner, publish charts to OCI, and streamline release steps; added package write permission.

@coderabbitai
Copy link

coderabbitai bot commented Mar 7, 2026

📝 Walkthrough

Walkthrough

Updated Helm chart templates and GitHub Actions workflows: changed auth credential references and checksum annotation, revised NOTES.txt content (removed MinIO section, renumbered sections, added Reposilite instructions), and replaced chart publishing steps to push charts to GHCR using a derived registry owner.

Changes

Cohort / File(s) Summary
Helm templates
chart/templates/NOTES.txt, chart/templates/deployment.yaml
NOTES.txt: changed auth credential reference from .Values.auth.username to .Values.auth.reader.username, removed MinIO debugging section, renumbered sections, added Reposilite port-forward/UI instructions, added trailing newline. deployment.yaml: updated pod template checksum annotation to reference auth-secrets.yaml.
CI / Release workflows
.github/workflows/chart-preview.yml, .github/workflows/release.yml
Added step to set REGISTRY_OWNER (lowercased repo owner) and use it for OCI pushes to ghcr.io/${REGISTRY_OWNER}/charts; replaced legacy chart-releaser flow with GHCR login, chart packaging, OCI push, and release creation; granted packages write permission; removed legacy git config steps.

Sequence Diagram(s)

(omitted)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • add pr based chart releases #24 — Modifies GitHub Actions workflows for chart packaging/pushing to GHCR and introduces/uses a registry owner env var; closely related CI changes.

Poem

🐰
I hopped through templates late at night,
Tweaked creds and numbers until they fit just right.
MinIO hush, Reposilite lights the way,
Charts now fly to GHCR by day.
A little hop, a small delight! 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'add to gci and minor improvements' is vague and uses non-descriptive terms that don't clearly convey the actual changes made to the codebase. Consider revising the title to be more specific, such as 'Migrate Helm chart to OCI registry and update authentication references' to better reflect the actual changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-helm-releases-to-gci

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Mar 7, 2026

Chart Preview Ready

helm install test oci://ghcr.io/eduide/charts/theia-shared-cache --version 0.3.1-pr.29

Updated: 0ff9a69

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/release.yml (1)

35-51: Consider adding validation and handling for existing versions.

Two potential improvements:

  1. Empty version check: If the version extraction fails (e.g., malformed Chart.yaml), subsequent steps will execute with an empty version, leading to confusing errors.

  2. Duplicate version handling: If changes are pushed to chart/** without bumping the version in Chart.yaml, the release creation will fail because the tag already exists.

♻️ Suggested improvement with version validation
       - name: Extract chart version
         id: chart
         run: |
           VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
+          if [ -z "$VERSION" ]; then
+            echo "::error::Failed to extract version from Chart.yaml"
+            exit 1
+          fi
           echo "version=${VERSION}" >> $GITHUB_OUTPUT

For duplicate version handling, you could either:

  • Check if the tag exists before attempting release creation
  • Or accept the current behavior as it enforces version bumping on each release
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release.yml around lines 35 - 51, After extracting VERSION
into steps.chart.outputs.version (step id: chart), add a validation guard that
fails the job if VERSION is empty to prevent downstream steps from running with
an empty value; then add a pre-release check against the GitHub API (or gh cli)
to detect if the tag theia-shared-cache-${{ steps.chart.outputs.version }}
already exists and conditionally abort or skip the "Create GitHub Release" step
to avoid duplicate-tag failures; ensure this check runs before the helm push /
softprops/action-gh-release steps and references the same
steps.chart.outputs.version value so the workflow either exits with a clear
error or skips release when a duplicate tag is found.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/release.yml:
- Around line 35-51: After extracting VERSION into steps.chart.outputs.version
(step id: chart), add a validation guard that fails the job if VERSION is empty
to prevent downstream steps from running with an empty value; then add a
pre-release check against the GitHub API (or gh cli) to detect if the tag
theia-shared-cache-${{ steps.chart.outputs.version }} already exists and
conditionally abort or skip the "Create GitHub Release" step to avoid
duplicate-tag failures; ensure this check runs before the helm push /
softprops/action-gh-release steps and references the same
steps.chart.outputs.version value so the workflow either exits with a clear
error or skips release when a duplicate tag is found.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3bbf1e77-b347-4ed8-8f4d-259420719b4e

📥 Commits

Reviewing files that changed from the base of the PR and between 65e383b and d0483e3.

📒 Files selected for processing (2)
  • .github/workflows/chart-preview.yml
  • .github/workflows/release.yml

@KevinGruber2001 KevinGruber2001 merged commit f1739e1 into main Mar 7, 2026
5 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