Skip to content

Commit d5595f8

Browse files
authored
chore: ignore commit metadata check in release script (#16495)
The `scripts/release/check_commit_metadata.sh` check was too strict for our new cherry-picking process. This turns the error into a warning log.
1 parent 323559b commit d5595f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/release/check_commit_metadata.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ main() {
143143
for commit in "${renamed_cherry_pick_commits_pending[@]}"; do
144144
log "Checking if pending commit ${commit} has a corresponding cherry-pick..."
145145
if [[ ! -v renamed_cherry_pick_commits[${commit}] ]]; then
146-
error "Invariant failed, cherry-picked commit ${commit} has no corresponding original commit"
146+
if [[ ${CODER_IGNORE_MISSING_COMMIT_METADATA:-0} == 1 ]]; then
147+
log "WARNING: Missing original commit for cherry-picked commit ${commit}, but continuing due to CODER_IGNORE_MISSING_COMMIT_METADATA being set."
148+
continue
149+
else
150+
error "Invariant failed, cherry-picked commit ${commit} has no corresponding original commit"
151+
fi
147152
fi
148153
log "Found matching cherry-pick commit ${commit} -> ${renamed_cherry_pick_commits[${commit}]}"
149154
done

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy