Skip to content
Snippets Groups Projects

tag_build.sh: improve handling of race condition

Merged Frank Winklmeier requested to merge fwinkl/athena:tagbuild into main

While reviewing our nightly tagging script, I noticed a potential race condition (which we have never observed so far). Make the script more robust for the very unlikely case that two builds try to create the same nightly tag from a different commit (could in theory happen if the release coordinator merges something around the nightly deadline).

Also use show-ref instead of rev-parse to check for tags and some other minor cleanups, i.e. remove unused support of specifying tag names via the $datestamp environment variable (our Jenkins jobs always call this script with the explicit -d argument).

Bringing this to the attention of @aundrus and @tsulaia in case there are any unforeseen side-effects for the next nightly builds.

Once validated in main will also request this for 24.0.

Edited by Frank Winklmeier

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading