Abhishek-Mohan commented on code in PR #7705:
URL: https://github.com/apache/datafusion-comet/pull/7705#discussion_r4660717031


##########
.github/workflows/README.md:
##########
@@ -215,11 +215,20 @@ Things that follow from that, and are easy to break:
   it tells apart by the caller's `github.workflow`, and `required_checks` skips
   itself when `Preflight` does. That starts no runner for a fork's schedule or
   for a second copy of a push, and leaves the bridge one workflow to look up. A
-  push that adds nothing to upstream `main`, such as a sync of the fork, 
selects
-  no build or test suite and writes to no build cache. A fork's caches are 
therefore cold unless a run on its `main` builds,
-  and each branch run rebuilds the native library: 59 minutes of wall time and
-  240 runner-minutes cold against 50 and 213 warm, measured 2026-10-28 on one
-  fork.
+  push to the fork's `main` that adds nothing to upstream, such as a sync, runs
+  the Linux build in cache-refresh-only mode (`compute` in 
`compute-changes.py`).
+  That writes the fork's `Linux-java-maven-*` and `cargo-ci` entries on its
+  default branch, where every branch of the fork can restore them, and spends

Review Comment:
   The refresh runs only for `refs/heads/main` (`compute-changes.py`, line 
682), and every save step also checks `github.ref == 'refs/heads/main'`. That's 
right for a fork that kept `main` as its default branch, but "on its default 
branch" reads as if a fork with a different default is covered too. Maybe: "on 
`main`, which has to be the fork's default branch for its other branches to 
restore them".



##########
.github/workflows/README.md:
##########
@@ -215,11 +215,20 @@ Things that follow from that, and are easy to break:
   it tells apart by the caller's `github.workflow`, and `required_checks` skips
   itself when `Preflight` does. That starts no runner for a fork's schedule or
   for a second copy of a push, and leaves the bridge one workflow to look up. A
-  push that adds nothing to upstream `main`, such as a sync of the fork, 
selects
-  no build or test suite and writes to no build cache. A fork's caches are 
therefore cold unless a run on its `main` builds,
-  and each branch run rebuilds the native library: 59 minutes of wall time and
-  240 runner-minutes cold against 50 and 213 warm, measured 2026-10-28 on one
-  fork.
+  push to the fork's `main` that adds nothing to upstream, such as a sync, runs
+  the Linux build in cache-refresh-only mode (`compute` in 
`compute-changes.py`).
+  That writes the fork's `Linux-java-maven-*` and `cargo-ci` entries on its
+  default branch, where every branch of the fork can restore them, and spends
+  about 40 runner-minutes of the fork's time (`Lint`, `build-native` and the 
two
+  TPC jobs) per sync once warm, more on the first. A fork `main` that carries 
its own
+  commits runs the PR tier instead, which saves those entries only when it
+  builds, so one whose own commits are docs-only stays cold. So does a `main`
+  that is never synced: each branch run downloads its Maven
+  dependencies from Central and rebuilds the native library, 59 minutes of wall
+  time and 240 runner-minutes cold against 50 and 213 warm, measured 2026-10-28
+  on one fork. The refresh warms only the default profile's Maven dependencies;

Review Comment:
   This caveat matters most for the Celeborn jobs, which are among the ones 
failing on forks. They build with 
`-Pspark-3.5,scala-2.12,celeborn-reflection-compatibility` 
(`pr_build_linux.yml`, line 371). So after restoring this default-profile entry 
by prefix, they still download the Spark 3.5 / Scala 2.12 dependency set, not 
only the Celeborn clients. A sync never writes their own `-celeborn-*` entry, 
because the job is skipped in cache-refresh-only mode.
   
   In your branch run 44740834808, Celeborn 0.7.0 restored 
`Linux-java-maven-<hash>-celeborn-0.7.0`, which your `main`'s PR-tier run had 
saved. So that run doesn't show what a sync alone gives these jobs.
   
   Could this say "the Spark 3.5 / Scala 2.12 dependencies the Celeborn jobs 
build with"? And could ci.md, which doesn't mention this, carry the same 
caveat? Otherwise a contributor who syncs will expect the 429s to stop entirely.



##########
.github/workflows/pr_build_linux.yml:
##########
@@ -29,7 +29,8 @@ name: PR Build (Linux)
 #          enough to populate it. This is the push-to-main tier, where the
 #          queue has already tested the exact tree that landed and the sole
 #          remaining purpose of the run is to leave main's caches warm for the
-#          next pull request. See the `build_linux` / `build_linux_full`
+#          next pull request. A sync of a fork's main runs it too, for the

Review Comment:
   The TPC-H and TPC-DS data caches are keyed on a hash of this whole file 
(`tpch-${{ hashFiles('.github/workflows/pr_build_linux.yml') }}`, lines 819 and 
894) and have no restore-keys. So this comment-only change makes the next run 
on apache `main` regenerate both datasets and save about 520 MB of new entries 
while the old ones wait for eviction. That's the same cache budget your comment 
on #7702 shows is already tight. Unless you have another reason to touch this 
file, keeping the explanation in ci.yml and README.md and leaving 
`pr_build_linux.yml` unchanged avoids that.



##########
docs/source/contributor-guide/ci.md:
##########
@@ -141,10 +141,15 @@ Some things to know:
   controls the workflow that produced it. A green fork run is a good sign, not 
a merge gate. The
   queue is the gate, and it tests your change merged with `main` and 
everything queued ahead of it,
   where the fork run tests your branch head alone.
-- **Caches are cold unless `main` builds.** A branch restores caches saved on 
its own ref or on your
-  fork's default branch, and a run on your fork's `main` saves them only when 
it builds. A push to
-  `main` that adds nothing to upstream, such as syncing your fork, selects no 
suite, so it warms
-  nothing, and a branch run rebuilds the native library. A run of the PR tier 
on a fork with cold
+- **Sync your fork's `main` to warm its caches.** A branch restores caches 
saved on its own ref or
+  on your fork's default branch, and only a run on your fork's `main` saves 
the Maven and cargo
+  caches. A push to `main` that adds nothing to upstream, such as syncing your 
fork, runs the Linux
+  build in cache-refresh-only mode, which saves both and runs no tests. Each 
sync spends about 40

Review Comment:
   Two small things in these lines:
   - **"Runs no tests":** the refresh does run some checks, namely Lint's 
`cargo fmt --check` and Preflight's checks. Maybe "runs no test suites".
   - **"About 40 runner-minutes":** this looks high for a warm sync. The same 
mode on apache `main` ([run 
45050546538](https://github.com/apache/datafusion-comet/actions/runs/45050546538),
 a push to `main`) took about 16.5 runner-minutes for the four Linux jobs (Lint 
0.8, native 5.2, TPC-H 4.2, TPC-DS 6.3), or about 20 counting Preflight. Citing 
a measured run would help, here and in README.md line 222.



-- 
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