Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/benchmarks_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ jobs:
run: |
first_commit=${FIRST_COMMIT}
if [ "$first_commit" == "" ]
# 26 hours to cope with variability in GHA start times.
then
first_commit=$(git log --after="$(date -d "1 day ago" +"%Y-%m-%d") 23:00:00" --pretty=format:"%h" | tail -n 1)
cutoff_utc=$(date -u -d "26 hours ago" +"%Y-%m-%dT%H:%M:%SZ")
first_commit=$(git rev-list --since="$cutoff_utc" --reverse HEAD | head -n 1)
Comment on lines 146 to +150
fi

if [ "$first_commit" != "" ]
Expand Down
4 changes: 4 additions & 0 deletions changelog/7271.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:user:`trexfeathers` improved robustness of overnight benchmarks in GitHub
Actions - the start commit is the commit 26 hours ago, instead of the commit
24 hours after 23:00 yesterday - this is to cope with variability in GHA start
times.
Comment on lines +1 to +4
Loading