You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "felipepessoto (via GitHub)" <gi...@apache.org> on 2026/08/10 18:09:20 UTC

[PR] [MINOR][DOC] Document the Delta Spark UT pipeline in the Velox CI docs [gluten]

felipepessoto opened a new pull request, #12745:
URL: https://github.com/apache/gluten/pull/12745

   ## What changes are proposed in this pull request?
   
   `docs/developers/velox-backend-CI.md` documents the Velox CI workflows but did not mention `delta_spark_ut.yml`, added in #12388. A contributor whose PR suddenly runs a multi-hour Delta suite had no entry point explaining what it is, or why it does not simply fail on a failing test, short of reading the workflow itself.
   
   This adds a short section covering:
   
   - why the job gates against a committed known-failures baseline rather than on any failure,
   - when it runs (Delta-relevant paths per PR, nightly at 05:00 UTC, or `workflow_dispatch`),
   - how to refresh the baseline after a fix,
   
   and links the pipeline README plus the follow-up tracker #12743.
   
   Docs only -- no workflow or code changes.
   
   ## How was this patch tested?
   
   No code change. The described behaviour was checked against `delta_spark_ut.yml` on `main`: the `schedule` cron, the `pull_request` path filter, and the `delta-spark-ut-known-failures` artifact name.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: GitHub Copilot CLI
   


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][DOC] Document the Delta Spark UT pipeline in the Velox CI docs [gluten]

Posted by "felipepessoto (via GitHub)" <gi...@apache.org>.
felipepessoto commented on code in PR #12745:
URL: https://github.com/apache/gluten/pull/12745#discussion_r3753022444


