ci: get OpenAPI json export operating on nightly#1022
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🧰 Additional context used📓 Path-based instructions (1)**/.github/workflows/*.yml⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📚 Learning: 2026-04-30T04:30:04.350ZApplied to files:
🔇 Additional comments (3)
WalkthroughReduce export-openapi job's dependencies to only Changes
Sequence Diagram(s)sequenceDiagram
participant Resolve as Resolve Ref job
participant Checkout as actions/checkout@v6
participant LocalAction as ./.github/actions/export-openapi
participant Artifacts as actions/upload-artifact
Resolve->>Checkout: provide resolved commit SHA
Checkout->>LocalAction: checkout repo at SHA (fetch-depth:1)
LocalAction->>Artifacts: generate OpenAPI bundle
LocalAction->>Artifacts: upload artifact named "openapi-<sha>"
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
f65202c to
4e1ab43
Compare
|
wut. why are tests failing |
cf650ad to
be6f49f
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/publish-nightly.yml:
- Around line 154-158: The "Checkout Workflow Repository" step currently uses
actions/checkout without a ref, causing potential ref drift versus the export
step that uses needs.resolve_ref.outputs.commit_sha; update the checkout step
(named "Checkout Workflow Repository" using actions/checkout@de0fac2e4...) to
explicitly pin ref to needs.resolve_ref.outputs.commit_sha so the workflow runs
the same commit as the exported OpenAPI artifact.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: 2c2cfbbb-385c-45c2-b254-4d28fe03b6e3
📒 Files selected for processing (1)
.github/workflows/publish-nightly.yml
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: Test Suite / Backend Tests
- GitHub Check: Test Suite / Frontend Tests
- GitHub Check: Analyze (java-kotlin)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (actions)
- GitHub Check: Frontend Lint Threshold Check
🧰 Additional context used
📓 Path-based instructions (1)
**/.github/workflows/*.yml
⚙️ CodeRabbit configuration file
**/.github/workflows/*.yml: GitHub Actions review:
- Pin action versions to SHA hashes, not floating tags.
- Flag secrets referenced as env vars in run: steps; prefer secrets context.
- Flag missing permissions: blocks (principle of least privilege).
- Ensure Java 25 is configured in the workflow, and verify
--enable-previewis passed where the JVM is actually launched (for example via Gradle/Maven args,JAVA_TOOL_OPTIONS, or the explicitjavacommand).
Files:
.github/workflows/publish-nightly.yml
🧠 Learnings (1)
📚 Learning: 2026-04-30T04:30:04.350Z
Learnt from: imnotjames
Repo: grimmory-tools/grimmory PR: 1002
File: .github/workflows/publish-nightly.yml:118-124
Timestamp: 2026-04-30T04:30:04.350Z
Learning: When using `docker/metadata-action` in GitHub Actions workflows with an `images: |` multiline YAML block, it’s acceptable for some `images` entries to be empty (e.g., because a registry/login var like `vars.DOCKERHUB_REGISTRY` is unset in forks). `docker/metadata-action` should skip the empty line and still produce valid metadata without downstream failures, so you generally don’t need an additional `enable`/conditional guard solely to prevent empty-image formatting issues—verify the action is still generating usable tags/labels in the workflow output.
Applied to files:
.github/workflows/publish-nightly.yml
🔇 Additional comments (3)
.github/workflows/publish-nightly.yml (3)
147-147: Dependency narrowing forexport-openapiis correct.This change is aligned with the job’s actual inputs and should reduce nightly latency without affecting artifact generation.
168-168: Artifact name cleanup improves clarity.
openapi-${{ needs.resolve_ref.outputs.nightly_tag }}is less redundant and still descriptive.
159-163: Preview flags are correctly applied in the OpenAPI export JVM launch path.Java 25 is configured in the action, and
--enable-previewis explicitly set inbackend/scripts/export-openapi.sh(line 32) where the Java process is actually launched. The flag flows through: workflow → action (Java 25 setup) →just api openapi-export→ GradlebuildOpenApiArtifacts→exportOpenApitask →export-openapi.shscript.
Description
ensures that the action yaml for the openapi export task is available before trying to execute it
to make testing / building easier - does not wait for tests to finish as this is an artifact related to the build rather than part of any release & makes the exposed artifact name clearer
Linked Issue: Fixes #1021
Testing
Ran in https://github.com/imnotjames/grimmory/actions/runs/25195541750
Changes
needsfrom the jobSummary by CodeRabbit