Skip to content

Reconcile the two documented forms of the release command - #9

Merged
ptr727 merged 1 commit into
developfrom
feature/clarify-release-args
Aug 1, 2026
Merged

Reconcile the two documented forms of the release command#9
ptr727 merged 1 commit into
developfrom
feature/clarify-release-args

Conversation

@ptr727

@ptr727 ptr727 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

The verification loop said make-release.sh "takes no arguments" while the Deploying section below it passes a deploy root and a version. Read together those contradict, and the first is only true because the local loop sources secrets/.env a few lines earlier.

Both forms are correct and the document never said why. It now states the mechanism, verified against the script rather than asserted:

ROOT="${1:-${DEPLOY_ROOT:-}}"
VERSION="${2:-$(date -u +%Y%m%d-%H%M%S)}"

So the deploy root falls back to $DEPLOY_ROOT, the version falls back to a timestamp, the script accepts both regardless, and an argument wins over the environment. It also now says why CI passes them explicitly: so a pipeline run names the commit it built rather than the clock.

Raised as a suppressed comment on the promotion #7, which carries no thread, so it is answered there as well.

The verification loop said `make-release.sh` "takes no arguments" while
the Deploying section below it passes a deploy root and a version. Read
together those contradict, and the first is only true because the local
loop sources `secrets/.env` a few lines earlier.

Both forms are correct and the document never said why. It now states the
mechanism: the deploy root falls back to `$DEPLOY_ROOT` and the version
to a timestamp, the script accepts both regardless, and an argument wins
over the environment. It also says why CI passes them explicitly, which
is so a pipeline run names the commit it built rather than the clock.

Verified against the script rather than asserted:

    ROOT="${1:-${DEPLOY_ROOT:-}}"
    VERSION="${2:-$(date -u +%Y%m%d-%H%M%S)}"

Raised as a suppressed comment on the promotion, which carries no thread.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI 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.

Pull request overview

This PR updates OPERATIONS.md to reconcile the two documented invocation styles for deploy/make-release.sh by explicitly documenting its argument/env-var fallback behavior and why CI/pipelines pass arguments explicitly (stable, commit-derived naming vs timestamp defaults).

Changes:

  • Clarifies that deploy/make-release.sh can be run with no arguments when DEPLOY_ROOT is available, and that the version defaults to a UTC timestamp.
  • Documents precedence: provided arguments override environment-derived defaults.
  • Explains why automated runs pass both deploy root and version explicitly (traceability to the built commit).

@ptr727
ptr727 merged commit 4540d22 into develop Aug 1, 2026
3 checks passed
@ptr727
ptr727 deleted the feature/clarify-release-args branch August 1, 2026 20:50
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.

2 participants