-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add latest-image regression guard #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
74f67b7
docs: spec for latest-image CI guard
robfrank cd87dbc
docs: clarify guard vs version-pinned unit tests in spec
robfrank e009f83
docs: implementation plan for latest-image CI guard
robfrank 8831169
ci: add reusable integration workflow parameterized by image tag
robfrank cbd73f1
ci: run integration job via reusable workflow
robfrank cf91ede
ci: add weekly latest-image regression guard
robfrank ad8689a
docs: document latest-image guard and release-bump checklist
robfrank a3acb30
chore: stop tracking local tooling/IDE files
robfrank File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| name: Integration (reusable) | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| imageTag: | ||
| description: "Image tag to test. Empty string defaults to chart appVersion." | ||
| type: string | ||
| default: "" | ||
| pullPolicy: | ||
| description: "Image pull policy (IfNotPresent for pinned, Always for rolling tags)." | ||
| type: string | ||
| default: "IfNotPresent" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| integration: | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Install kind | ||
| run: | | ||
| curl -sLo /tmp/kind-linux-amd64 \ | ||
| https://kind.sigs.k8s.io/dl/v0.23.0/kind-linux-amd64 | ||
| curl -sLo /tmp/kind.sha256 \ | ||
| https://kind.sigs.k8s.io/dl/v0.23.0/kind-linux-amd64.sha256sum | ||
| (cd /tmp && sha256sum -c kind.sha256) | ||
| install -m 0755 /tmp/kind-linux-amd64 /usr/local/bin/kind | ||
|
|
||
| - name: Install kubectl | ||
| run: | | ||
| curl -sLo /tmp/kubectl \ | ||
| "https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl" | ||
| curl -sLo /tmp/kubectl.sha256 \ | ||
| "https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl.sha256" | ||
| echo "$(cat /tmp/kubectl.sha256) /tmp/kubectl" | sha256sum -c - | ||
| install -m 0755 /tmp/kubectl /usr/local/bin/kubectl | ||
|
|
||
| - name: Set up Helm | ||
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | ||
| with: | ||
| version: v4.1.4 | ||
|
|
||
| - name: Log image digest under test | ||
| if: inputs.imageTag != '' | ||
| run: | | ||
| echo "Testing image arcadedata/arcadedb:${{ inputs.imageTag }}" | ||
| docker buildx imagetools inspect "arcadedata/arcadedb:${{ inputs.imageTag }}" || true | ||
|
|
||
| - name: Create kind cluster | ||
| run: kind create cluster --wait 60s | ||
|
|
||
| - name: Install chart | ||
| run: | | ||
| helm install test-arcadedb charts/arcadedb/ \ | ||
| --set replicaCount=3 \ | ||
| --set persistence.enabled=false \ | ||
| --set arcadedb.defaultDatabases="" \ | ||
| --set image.tag="${{ inputs.imageTag }}" \ | ||
| --set image.pullPolicy="${{ inputs.pullPolicy }}" \ | ||
| --timeout 5m \ | ||
| --wait | ||
|
|
||
| - name: Run integration tests | ||
| run: make test-integration | ||
|
|
||
| - name: Delete kind cluster | ||
| if: always() | ||
| run: kind delete cluster |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: CI - Latest Image Guard | ||
|
|
||
| # Pre-release guard: exercises the chart against the rolling `latest` ArcadeDB | ||
| # image so regressions in the upcoming release surface before it ships. | ||
| on: | ||
| schedule: | ||
| - cron: "0 6 * * 1" # weekly, Monday 06:00 UTC (matches Dependabot cadence) | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| integration-latest: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| imageTag: latest | ||
| pullPolicy: Always |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| .cr-release-packages/ | ||
| .helm/ | ||
| .claude/settings.local.json | ||
| .debug/ | ||
| .idea/ |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual GitHub Actions workflow files described here (
.github/workflows/latest-image.ymland.github/workflows/integration-reusable.yml), as well as the refactoring of.github/workflows/lint.yml, are missing from this pull request. It appears they were not added or committed to the branch. Please ensure these workflow files are committed and included in the PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow files are present in this PR, not missing:
.github/workflows/integration-reusable.yml(new, +74) β the reusableworkflow_calljob.github/workflows/latest-image.yml(new, +18) β the scheduled guard.github/workflows/lint.yml(modified, β47) βintegrationjob refactored touses: ./.github/workflows/integration-reusable.ymlgit diff main...HEAD --statlists all three. The earlier diff was likely cluttered by the accidentally-committed.claude//.debug//.idea/files, which have since been removed in a3acb30; the diff is now clean.