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.
This commit is contained in:
Stephen Kirby
2025-02-07 13:37:28 -06:00
committed by GitHub
parent 323559ba82
commit d5595f86f8
+6 -1
View File
@@ -143,7 +143,12 @@ main() {
for commit in "${renamed_cherry_pick_commits_pending[@]}"; do
log "Checking if pending commit ${commit} has a corresponding cherry-pick..."
if [[ ! -v renamed_cherry_pick_commits[${commit}] ]]; then
error "Invariant failed, cherry-picked commit ${commit} has no corresponding original commit"
if [[ ${CODER_IGNORE_MISSING_COMMIT_METADATA:-0} == 1 ]]; then
log "WARNING: Missing original commit for cherry-picked commit ${commit}, but continuing due to CODER_IGNORE_MISSING_COMMIT_METADATA being set."
continue
else
error "Invariant failed, cherry-picked commit ${commit} has no corresponding original commit"
fi
fi
log "Found matching cherry-pick commit ${commit} -> ${renamed_cherry_pick_commits[${commit}]}"
done