##########
docs/developers/velox-backend-CI.md:
##########
@@ -38,4 +38,23 @@ Since the Docker image is rebuilt weekly, the ccache is mostly outdated, so it i
 
 ## Updating the Docker Image
 The GitHub secrets `DOCKERHUB_USER` and `DOCKERHUB_TOKEN` are used to push Docker images to [Docker Hub](https://hub.docker.com/r/apache/gluten/tags).
-Note that GitHub secrets are not accessible in PRs from forked repos.
\ No newline at end of file
+Note that GitHub secrets are not accessible in PRs from forked repos.
+
+## Delta Spark UT
+`delta_spark_ut.yml` runs delta-io/delta's own `spark` test suite against a Gluten Velox bundle,
+so Gluten is validated against a real Delta release. Many of those tests are expected to fail
+today (Gluten does not offload every Delta code path), so the job does not gate on "any failure":
+it compares each run against a committed baseline of known failures in
+`.github/workflows/util/delta-spark-ut/known-failures.txt` and fails only on a **new** failure,
+or on a baseline test that starts **passing** (which means the baseline needs updating).
+
+It runs per PR only when Delta-relevant paths change (`gluten-delta/**`,
+`backends-velox/src-delta*/**`, or the pipeline's own files), nightly at 05:00 UTC for full
+coverage, and on demand via `workflow_dispatch` -- use the manual run to check a Velox/core
+change against Delta before merging.
+
+To refresh the baseline after fixing something, run the workflow with `update_baseline=true`,
+download the `delta-spark-ut-known-failures` artifact and commit it. See
+[.github/workflows/util/delta-spark-ut/README.md](https://github.com/apache/gluten/blob/main/.github/workflows/util/delta-spark-ut/README.md)

Review Comment:
   Valid, fixed in 14553a0f8. "download the artifact and commit it" didn't say what to do with the file -- it could be read as committing the downloaded artifact somewhere new rather than replacing the committed baseline in place.
   
   It now names the destination:
   
   > download the `delta-spark-ut-known-failures` artifact, and use the `known-failures.txt` it contains to replace `.github/workflows/util/delta-spark-ut/known-failures.txt` in the repo.
   
   This also matches the wording the pipeline README already uses for bootstrapping ("Replace `known-failures.txt` with the file from that artifact"), so the two are consistent now.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][CI][DOC] Document the Delta Spark UT pipeline and skip it for docs-only changes [gluten]

Posted by "felipepessoto (via GitHub)" <gi...@apache.org>.
felipepessoto commented on PR #12745:
URL: https://github.com/apache/gluten/pull/12745#issuecomment-5257263308

   Changed the pattern to `**/*.md` in 3777a642d, though not quite for the stated reason.
   
   Per the [filter pattern cheat sheet](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet), `**` "matches any character **including slash (`/`)**", and `'**.js'` is documented as matching `src/js/app.js` — so `**.md` should already have matched at arbitrary depth.
   
   That said, `docs/**/*.md` is the spelling the same table documents for "a file with a `.md` suffix anywhere in the `docs` directory", and its examples cover the top-level file (`docs/README.md`) as well as nested ones (`docs/a/markdown/file.md`). Since this pattern has now drawn two review comments, and a silent non-match would mean every README edit costs a full ~10 runner-hour run, the unambiguous spelling is worth more than the terse one. No behaviour change intended: Markdown under the directory is excluded, and `run-delta-tests.sh`, `known-failures.txt` and the workflow itself still trigger the suite.


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][CI][DOC] Document the Delta Spark UT pipeline and skip it for docs-only changes [gluten]

Posted by "philo-he (via GitHub)" <gi...@apache.org>.
philo-he commented on code in PR #12745:
URL: https://github.com/apache/gluten/pull/12745#discussion_r3763861756


##########
docs/developers/velox-backend-CI.md:
##########
@@ -38,4 +38,11 @@ Since the Docker image is rebuilt weekly, the ccache is mostly outdated, so it i
 
 ## Updating the Docker Image
 The GitHub secrets `DOCKERHUB_USER` and `DOCKERHUB_TOKEN` are used to push Docker images to [Docker Hub](https://hub.docker.com/r/apache/gluten/tags).
-Note that GitHub secrets are not accessible in PRs from forked repos.
\ No newline at end of file
+Note that GitHub secrets are not accessible in PRs from forked repos.
+
+## Delta Spark UT
+`delta_spark_ut.yml` runs delta-io/delta's own `spark` test suite against a Gluten Velox bundle, so Gluten is validated against a real Delta release. A number of those tests fail today. Not because Gluten declines to offload a plan -- that should fall back to vanilla Spark and the test should still pass. Some are real gaps (fallback not happening where it should, metrics that differ from vanilla, native-side bugs), and some are expected: a test that asserts on the query plan sees a different plan once the scan or operators are offloaded, which is by design rather than a defect. So the job does not gate on "any failure": it compares each run against a committed baseline of known failures in `.github/workflows/util/delta-spark-ut/known-failures.txt` and fails on a **new** failure, or on a baseline test that starts **passing** (which means the baseline needs updating). It also fails outright if a run produced no usable results -- missing or truncated JUnit reports, or fewer shards than
  expected -- rather than passing on partial data.

Review Comment:
   Nit:
   
   All of this text sits on line 44, which is hard to work with in an editor. It also means a future one-word edit will show the entire line as changed in the diff. Generally it's better to wrap at 100-150 characters, or put each sentence on its own line. Same applies to the other long lines in this document. Thanks!



##########
.github/workflows/delta_spark_ut.yml:
##########
@@ -57,6 +57,13 @@ on:
       - 'gluten-delta/**'
       # Covers src-delta, src-delta33, src-delta40 and any future variant.
       - 'backends-velox/src-delta*/**'
+      # Documentation can't change what the suite does, and this job costs ~10
+      # runner-hours, so don't spend that on a README edit. `**/*.md` is the
+      # documented spelling for "a .md file anywhere under this directory" and
+      # covers both the README and any nested notes. Negated patterns are

Review Comment:
   Nit:
   
   Can we remove "Documentation can't chang ...and any nested notes." for brevity? 



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][CI][DOC] Document the Delta Spark UT pipeline and skip it for docs-only changes [gluten]

Posted by "felipepessoto (via GitHub)" <gi...@apache.org>.
felipepessoto commented on code in PR #12745:
URL: https://github.com/apache/gluten/pull/12745#discussion_r3768838956


##########
docs/developers/velox-backend-CI.md:
##########
@@ -38,4 +38,11 @@ Since the Docker image is rebuilt weekly, the ccache is mostly outdated, so it i
 
 ## Updating the Docker Image
 The GitHub secrets `DOCKERHUB_USER` and `DOCKERHUB_TOKEN` are used to push Docker images to [Docker Hub](https://hub.docker.com/r/apache/gluten/tags).
-Note that GitHub secrets are not accessible in PRs from forked repos.
\ No newline at end of file
+Note that GitHub secrets are not accessible in PRs from forked repos.
+
+## Delta Spark UT
+`delta_spark_ut.yml` runs delta-io/delta's own `spark` test suite against a Gluten Velox bundle, so Gluten is validated against a real Delta release. A number of those tests fail today. Not because Gluten declines to offload a plan -- that should fall back to vanilla Spark and the test should still pass. Some are real gaps (fallback not happening where it should, metrics that differ from vanilla, native-side bugs), and some are expected: a test that asserts on the query plan sees a different plan once the scan or operators are offloaded, which is by design rather than a defect. So the job does not gate on "any failure": it compares each run against a committed baseline of known failures in `.github/workflows/util/delta-spark-ut/known-failures.txt` and fails on a **new** failure, or on a baseline test that starts **passing** (which means the baseline needs updating). It also fails outright if a run produced no usable results -- missing or truncated JUnit reports, or fewer shards than
  expected -- rather than passing on partial data.

Review Comment:
   Reflowed to one sentence per line



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][CI][DOC] Document the Delta Spark UT pipeline and skip it for docs-only changes [gluten]

Posted by "felipepessoto (via GitHub)" <gi...@apache.org>.
felipepessoto commented on code in PR #12745:
URL: https://github.com/apache/gluten/pull/12745#discussion_r3768836771


##########
.github/workflows/delta_spark_ut.yml:
##########
@@ -57,6 +57,13 @@ on:
       - 'gluten-delta/**'
       # Covers src-delta, src-delta33, src-delta40 and any future variant.
       - 'backends-velox/src-delta*/**'
+      # Documentation can't change what the suite does, and this job costs ~10
+      # runner-hours, so don't spend that on a README edit. `**/*.md` is the
+      # documented spelling for "a .md file anywhere under this directory" and
+      # covers both the README and any nested notes. Negated patterns are

Review Comment:
   trimmed to just the order-sensitivity note



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][CI][DOC] Document the Delta Spark UT pipeline and skip it for docs-only changes [gluten]

