CI: remove single-use YTT functions#647
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR consolidates CI identity management in the builder pipeline and refactors light stemcell orchestration in the publisher pipeline. In 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)
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. Comment |
There was a problem hiding this comment.
Pull request overview
This PR simplifies the Concourse publisher pipeline YTT template by removing single-use helper functions and inlining their YAML directly into the affected job plan.
Changes:
- Removes the single-use
get_google_light_inputsfunction by inlining itsin_parallelgetsteps in thebuild-light-google-*job. - Inlines the previously function-generated “deploy skeletal + ensure destroy + on_failure instructions” step into the
build-light-google-*job. - Removes an extra YAML document separator / directive block around the start of the pipeline config.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ci/pipelines/publisher.yml`:
- Around line 365-376: The do block containing the terraform step with
light-google-environment-oss resource and the deploy-skeletal task has been
uncommented, activating a previously disabled OSS deployment. Determine if this
PR intentionally re-enables the OSS skeletal environment deployment. If this was
an unintended change while refactoring, keep the entire do block disabled by
commenting it out again. If this PR intentionally re-enables OSS deployment,
ensure the PR summary and commit messages clearly document this intentional
change to avoid unexpected cloud deployment work.
- Line 400: The line containing the gcloud auth activate-service-account command
with the ((gcp_json_key)) variable will expose the actual GCP service account
credentials in the build logs when Concourse interpolates this variable. Replace
the ((gcp_json_key)) placeholder with a non-secret string placeholder that
indicates where credentials should be provided (such as <gcp_json_key>) so that
the actual secret value is not interpolated and logged.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 894bd465-8f6b-49cc-89b0-52ac9d52cc01
📒 Files selected for processing (1)
ci/pipelines/publisher.yml
77bcff4 to
80f3114
Compare
172ca0d to
92d2431
Compare
- reorganize so YTT is also valid YAML - remove some redundant function params
NOTE: this repository uses a "Merge Forward" strategy
Changes should be made in the earliest applicable branch, and
merged forward through subsequent branches.
ubuntu-<short_name-N>ubuntu-<short_name-N>intoubuntu-<short_name-N+1>