You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/10/16 14:37:51 UTC

(datafusion) branch gh-readonly-queue/main/pr-25195-396ea7c19e7731747b7efebf22f638bff741040c created (now 1da3cf049f)

This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a change to branch gh-readonly-queue/main/pr-25195-396ea7c19e7731747b7efebf22f638bff741040c
in repository https://gitbox.apache.org/repos/asf/datafusion.git


      at 1da3cf049f chore(ci): Register the substrait check job with runs-on, route spark checks through xtask (#25195)

This branch includes the following new commits:

     new 1da3cf049f chore(ci): Register the substrait check job with runs-on, route spark checks through xtask (#25195)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org


(datafusion) 01/01: chore(ci): Register the substrait check job with runs-on, route spark checks through xtask (#25195)

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-25195-396ea7c19e7731747b7efebf22f638bff741040c
in repository https://gitbox.apache.org/repos/asf/datafusion.git

commit 1da3cf049fa1a7a708acc2c29eba4f2e9dece8db
Author: namanjain24-sudo <na...@gmail.com>
AuthorDate: Fri Oct 16 14:37:25 2026 +0000

    chore(ci): Register the substrait check job with runs-on, route spark checks through xtask (#25195)
    
    ## Which issue does this PR close?
    
    - Part of #25148. Also finishes the `cargo check` half of #21048, which
    asks for the CI steps to be reproducible locally.
    
    ## Rationale for this change
    
    While measuring the `cargo check <crate> features` jobs for #25148 I
    found two inconsistencies in them. Neither is a policy question about
    which runner to use, so they seemed worth separating out.
    
    **1. The substrait check job never registers with `runs-on`.**
    
    Fifteen jobs in `rust.yml` select a `runs-on` runner with
    `extras=s3-cache`. Fourteen of them start with the `runs-on/action` step
    that registers the job. `cargo check datafusion-substrait features` is
    the one that does not, so on `push` and `merge_group` it lands on the
    `runs-on` runner but gets neither the external cache nor the job metrics
    the other fourteen report. It looks like an oversight rather than a
    choice; the job directly above and below it in the file both have the
    step.
    
    **2. The spark check job is the last one not going through `xtask`.**
    
    `cargo check datafusion-spark features` calls `cargo check` directly.
    Every other check step in the workflow goes through `cargo xtask ci step
    check`, which is what lets a contributor run the same thing locally.
    After this PR there is no raw `cargo check` left in `rust.yml`.
    
    ## What changes are included in this PR?
    
    Four lines.
    
    - Add the `runs-on/action` step to
    `linux-datafusion-substrait-features`, matching its siblings.
    - Replace the three `datafusion-spark` `cargo check` invocations with
    the `xtask` equivalents.
    
    The commands `xtask` emits are the same ones being replaced, which
    `--explain` confirms:
    
    | step | before | `cargo xtask ci step check datafusion-spark …` |
    | --- | --- | --- |
    | default features | `cargo check --profile ci --all-targets -p
    datafusion-spark` | `default` |
    | no-default-features | `cargo check --profile ci --no-default-features
    -p datafusion-spark` | `no-default` |
    | core | `cargo check --profile ci --no-default-features -p
    datafusion-spark --features=core` | `core` |
    
    I deliberately left out the larger changes those jobs invite, because
    they are the open question in #25148 rather than something to decide in
    a cleanup PR. For the record, what I measured there: five of the seven
    `cargo check <crate> features` jobs declare no `Rust Dependency Cache`
    step at all, only `datafusion` and `datafusion-substrait` do; three of
    the seven are pinned to `ubuntu-latest` rather than the
    `vars.USE_RUNS_ON` expression; and across those seven jobs about a third
    of the wall clock is setup and cache restore paid seven times over.
    Happy to follow up on any of that if it is wanted.
    
    ## What is the testing strategy for this PR?
    
    The three `xtask` commands were run locally against this branch and all
    pass:
    
    ```
    cargo xtask ci step check datafusion-spark default
    cargo xtask ci step check datafusion-spark no-default
    cargo xtask ci step check datafusion-spark core
    ```
    
    `python3 ci/scripts/check_asf_yaml_status_checks.py` reports `OK: All 32
    required_status_checks match existing GitHub Actions jobs` — job names
    are unchanged, so the required checks are unaffected.
    `ci/scripts/check_no_cargo_install_in_workflows.sh` and
    `ci/scripts/typos_check.sh` are clean, and the file still parses as YAML
    with the same 26 jobs.
    
    The `runs-on/action` half cannot be verified outside the Apache repo,
    since the action is a no-op on standard GitHub runners.
    
    ## Are there any user-facing changes?
    
    No. CI configuration only.
    
    Co-authored-by: Andrew Lamb <an...@nerdnetworks.org>
---
 .github/workflows/rust.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 152fe037fa..383d268854 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -159,6 +159,7 @@ jobs:
     container:
       image: amd64/rust
     steps:
+      - uses: runs-on/action@efac073ea2507ec18797de3a81704201ade11d9d  # v2.3.1
       - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1  # v7.0.1
       - name: Setup Rust toolchain
         uses: ./.github/actions/setup-builder
@@ -399,14 +400,14 @@ jobs:
           save-if: false # The workspace and functions checks save this cache on main.
           shared-key: "amd-ci-check"
       - name: Check datafusion-spark (default features)
-        run: cargo check --profile ci --all-targets -p datafusion-spark
+        run: cargo xtask ci step check datafusion-spark default
       #
       # Note: Only check libraries (not --all-targets) to cover end user APIs
       #
       - name: Check datafusion-spark (no-default-features)
-        run: cargo check --profile ci --no-default-features -p datafusion-spark
+        run: cargo xtask ci step check datafusion-spark no-default
       - name: Check datafusion-spark (core)
-        run: cargo check --profile ci --no-default-features -p datafusion-spark --features=core
+        run: cargo xtask ci step check datafusion-spark core
 
   # Library and integration tests
   linux-test:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org