Repository navigation
Conversation
|
Merged build triggered. |
|
Jenkins, test this please. |
|
Merged build started. |
|
QA tests have started for PR 1340. This patch merges cleanly. |
|
Merged build triggered. |
|
Merged build started. |
|
QA tests have started for PR 1340. This patch merges cleanly. |
|
QA results for PR 1340: |
|
QA results for PR 1340: |
|
Merged build finished. |
1 similar comment
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16459/ |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16458/ |
|
Merged build triggered. |
|
Merged build started. |
|
QA tests have started for PR 1340. This patch merges cleanly. |
|
QA results for PR 1340: |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16464/ |
|
Jenkins, test this please. |
|
Merged build triggered. |
|
Merged build started. |
|
QA tests have started for PR 1340. This patch merges cleanly. |
|
QA results for PR 1340: |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
The built-in Jenkins integration is pretty bad. It's very confusing to users whether tests have passed or failed and we can't easily customize the message. With some small scripting around the Github API we can do much better than this. Author: Patrick Wendell <pwendell@gmail.com> Closes apache#1340 from pwendell/better-qa-messages and squashes the following commits: fd6077d [Patrick Wendell] Better automation for unit tests.
The built-in Jenkins integration is pretty bad. It's very confusing to users whether tests have passed or failed and we can't easily customize the message. With some small scripting around the Github API we can do much better than this. Author: Patrick Wendell <pwendell@gmail.com> Closes apache#1340 from pwendell/better-qa-messages and squashes the following commits: fd6077d [Patrick Wendell] Better automation for unit tests.
…evel (apache#1344) ### What changes were proposed in this pull request? The pre-push check from apache#1340 now catches stale generated files at its default, no-JVM level. **The failure it catches.** A rebase or a merge of master edits Varka's generated files with git's text merge: `coverage.json`, `emitted_bytes.json`, `width_audit.json`, the census and the generated blocks of `docs/sql-varka.md`. The result can look clean and still be wrong, because those files are computed from the code on both sides. apache#1323 was pushed like that. Its Build and option matrix failed on files that `dev/varka_regen_generated.sh --all` would have rewritten. Before this change, only the check's `full` level, which runs the generated-file suites in a JVM, could see it. **How it works: the check compares content.** - **`--all` records what it wrote.** Once every step has passed, `dev/varka_regen_generated.sh --all` appends one line per generated file, holding the file's blob id (`git hash-object`) and its path. The lines go to `varka-regen-all` in the repository's shared git directory, so a regeneration run in one worktree counts for a stacked branch checked in another. - The width audit is left out when the run skipped it. - The file is written under a lock of its own, without duplicate lines, and keeps its last 5000 lines. - **A generated file the branch changes passes only if its blob at HEAD is one `--all` wrote.** The check looks at every generated file the branch changes against its merge base with `origin/master`. Each one must match a recorded blob, or the push fails, naming the files and the command to run. - **What one rule covers.** This covers every way the earlier designs had to handle one by one: - the regeneration commit itself; - a `rebase -i` that drops it; - regenerated files left uncommitted; - an amend; - a reset to `ORIG_HEAD`; - `checkout -b`; - stacked branches. The check never reads the reflog. - **Errors fail the check.** If the check cannot list the generated files, read the merge's owed list, or run `git diff` or `git ls-tree`, it fails with the error instead of passing. **What it costs.** - **One `--all` run where none was needed.** A branch that changes a generated file to content no `--all` has written needs one run. Examples are a clean per-key merge by the merge driver, and a branch that only edits the hand-written prose of `docs/sql-varka.md`. - **The marker is local.** A fresh clone, another machine, or a branch regenerated before this change needs one run too. - **One case it cannot see.** A `rebase -i` that drops a source commit but keeps the regeneration commit leaves a stale file whose blob still matches. The generated-file suites at `full` and on CI catch that. - These costs are listed in `sql/varka/plans/m8/VARKA-563.md` section 8. ### Why are the changes needed? The default push check runs no JVM, so a stale generated file after a rebase passed it. That was apache#1323's failure, and it cost a Build and a matrix round. Earlier attempts inferred the state from git's reflog, and each review round found a new history that fooled them. Comparing the committed content with what the regeneration wrote has no such histories to miss. ### Does this PR introduce _any_ user-facing change? No. It changes the developer tooling only. ### How was this patch tested? - **Self-tests:** 21 run in the Build's lint step through `dev/varka_precommit.sh --selftest`. The R3 ones cover each case listed above, apache#1323's flow, the marker's deduplication and cap, a skipped width audit staying owed end to end, and the error paths. Each test was checked to fail when the code it covers is broken on purpose. - **Replays on the incident heads,** recorded in `sql/varka/plans/m8/results/VARKA-563-replays.txt`: - apache#1323's head fails. - apache#1323's fix and apache#1338's final head pass, given the blobs their real `--all` runs wrote. - Master passes. - **Reviews:** one high review and several medium reviews, the last finding nothing blocking. - **Lints:** ruff, the plan lint, the quote check and the pre-commit rules pass. The change counts 364 lines. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 5.5)
…pache#1366) ### What changes were proposed in this pull request? Brings ten rows of milestone 8's plan up to date with the pull requests that merged their work. Row 572 asked for it, and this is its first part. - **Rows 560, 562 and 568 are `Done`.** 560 and 562 said "done when it merges", and apache#1326 and apache#1335 merged. Row 568's three done-when clauses hold on master since apache#1363: `nanByNess` is gone, the lint rule flags each shape in its self-test and finds no expression in the tree, and the opt-in sweeps passed 46 of 46. - **Rows 554, 555, 557, 558, 559, 563 and 546 stay `Started`,** each now naming the pull request that merged it (apache#1312, apache#1313, apache#1332, apache#1320, apache#1329, apache#1340 with apache#1344, and apache#1293) and its date. I did not mark them `Done`: their done-when clauses name checks, such as a Build failing a change over the cap or a matrix no longer failing a test, that I have not confirmed from a run. Row 563's text no longer lists its pull request as left. - **Row 572 is `Started`** and lists what is left: rows 497, 365 and 503, and the rows the triage named whose text is behind merged work (157, 348, 349, 538, 332, 333, 343, 341, 331, 340, 342, 344, 377 and 330). The PR numbers and merge dates were read from the pull requests. ### Why are the changes needed? A row is the only record of why a change exists. A row that still says "Started" or "left: the pull request" after the pull request merged misleads a reader and any count of the milestone's finished rows. ### Does this PR introduce _any_ user-facing change? No. It changes the plan only. ### How was this patch tested? - `dev/varka_plan_lint.py --check --offline`: 0 findings. - `dev/varka_quote_check.py`: 0 orphans. - The pre-commit rules pass. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Sonnet 5.5)
…e#1367) ### What changes were proposed in this pull request? The pre-push hook, `dev/varka_prepush.sh`, now refuses a push of a branch that this checkout does not hold, instead of checking the wrong files. **The bug.** The hook runs `dev/varka_precommit.sh --range` over the pushed commits, and that check reads each file from the working tree. Pushing a branch from a checkout of another branch, as happened with apache#1340, made the hook read a tree that lacks the files the branch adds. It refused the push with "no Apache license header" on a file that has one, which sent the investigation the wrong way. **The fix.** Before the line checks, the hook asks whether the files the pushed commits change are the same in this working tree (`git diff --quiet <pushed commit> -- <those files>`). If not, it refuses and names the fix: push from the worktree that has the branch checked out (`git worktree list`), or use `--no-verify`. The refusal also names uncommitted edits as a cause, since they differ from the commit too. The commit-message check runs before this guard, so a refusal does not skip it. The names are read NUL-separated in a loop, so a name with non-ASCII bytes is not quoted into a pathspec that matches nothing, and the hook does not need bash 4's `mapfile`. **A self-test.** `dev/varka_prepush.sh --selftest` builds a repository in which a branch adds two files, one named with an accent, and pushes it from a checkout of master, which must be refused, and from a checkout of the branch, which must run the line checks. It runs in the lint job beside the other self-tests. ### Why are the changes needed? A hook that reports a missing license header for a file that has one costs time and trust. The message now says what is wrong and how to fix it. ### Does this PR introduce _any_ user-facing change? No. It changes the developer tooling only. ### How was this patch tested? - `dev/varka_prepush.sh --selftest` passes. Two mutants make it fail: one with the guard removed, and one that reads the names the old, quoted way with only the accented file in the commit. - An independent high review checked the guard against a clean tree, uncommitted and staged edits, tags, `HEAD~1`, renames, deleted files, merge commits, an empty range and long file lists. Its two findings, the non-ASCII names and bash 3.2, are fixed here, and so is its note on the message. - The plan lint, the quote check and the pre-commit rules pass. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Sonnet 5.5)
The built-in Jenkins integration is pretty bad. It's very confusing to users whether tests have passed or failed and we can't easily customize the message.
With some small scripting around the Github API we can do much better than this.