blaginin commented on code in PR #5963:
URL: https://github.com/apache/datafusion-comet/pull/5963#discussion_r4017567961


##########
.github/workflows/ci.yml:
##########
@@ -204,6 +220,20 @@ jobs:
             # every output true for this event so a manual run can exercise
             # any gated job.
             :
+          elif [[ "$EVENT_NAME" == "schedule" ]]; then
+            # Same: the nightly tests main as it stands, so there is nothing
+            # to diff and compute-changes.py runs the whole nightly tier. It
+            # skips when HEAD predates the previous night's run, so a quiet
+            # weekend does not re-test the same tree three times. The slack
+            # covers scheduling jitter; if a nightly fails for an
+            # infrastructure reason and nothing lands the next day, trigger
+            # ci.yml by hand instead.
+            head_ts=$(git log -1 --format=%ct)
+            age=$(( $(date +%s) - head_ts ))
+            if [[ "$age" -gt $(( 24 * 3600 + 1800 )) ]]; then
+              echo "HEAD is $(( age / 3600 ))h old; nothing has landed since 
the last nightly"
+              export NIGHTLY_STALE=true

Review Comment:
   works as a first version, but in the future we maybe can use github api to 
check past runs explicitly? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to