Skip to content

[SPARK-2747] git diff --dirstat can miss sql changes and not run Hive tests - #1656

Closed
rxin wants to merge 1 commit into
apache:masterfrom
rxin:hiveTest
Closed

rxin wants to merge 1 commit into
apache:masterfrom
rxin:hiveTest

Conversation

@rxin

@rxin rxin commented Jul 30, 2014

Copy link
Copy Markdown
Contributor

dev/run-tests use "git diff --dirstat master" to check whether sql is changed. However, --dirstat won't show sql if sql's change is negligible (e.g. 1k loc change in core, and only 1 loc change in hive).

We should use "git diff --name-only master" instead.

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

QA tests have started for PR 1656. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17437/consoleFull

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

QA results for PR 1656:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17437/consoleFull

@rxin

rxin commented Jul 30, 2014

Copy link
Copy Markdown
Contributor Author

Merging.

@asfgit asfgit closed this in 3bc3f18 Jul 30, 2014
@rxin
rxin deleted the hiveTest branch August 13, 2014 08:02
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
… tests

dev/run-tests use "git diff --dirstat master" to check whether sql is changed. However, --dirstat won't show sql if sql's change is negligible (e.g. 1k loc change in core, and only 1 loc change in hive).

We should use "git diff --name-only master" instead.

Author: Reynold Xin <rxin@apache.org>

Closes apache#1656 from rxin/hiveTest and squashes the following commits:

f5eab9f [Reynold Xin] [SPARK-2747] git diff --dirstat can miss sql changes and not run Hive tests.
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Nov 23, 2026
…che#1656)

### What changes were proposed in this pull request?

Milestone 8 had 78 open rows. The owner approved this cleanup on 23 November 2026.

- **Seven rows are marked Done** (406, 414, 510, 555, 563, 578, 621). Their merged PRs meet each row's done-when.
- **42 rows move to `m9/SCOPE.md` item 138**, under the plan's rule (12.3) that a row moving no census cell goes to milestone 9. A row that serves the new types, their casts or math stays. So only general CI, harness, fuzz and tooling rows move.
- A moved row keeps its text in `m8/PLAN.md` under a "Moved to milestone 9" note, as in items 15, 39 and 81. Its plan file moves to `m9/` (21 files), as `AGENTS.md` asks.
- **Row 493 is Withdrawn**: row 507's bins replaced the shards it balances, so its done-when cannot be met.
- Two open findings of Done rows (406, 563) go to item 138.
- On merge, the issue mirror closes the moved rows' issues as not planned, as it did for items 15, 39 and 81.
- `dev/varka_plan_lint.py` accepts `**Withdrawn**` and `**Moved to milestone <n>**` as a row's state. A moved row with merged work failed it before.

Row 104 stays Started. Its done-when is `VARKA-104.md`'s list, and step 5 (the int32 checked multiply) is not built.

<details>
<summary>Rows kept in milestone 8, and why</summary>

They block the close: 354, 355, 341, 490, 573, 622, 623, 624 and 633.

They have CI dispatches today: 557, 565, 584 and 640.

They serve a new type, its casts or math:

- 157, 596, 597: decimal store, decline and 128-bit speed guard.
- 476, 479, 481: narrow ints (warm-up, load, checked multiply).
- 487: the census held to the compiler. It may credit decimal pairs.
- 538: the `L2D` and `L2F` cast cells on both runner classes.
- 551: the host record that row 359's decimal width rule reads.
- 628, 641: BIGINT compare and BIGINT to DOUBLE cast at two lanes.
- 631, 632: fdlibm port costs.

Kept after review: 523. Its last part is row 618's, and 618 stays.

CI rows 570, 571, 574, 617, 618 and 626 fit the move rule but stay: each has a branch or an open PR.

</details>

<details>
<summary>The 42 moved rows</summary>

- JIT, sanitizer and lane-speed rows on existing types: 404, 430, 434, 435, 436, 437, 491.
- Fuzzer reach: 431, 432, 433, 561.
- Harness: 472, 526, 527, 528, 532.
- A side post: 511.
- CI and tooling: 483, 507, 508, 512, 513, 515, 516, 517, 518, 520, 522, 525, 529, 530, 531, 537, 539, 546, 547, 590, 625, 627, 637, 638, 642.

Item 138's table gives each one's reason.

</details>

### Why are the changes needed?

The close (354) needs every row Done, Withdrawn or Moved. Some rows were done but said Started, and many serve no goal of the milestone. Now the open list is the work that is left.

### Does this PR introduce _any_ user-facing change?