Posted by "philo-he (via GitHub)" <gi...@apache.org>.
philo-he merged PR #12745:
URL: https://github.com/apache/gluten/pull/12745


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][DOC] Document the Delta Spark UT pipeline in the Velox CI docs [gluten]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12745:
URL: https://github.com/apache/gluten/pull/12745#discussion_r3752152492


##########
docs/developers/velox-backend-CI.md:
##########
@@ -38,4 +38,23 @@ Since the Docker image is rebuilt weekly, the ccache is mostly outdated, so it i
 
 ## Updating the Docker Image
 The GitHub secrets `DOCKERHUB_USER` and `DOCKERHUB_TOKEN` are used to push Docker images to [Docker Hub](https://hub.docker.com/r/apache/gluten/tags).
-Note that GitHub secrets are not accessible in PRs from forked repos.
\ No newline at end of file
+Note that GitHub secrets are not accessible in PRs from forked repos.
+
+## Delta Spark UT
+`delta_spark_ut.yml` runs delta-io/delta's own `spark` test suite against a Gluten Velox bundle,
+so Gluten is validated against a real Delta release. Many of those tests are expected to fail
+today (Gluten does not offload every Delta code path), so the job does not gate on "any failure":
+it compares each run against a committed baseline of known failures in
+`.github/workflows/util/delta-spark-ut/known-failures.txt` and fails only on a **new** failure,
+or on a baseline test that starts **passing** (which means the baseline needs updating).
+
+It runs per PR only when Delta-relevant paths change (`gluten-delta/**`,
+`backends-velox/src-delta*/**`, or the pipeline's own files), nightly at 05:00 UTC for full
+coverage, and on demand via `workflow_dispatch` -- use the manual run to check a Velox/core
+change against Delta before merging.
+
+To refresh the baseline after fixing something, run the workflow with `update_baseline=true`,
+download the `delta-spark-ut-known-failures` artifact and commit it. See
+[.github/workflows/util/delta-spark-ut/README.md](https://github.com/apache/gluten/blob/main/.github/workflows/util/delta-spark-ut/README.md)

Review Comment:
   Baseline refresh instructions are a bit ambiguous: the uploaded artifact contains `known-failures.txt`, but contributors still need to replace `.github/workflows/util/delta-spark-ut/known-failures.txt` in this repo with that downloaded file. As written, someone might commit the downloaded artifact file as-is without updating the committed baseline in-place.



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [MINOR][CI][DOC] Document the Delta Spark UT pipeline and skip it for docs-only changes [gluten]

Posted by "felipepessoto (via GitHub)" <gi...@apache.org>.
felipepessoto commented on PR #12745:
URL: https://github.com/apache/gluten/pull/12745#issuecomment-5249543278

   Addressed the two suppressed review comments:
   
   **"fails only ... is too absolute"** — correct, fixed in 015c5b574. The gate also exits non-zero when a run produced no usable results (no JUnit reports, a truncated `TEST-*.xml`, or fewer shards than expected), so someone debugging a red run shouldn't be hunting for a test failure that isn't there. The docs now say so.
   
   **"`!...**.md` won't match, because `**` is only a globstar as a full path segment"** — I don't think this one holds, so I've left the pattern as is. Per the [filter pattern cheat sheet](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet), `**` "matches any character **including slash (`/`)**", and `'**.js'` is documented as matching `index.js`, `js/index.js` *and* `src/js/app.js` — so it isn't segment-restricted, and `**.md` matches both `README.md` in that directory and any nested Markdown.
   
   Worth noting for reviewers what this does and doesn't buy: for `pull_request`, `paths:` is evaluated against the whole PR diff rather than the latest push, so the exclusion makes a **docs-only PR** free — it doesn't stop this PR from running the suite, since this PR also changes `delta_spark_ut.yml`. That run is expected and is worth having once, given the workflow itself changed.


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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