dwsmith1983 commented on code in PR #7705:
URL: https://github.com/apache/datafusion-comet/pull/7705#discussion_r4661533652
##########
dev/ci/check-ci-config.py:
##########
@@ -521,6 +521,28 @@ def fork_pr(action="synchronize", label=None, labels=(),
base="main", repository
({"name": "push", "repository": UPSTREAM}, {"docs", "build_linux",
"build_macos"}),
]
+# compute() cases: (event, changed files, the outputs that must be true). These
+# cover what POLICY_CASES cannot, a push whose file list is empty.
+FORK_MAIN_PUSH = {"name": "push", "repository": FORK, "ref": "refs/heads/main"}
+FORK_BRANCH_PUSH = {"name": "push", "repository": FORK, "ref":
"refs/heads/feature"}
+UPSTREAM_MAIN_PUSH = {"name": "push", "repository": UPSTREAM, "ref":
"refs/heads/main"}
+NATIVE_SOURCE = ["native/core/src/lib.rs"]
+COMPUTE_CASES = [
+ # A sync of a fork's main adds nothing to upstream, and runs the Linux
build
+ # in cache-refresh-only mode (`build_linux` without `build_linux_full`) so
+ # the fork's branches can restore its Maven and cargo caches.
+ (FORK_MAIN_PUSH, [], {"build_linux"}),
+ # A fork's main that does add something runs the PR tier, as a branch does.
+ (FORK_MAIN_PUSH, NATIVE_SOURCE, PR_TIER),
+ (FORK_BRANCH_PUSH, NATIVE_SOURCE, PR_TIER),
+ (FORK_BRANCH_PUSH, [], set()),
+ (UPSTREAM_MAIN_PUSH, NATIVE_SOURCE, {"build_linux", "build_macos"}),
+ (UPSTREAM_MAIN_PUSH, [], set()),
+ # Only a push refreshes, and only to main itself.
+ ({"name": "schedule", "repository": FORK, "ref": "refs/heads/main"}, [],
set()),
+ ({"name": "push", "repository": FORK, "ref": "refs/heads/fix/main"}, [],
set()),
Review Comment:
Added, along with an empty `ref`, since `event_from_env` gives `""` when
`REF` is unset.
--
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]