Add dry-run mode to release workflow and update Linux packaging#128
Draft
Add dry-run mode to release workflow and update Linux packaging#128
Conversation
- Add a new workflow `release-dry-run.yml` triggered on pull requests to perform dry-run releases. - Update `release.yml` to support a dry-run mode that builds and packages without uploading artifacts or creating a GitHub release. - Allow the main release workflow to be called with a `dry-run` input to enable testing release process without side effects. Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
Reviewer's GuideAdds a dry-run capability to the release workflow, introduces a PR-triggered dry-run wrapper workflow, tightens version derivation from tags with a dev fallback, and bumps shared packaging/build actions while ensuring artefact upload and release publishing are skipped when dry-running. Sequence diagram for PR-triggered dry-run release workflowsequenceDiagram
actor Developer
participant GitHub
participant ReleaseDryRunWorkflow
participant ReleaseWorkflow
participant BuildPackagesJob
participant ReleaseJob
Developer->>GitHub: Open or update pull_request
GitHub-->>ReleaseDryRunWorkflow: Trigger pull_request event
ReleaseDryRunWorkflow->>ReleaseWorkflow: workflow_call with dry-run true
ReleaseWorkflow->>BuildPackagesJob: Start job build-packages
BuildPackagesJob->>BuildPackagesJob: Determine RELEASE_VERSION
BuildPackagesJob->>BuildPackagesJob: Build binaries (rust-build-release)
BuildPackagesJob->>BuildPackagesJob: Package binaries (linux-packages)
BuildPackagesJob-->>BuildPackagesJob: Skip Upload artefacts (dry-run true)
ReleaseWorkflow-->>ReleaseJob: Do not start job (dry-run true)
ReleaseJob-->>Developer: GitHub release not created (skipped)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes
CI/CD Workflows
dry-run(boolean, default false)!inputs.dry-rundry-run: trueand inherits secretsVersioning
RELEASE_VERSIONis the numeric part aftervRELEASE_VERSIONdefaults to0.0.0-devPackaging
Release & Artefacts
Tests
dry-run: trueTest plan
🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/376cfa58-f5ba-40c0-914e-bceca121bcd8
Summary by Sourcery
Introduce a dry-runable release workflow and supporting PR-triggered validation flow.
New Features:
Enhancements: