Skip to content

tickets/DM-55880: Add script to promotelsstcache to d_latest - #117

Merged
roceb merged 1 commit into
mainfrom
tickets/DM-55880
Aug 20, 2026
Merged

tickets/DM-55880: Add script to promotelsstcache to d_latest#117
roceb merged 1 commit into
mainfrom
tickets/DM-55880

Conversation

@roceb

@roceb roceb commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread promotelsststack.sh
SRC_TAG=$1
DST_TAG=$2

[[ "$SRC_TAG" != "$DST_TAG" ]] || fail "src and dst tags are identical: ${SRC_TAG}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could also check if src/dst tag are not empty

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point.

Comment thread promotelsststack.sh
echo "$objects" | while read -r src; do
arch=$(basename "$src")
arch=${arch#"${SRC_TAG}_"}
arch=${arch%_lsstsw.tar.zst}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can arch be empty?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I do not think so. Would be an issue upstream if that were to happen.

@roceb
roceb force-pushed the tickets/DM-55880 branch from ca7c9b6 to 3f36031 Compare August 20, 2026 23:20
@roceb
roceb merged commit 12395ad into main Aug 20, 2026
2 checks passed
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