Skip to content

Add release helper script. - #175

Open
apognu wants to merge 1 commit into
mainfrom
ci/release-script
Open

Add release helper script.#175
apognu wants to merge 1 commit into
mainfrom
ci/release-script

Conversation

@apognu

@apognu apognu commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Added a POSIX shell release helper to select backend and frontend versions, with optional Motiva version support.
    • The helper fetches and checks out the specified backend/frontend branches and exports the chosen version values.
    • Automatically updates both release and development compose configuration with the selected image tags, including the Motiva service image only when provided.
    • Includes validation and strict error handling to prevent incomplete or invalid release setups.

@apognu apognu self-assigned this Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b4910e54-230f-4ea8-8392-c79065ede43d

📥 Commits

Reviewing files that changed from the base of the PR and between 7c85b72 and 25b6e37.

📒 Files selected for processing (1)
  • contrib/release.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • contrib/release.sh

📝 Walkthrough

Walkthrough

Adds a release script that validates version arguments, checks out backend and frontend revisions, exports resolved versions, and updates Docker Compose image tags, including an optional Motiva image.

Changes

Release helper

Layer / File(s) Summary
Version resolution and Compose update
contrib/release.sh
Parses required backend/frontend and optional Motiva versions, checks out requested revisions from git remotes, exports version variables, and updates both Compose files with yq.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

Versions march where release winds blow,
Backend and frontend in orderly flow.
Motiva joins when called by name,
Compose tags kindle the deployment flame.
A small shell script makes all things align.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a new release helper script.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/release-script

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 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 `@contrib/release.sh`:
- Around line 10-25: Harden the option parsing loop in contrib/release.sh: for
each --backend, --frontend, and --motiva case, validate that a following
argument exists before reading it or executing shift 2, and reject missing
values with an error. Update the final backend and frontend validation to
require the release-tag format vX.Y.Z rather than merely non-empty values, while
preserving the existing unknown-option handling.
- Around line 1-4: Update the contrib/release.sh shell setup by removing set -o
pipefail while retaining POSIX /bin/sh compatibility, and quote the BACKEND and
FRONTEND references in the git checkout commands to prevent word splitting.
- Around line 28-30: Quote the BACKEND and FRONTEND expansions in the git
checkout commands within the release script to ensure each revision is passed as
a single argument, while preserving the existing repository and command flow.
🪄 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: CHILL

Plan: Pro

Run ID: 3b5e3967-0c3c-486a-99ba-ee4cad1aafca

📥 Commits

Reviewing files that changed from the base of the PR and between bf0a27d and 7c85b72.

📒 Files selected for processing (1)
  • contrib/release.sh
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Analyze (actions)
🧰 Additional context used
🪛 Shellcheck (0.11.0)
contrib/release.sh

[warning] 4-4: In POSIX sh, set option pipefail is undefined.

(SC3040)


[info] 28-28: Double quote to prevent globbing and word splitting.

(SC2086)


[info] 30-30: Double quote to prevent globbing and word splitting.

(SC2086)

🔇 Additional comments (1)
contrib/release.sh (1)

6-8: LGTM!

Also applies to: 27-27, 32-40

Comment thread contrib/release.sh Outdated
Comment thread contrib/release.sh
Comment thread contrib/release.sh Outdated
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.

1 participant