Skip to content

SPARK-2749 [BUILD]. Spark SQL Java tests aren't compiling in Jenkins' Maven builds; missing junit:junit dep - #1660

Closed
srowen wants to merge 2 commits into
apache:masterfrom
srowen:SPARK-2749
Closed

srowen wants to merge 2 commits into
apache:masterfrom
srowen:SPARK-2749

Conversation

@srowen

@srowen srowen commented Jul 30, 2014

Copy link
Copy Markdown
Member

The Maven-based builds in the build matrix have been failing for a few days:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/

On inspection, it looks like the Spark SQL Java tests don't compile:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/job/Spark-Master-Maven-pre-YARN/hadoop.version=1.0.4,label=centos/244/consoleFull

I confirmed it by repeating the command vs master:

mvn -Dhadoop.version=1.0.4 -Dlabel=centos -DskipTests clean package

The problem is that this module doesn't depend on JUnit. In fact, none of the modules do, but com.novocode:junit-interface (the SBT-JUnit bridge) pulls it in, in most places. However this module doesn't depend on com.novocode:junit-interface

Adding the junit:junit dependency fixes the compile problem. In fact, the other modules with Java tests should probably depend on it explicitly instead of happening to get it via com.novocode:junit-interface, since that is a bit SBT/Scala-specific (and I am not even sure it's needed).

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

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

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

QA results for PR 1660:
- This patch FAILED 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/17447/consoleFull

@srowen

srowen commented Jul 30, 2014

Copy link
Copy Markdown
Member Author

Jenkins, retest this please.

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

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

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

QA results for PR 1660:
- This patch FAILED 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/17452/consoleFull

@srowen

srowen commented Jul 30, 2014

Copy link
Copy Markdown
Member Author

I'm pretty sure the test failure is spurious, as it's the same java.net.BindException: Address already in use that made other PRs today fail and then pass. It's not a test compilation problem, which should be about the only thing this could cause. I'll give Jenkins another chance.

@srowen

srowen commented Jul 30, 2014

Copy link
Copy Markdown
Member Author

Jenkins, retest this please.

@srowen srowen mentioned this pull request Jul 30, 2014
@yhuai

yhuai commented Jul 30, 2014

Copy link
Copy Markdown
Contributor

Do we need to include com.novocode:junit-interface in SQL? Based on https://spark-project.atlassian.net/browse/SPARK-66, seems SBT needs it to execute Java tests. But, after checking our SBT build (https://amplab.cs.berkeley.edu/jenkins/job/Spark-Master-SBT-with-YARN/SPARK_HADOOP_VERSION=2.3.0,label=centos/234/consoleFull), seems those SQL java test were actually executed.

@marmbrus

Copy link
Copy Markdown
Contributor

test this please

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

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

@SparkQA

SparkQA commented Jul 30, 2014

Copy link
Copy Markdown

QA results for PR 1660:
- 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/17479/consoleFull

@rxin

rxin commented Jul 30, 2014

Copy link
Copy Markdown
Contributor

Ok I'm merging this. Thanks.

@asfgit asfgit closed this in 6ab96a6 Jul 30, 2014
@srowen
srowen deleted the SPARK-2749 branch July 31, 2014 08:52
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
… Maven builds; missing junit:junit dep

The Maven-based builds in the build matrix have been failing for a few days:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/

On inspection, it looks like the Spark SQL Java tests don't compile:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/job/Spark-Master-Maven-pre-YARN/hadoop.version=1.0.4,label=centos/244/consoleFull

I confirmed it by repeating the command vs master:

`mvn -Dhadoop.version=1.0.4 -Dlabel=centos -DskipTests clean package`

The problem is that this module doesn't depend on JUnit. In fact, none of the modules do, but `com.novocode:junit-interface` (the SBT-JUnit bridge) pulls it in, in most places. However this module doesn't depend on `com.novocode:junit-interface`

Adding the `junit:junit` dependency fixes the compile problem. In fact, the other modules with Java tests should probably depend on it explicitly instead of happening to get it via `com.novocode:junit-interface`, since that is a bit SBT/Scala-specific (and I am not even sure it's needed).

Author: Sean Owen <srowen@gmail.com>

Closes apache#1660 from srowen/SPARK-2749 and squashes the following commits:

858ff7c [Sean Owen] Add explicit junit dep to other modules with Java tests for robustness
9636794 [Sean Owen] Add junit dep so that Spark SQL Java tests compile
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Nov 23, 2026
…#1660)

<!-- title: [VARKA-95] Benchmark the checked int multiply on the row path -->
### What changes were proposed in this pull request?

A checked `INT` multiply (ANSI `*`, `try_multiply`) does not fuse yet, so the row engine runs it. Row 95 will fuse it. This pull request adds its baseline benchmark first, measured before the change.

- New benchmark `VarkaIntArithmeticBaselineBenchmark` (sql/core test tree). It times `i * j`, `i * 3`, `try_multiply(i, j)`, `datediff(d2, d) * i` and the filter `i * j > 0`, under ANSI.
- The LEGACY `i * j` is the control: it wraps and fuses today. A run whose Varka session is off fails the fuse check.
- Each shape runs with no nulls and with one row in ten null: 12 sections.
- New suite `VarkaIntArithmeticBaselineQueriesSuite` runs every section on both sessions in every build.

<details>
<summary>Design details</summary>

The table never overflows. Every section answers on every row, so an ANSI section times the multiply and its check, not an error path.
Each section has two arms: `spark row path (varka off)` and `varka on`. Before timing, the run checks each section's plan against its listed class. Every section but the control is `NONE`.
The queries suite checks the fixture's regions, each section's result type, that both sessions give the same answer, the nulls, and the fuse check at both settings of the two-lane refusal.
It also checks that some null rows would pass the filter, so the null section's filter keeps testing that they are dropped.

The remainder half of the build sheet (`i % k`) is not here. Row 30 owns `%`: its baseline (apache#1570) times `i % 7` and the column forms, and its part 30a4 builds the constant forms that row 95's part 95a would have built. So 95a is superseded, and row 95 is this baseline and the checked multiply (95b).

</details>

### Why are the changes needed?

The checked multiply will fuse in the next pull request of row 95. Its speedup can only be claimed against a committed measurement of the row path, taken on the same runners before the kernel exists.

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

No. Test code and plans only.

### How was this patch tested?

On the laptop. The suite and the dry run ran on `9166437519d`; the gate merged master `241125b2f37` and passed on `fd667f924bb`.

- `VarkaIntArithmeticBaselineQueriesSuite`: 2 passed, 0 failed.
- The benchmark's dry run (`-Dvarka.bench.dryRun=true`: it runs the fuse checks and times nothing) at the default width, 256 and 128 bits: exit 0. No section planned off its class; the control fused whole on the `varka on` arm at each width (6 lines); no section fused only its null tests.
- The local gate (`pre-pr.sh`) passed: regeneration changed nothing; lint-java, Error Prone, lint-scala, the invariant and proof suites; the push check (399 counted lines); the queries suite under every option configuration.
- Not run: the EPYC 7763 runs at 256 and 128 bits (the owner's dispatch), CI Build, option matrix.

<details>
<summary>Full test record</summary>

The gate merged master `241125b2f37` with no conflict and passed on `fd667f924bb`. Its arm sweep ran `VarkaIntArithmeticBaselineQueriesSuite` under every option configuration of `dev/varka_matrix.sh --all`.

To run the benchmark on a runner:
`gh workflow run benchmark.yml -f class=VarkaIntArithmeticBaselineBenchmark -f jdk=25 -f expected-cpu="AMD EPYC 7763"`, and again with `-f extra-java-options=-XX:MaxVectorSize=16`.

</details>

### Review

`/code-review high` found two important issues and one nit. All are fixed.

<details>
<summary>Review findings</summary>

- The record said row 30's baseline had not merged. It merged as apache#1570. The record, the decision and row 95's PLAN.md line now say the remainder half is row 30's.
- The dry run of the build sheet had been skipped. It ran at three widths (above).
- The null-density filter check could silently degenerate. The suite now asserts that some null rows would pass the filter.

</details>

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

5 participants