Skip to content

Add manual release CI workflow (release.yaml)#2656

Open
delthas wants to merge 1 commit into
development/8.3from
improvement/ARSN-604/add-release-workflow
Open

Add manual release CI workflow (release.yaml)#2656
delthas wants to merge 1 commit into
development/8.3from
improvement/ARSN-604/add-release-workflow

Conversation

@delthas

@delthas delthas commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Arsenal has no release workflow, unlike cloudserver, vault2, and backbeat, which each ship a workflow_dispatch release pipeline. Today arsenal releases are cut by hand via gh release create <version> --generate-notes.

This adds .github/workflows/release.yaml, triggered manually (workflow_dispatch), that:

  • Reads the version from package.json (no manual tag input), so the released tag can never drift from what consumers pin (git+https://github.com/scality/arsenal#<tag>).
  • Fails loudly if a release for that version already exists, guarding against accidental re-runs (softprops/action-gh-release otherwise updates an existing release silently).
  • Creates the GitHub release + tag with auto-generated notes (generate_release_notes: true), targeting the dispatched commit.

Arsenal is a library (private: true, no Docker image), so the workflow reduces to the GitHub-release step only — no Docker/oras steps. Build artifacts continue to be published by the existing per-push compile job in tests.yaml. The release name is kept as the bare version (e.g. 8.5.1) to match arsenal's existing release history.

Issue: ARSN-604

@bert-e

bert-e commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Hello delthas,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e

bert-e commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

Comment thread .github/workflows/release.yaml
Comment thread .github/workflows/release.yaml Outdated
@delthas delthas requested review from a team, benzekrimaha, francoisferrand and maeldonn June 25, 2026 13:13
@delthas delthas force-pushed the improvement/ARSN-604/add-release-workflow branch from fe56be3 to 3500bd2 Compare June 25, 2026 13:16
Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
@delthas delthas force-pushed the improvement/ARSN-604/add-release-workflow branch from 3500bd2 to 6490ff3 Compare June 25, 2026 13:20
Add a workflow_dispatch release.yaml for arsenal. Arsenal is a library
(no Docker image) consumed as a git dependency where the tag equals the
package.json version, so the release reduces to creating the GitHub
release + tag, replacing the manual `gh release create`.

The workflow reads the version from package.json (no manual tag input)
and fails if it is missing, fails if that release already exists, and
rejects dispatches from any branch other than development/* or hotfix/*
so a release cannot be cut from un-merged code. github.ref_name is
passed via an env var to avoid shell injection in the guard step.

Issue: ARSN-604
@delthas delthas force-pushed the improvement/ARSN-604/add-release-workflow branch from 6490ff3 to dd5ee2d Compare June 25, 2026 13:22
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.54%. Comparing base (7fd2be6) to head (dd5ee2d).

Additional details and impacted files
@@               Coverage Diff                @@
##           development/8.3    #2656   +/-   ##
================================================
  Coverage            73.54%   73.54%           
================================================
  Files                  222      222           
  Lines                18188    18188           
  Branches              3786     3786           
================================================
  Hits                 13377    13377           
  Misses                4806     4806           
  Partials                 5        5           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@francoisferrand francoisferrand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As logic is added to release workflow, bugs are also added : which is esp. critical for releases, which are only used seldom and especially when we need (urgently) a release... Thus (non-trivial) release workflow should be tested, as we do for exemple in Zenko

GH_TOKEN: ${{ github.token }}
VERSION: ${{ steps.version.outputs.version }}
run: |
if gh release view "$VERSION" --repo "$GITHUB_REPOSITORY" \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this only checks the release, not the tag.
if the release was previously aborted or removed, but the tag is still there, we could end up in a weird state: the tag was created -possibly on another commit- and we would now release a different commit (and possibly move the tag)

@scality scality deleted a comment from bert-e Jun 25, 2026

@maeldonn maeldonn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need a test

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.

5 participants