Skip to content

release.sh: USNM_CURATED reads curated from a local copy (#308) - #1042

Merged
tgoodyear merged 2 commits into
mainfrom
onprem/curated-local
Oct 25, 2026
Merged

tgoodyear merged 2 commits into
mainfrom
onprem/curated-local

Conversation

@tgoodyear

@tgoodyear tgoodyear commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

On-prem rebuilds read curated from the lake over the internet, about 0.5 TB of egress per full run (#308). release.sh hard-coded the lake URL in every step. With this PR, when USNM_CURATED is set, every step passes it as --curated, so a local directory can stand in for the lake. usnm-store already treats any path that isn't http(s) as a local directory. Unset, nothing changes.

The copy has to keep each blob's last-modified time as its file's modified time. A finish (#1007) lists curated as of the run's start by the objects' creation times, and a local store gives each file's modified time as its creation time. azcopy copy --preserve-last-modified-time keeps them, and curated objects are create-only, so last-modified matches creation for them.

Tested with bash -n, shellcheck -x -S warning, and the usage text.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings October 23, 2026 18:40

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.

🟢 Approval recommended

The override is consistently quoted, preserves existing defaults, and has no unresolved review findings.

No open issues 🎉

What changed in this PR

Adds a local curated-data override for on-prem releases, reducing lake egress during rebuilds and finish replays while preserving the existing default.

Changes:

  • Uses USNM_CURATED, when set, for every --curated argument.
  • Keeps the lake URL as the fallback when the override is unset or empty.
  • Documents timestamp preservation for local copies and updates the usage output.
File Description
scripts/​onprem/​release.sh Applies the curated-source override across all steps and documents local-copy requirements.

Review effort: Balanced

Every step passed the lake's curated URL. USNM_CURATED replaces it, so a
local copy made with azcopy --preserve-last-modified-time can stand in.

Co-Authored-By: Claude Opus 5.5 <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.

🟡 Changes recommended

The usage text’s new line wrapping breaks an existing test assertion and needs adjustment.

1 open issue

Review effort: Balanced

Comment thread scripts/onprem/release.sh Outdated
From Copilot's review of #1042: test_release.py looks for it verbatim.

Co-Authored-By: Claude Opus 5.5 <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.

🟢 Approval recommended

The focused change consistently forwards the quoted override, preserves existing defaults, and has no unresolved findings.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@tgoodyear
tgoodyear merged commit 59ca57f into main Oct 25, 2026
27 checks passed
@tgoodyear
tgoodyear deleted the onprem/curated-local branch October 25, 2026 12:18
tgoodyear pushed a commit that referenced this pull request Oct 25, 2026
Takes main's local-curated option (USNM_CURATED, #1042) and Cosmos-access comment, and keeps the index_runs record; import-staged-run now reads $CURATED like the other calls.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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