dongjoon-hyun commented on code in PR #60261:
URL: https://github.com/apache/spark/pull/60261#discussion_r4543779197
##########
dev/merge_spark_pr.py:
##########
@@ -879,15 +889,23 @@ def clean_up():
git.run("git branch -D %s" % branch)
-def should_skip_post_merge_ci(target_ref):
+def should_skip_post_merge_ci(target_ref, force_post_merge_ci=False):
"""Return whether the next commit on ``target_ref`` should skip post-merge
CI.
The branch history count matches the check formerly performed in
``build_main.yml``.
+ ``force_post_merge_ci`` is set when the PR carries
``POST_MERGE_CI_FORCE_LABEL``.
"""
interval = POST_MERGE_CI_INTERVALS.get(target_ref)
if interval is None:
return False
+ if force_post_merge_ci:
+ print(
+ "Post-merge CI will run on %s: the PR has the %r label."
Review Comment:
Thank you for checking the history. I prefer option 2.
The rewording is text-only, and it makes L121 and the label message say
exactly what the script decides, which is the part this PR adds. For example:
- L121: `# A PR carrying this GitHub label is exempt from the interval and
never gets the skip trailer.`
- Message: `"Post-merge CI is exempt from sampling on %s: the PR has the %r
label."`
Option 3 would add plumbing on both paths (the cherry-pick path decides at
L1084, before the message exists at L1118) for a case that has not happened
since we adopted GitHub Actions. The only match in `master` is a `[ci skip]` in
a squashed commit list from 2014. The on-interval message predates this PR, so
I'm fine leaving it as is here.
--
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]