No. Plans and one lint script.

### How was this patch tested?

- `dev/varka_plan_lint.py --check --offline`, `dev/varka_quote_check.py` and `dev/varka_catalogue_move.sh --check 8 9` pass.
- `dev/varka_precommit.sh` finds nothing.
- `~/varka-ops/pre-pr-slot.sh` (light gate: extra-gate and push check) passed on the head.
- Each Done claim checked against `git log origin/master`.

### Review

`/code-review high`: 1 important item and 6 nits; five fixed. Then, by the owner's word: row 493 is Withdrawn, and CI rows 570, 571, 574, 617, 618 and 626 stay since each has a branch or open PR. A second review of the withdrawal found one important item (stale line numbers into the moved `VARKA-511.md`), fixed with three nits. Size: 282 counted lines.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Nov 23, 2026
… m8 (apache#1666)

### What changes were proposed in this pull request?

This adds two rows to `sql/varka/plans/m8/PLAN.md` for two option-matrix findings of 23 November 2026: one random failure and one skip that flips. It also returns row 638 and the first step of row 637 to milestone 8.

- Row 643: `VarkaFallbackReasonSuite`'s test "a planted reason is counted under its own metric..." failed in bin b001 (`isa=avx2`) of apache#1646's matrix, run 45118992922, and passed on rerun. It threw `IllegalStateException: no SQL execution of the session reports the node's metrics` (`VarkaFallbackReasons.java:89`). Row 402 fixed a failure of the same helper on 26 October, with a cause that was guessed and never confirmed. This throw is the branch that fix added. It means no execution in the store held the node's metrics at all, so the guessed cause does not explain it. The row asks for a failure message that lists the store's executions and their metric ids, then the real cause and a fix shown against it.
- Row 644: `VarkaGroupingBoundSuite`'s test "under the exact grouping no shape declines, and none falls back to the greedy grouping" has a `skips.tsv` line under `driverOutputTable=false` that names composition 8. Matrices 45118008614 (apache#1644) and 45123550199 (apache#1643) called the line stale. On apache#1644's head with master merged in, the test fails again, and now composition 16 falls back. The skip list is keyed only by configuration, suite and test name. The test draws 60 compositions with a fixed seed from the coverage table, so every new coverage row re-draws all of them, and the index that falls back moves. The row asks for a verdict that does not depend on which composition falls back: remove the fallback, or excuse projections by their content, never by an index.
- Row 638 (the arm sweep on vecbricks/varka's runners) comes back from `m9/SCOPE.md` item 138 by the owner's decision of 23 November 2026. The local gate's sweep is the throughput limit. The row loses its "Moved" note and gets a dated one. `VARKA-638.md` moves back to `m8/`, and its citations of rows 637 and 522 now point at `m9/`. Item 138 and `PLAN.md` section 8 drop the row and now count 41 rows. Row 638 depends on row 637's step 1, the first stage, which comes back too (next item). On merge the issue mirror (`dev/varka_issues.py`) should reopen apache#1654, the row's issue, which apache#1656 closed.
- Row 637's step 1 (the first stage of a pull request's option matrix: `dev/varka_matrix_scope.py --suites`, the `first` and `rest` lists, the plan artifact, the `stages` input, the two bin jobs and the summary line) comes back to milestone 8 by the owner's decision of 23 November 2026. Row 638 plans from its `dev/varka_matrix_scope.py`, and the fork's 40 slots are the other limit on throughput. Steps 2 and 3 (the optional path tiers, `--replay`, the `auto` default) stay in milestone 9. The row's status is Planned again with a dated note, and in milestone 8 it is done on step 1's done-when: the two test dispatches have run, one live week is committed and predictions 1 to 4 are scored. `VARKA-637.md` moves back to `m8/`, and its citation of row 522 now points at `m9/`. Item 138 keeps only 637's steps 2 and 3 and now counts 40 whole rows; `PLAN.md` section 8 does the same. Row 638 and `VARKA-638.md` no longer say that their dependency is in milestone 9. `VARKA-637.md` 3.1 gains a note: on 23 November the local gate's arm sweep was narrowed to the defaults, `useAVX=2`/`useAVX=3` and the configurations that name a changed option (`varka-gate-sweep-scope`, apache#1667). So `first` keeps "the changed suites under every configuration" on CI as its own definition, not as "`pre-pr.sh`'s arm sweep". On merge the issue mirror should reopen apache#1653, the row's issue, which apache#1656 closed. A dry run of `dev/varka_issues.py` shows both reopens.

Rows 643 and 644 move no census cell. They stay in milestone 8 because each turns red the option matrix that every milestone 8 pull request must pass before merge. Row 644 flips on the very pull requests that add coverage rows.

### Why are the changes needed?

Two tests fail the option matrix at random or as coverage grows, and no open row owns either one. Each red run costs a rerun and holds up a merge. Row 638 comes back because the owner decided that the laptop's sweep is now the limit on how fast pull requests land. Row 637's first step comes back with it: row 638 builds on it, and the fork's slots are the other limit.

### Does this PR introduce _any_ user-facing change?

No. Plan files only.

### How was this patch tested?

Documents only. `dev/varka_plan_lint.py` (also `--check --offline`), `dev/varka_quote_check.py`, `dev/varka_catalogue_move.sh --check 8 9` and the pre-commit hook pass. The failure texts were read from the matrix report jobs of the three runs.

### Review

`/code-review high` ran three times on 23 November 2026: on rows 643 and 644, after row 638's return was added, and after row 637's step 1 was returned. The third round fixed: `VARKA-637.md` 3.1's note says apache#1667 is still open, and `first` keeps its own definition either way; `VARKA-638.md` says its sweep stays the full one and is timed against the full laptop sweeps of 22 November; the tier clause in row 637's done-when is marked as milestone 9's steps 2 and 3; one paragraph was rewrapped. Earlier rounds fixed: Fixed: row 644 now says the test always draws 60 compositions and every coverage row re-draws them, so an excuse must name projections by content, and its done-when needs the same verdict over several draws; the composition-16 reading is marked as having no run id; row 643 closes only on a reproduction or a diagnostic message, not on passing runs; item 138 records that it first listed 42 rows and that row 638 went back; one section reference and one wrapped line were fixed.

Left as they are:
- Both reviews asked to file rows 643 and 644 in milestone 9 under 12.3. They stay in milestone 8, with the reason written in each row: each one turns red the matrix every milestone 8 pull request must pass.
- Not from this branch: `VARKA-638.md` 3.5 and its step 4 still treat `pre-pr.sh` as a `~/varka-ops` script, but apache#1639 moved it into the tree as `dev/varka_ops/pre-pr.sh`. Row 638's build should change the copy in the tree and count it toward the size cap.
- Also not from this branch: `dev/varka_issues.py` does not treat **Filed** as a status, so every Filed row's issue is titled "[VARKA-n] Filed" (622, 631, 632 and 636 already are), and 643 and 644 will be too. Row 356's status still says it is not merged, though apache#1567 merged on 21 November.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Nov 23, 2026
* [VARKA] Add row for keeping each plan row in its own file

Row 646: the task table's rows move to one file a row and PLAN.md's table
is generated from them, so two pull requests that edit neighbouring rows
stop conflicting. On 23 November apache#1656 and apache#1666 sent apache#1651, apache#1655 (twice)
and apache#1665 through a master merge, a local gate and a re-push, each time for
edits of neighbouring rows, not of one row.

GitHub's mergeability check and squash merge never run a merge driver, so
the row makes each edit touch its own file instead, and it compares an
uncommitted table with one that only a render-only commit refreshes.

In milestone 8 because each such merge re-runs the local gate, the
throughput limit the owner named when returning row 638; 12.3's rule would
send it to m9/SCOPE.md as rows 546 and 642, and the owner may.

Generated-by: Claude Code (Claude Opus 5.5)

* [VARKA] Row 646: fix the 367 conflict's cause, the order and the move

Review round on row 646:
- Row 367's branch conflicted with apache#1646 (row 368's edit), not apache#1660;
  367 against 368 joins the list of neighbouring pairs.
- The rows render in number order, which the table breaks in 18 places, so
  the done-when asks for every row's text unchanged, not identical bytes; a
  committed order index would conflict on appends again.
- The calibration table (dev/varka_calibration.py) is cited as the model,
  having made this choice already.
- The tool list gains the quote check, the requote and the pre-commit hook.
- The move needs a helper for branches made before it, and ships as its
  own pull request to stay under the size cap.

Generated-by: Claude Code (Claude Opus 5.5)

* [VARKA] Row 646: count only the conflicts others can replay

apache#1651's conflicting merge was never pushed, and three of the six local
branches counted belong to merged pull requests. The row now names apache#1655's
pushed merge, apache#1651's branch, and the three live local branches (rows 545,
579 and 640), and its done-when replays only the three pushed merges.

Generated-by: Claude Code (Claude Opus 5.5)

---------

Co-authored-by: t <t@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants