Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial PR for the framework reusing Vanilla Spark's unit tests #10743

Merged
merged 20 commits into from
May 10, 2024

Conversation

binmahone
Copy link
Collaborator

@binmahone binmahone commented Apr 25, 2024

(borrowing from Gluten)

Closes #10745

This PR adds a framework to enabling Vanilla Spark UTs by:

  1. Some utility Traits, most importantly RapidsTestsTrait and RapidsSQLTestsTrait for rapids test suite to extend, these traits: injects rapids backboned spark session to the base class, as well as allow testcase level exclusion/inclusion.
  2. A centralized control center called RapidsTestSettings, which decides what suites/testcases are included/excluded.
  3. A first batch of 8 suites are enabled, listed at https://github.com/NVIDIA/spark-rapids/pull/10743/files#diff-4be8dbebdd70379fcc56bae360c6997a9a2b6e66ce48b229c7ff289ae02a5222R41

Most of codes are copied from Apache Gluten, which also follows Apache license.
To respect their work I kept their origin Apache License header in the source code file.

Currently we only focus on spark 3.3.0.

Check out more details at our internal design doc.

…Gluten)

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone binmahone changed the title initial PR for the framework resuing Vanila Spark's UTs (borrow from … [WIP] initial PR for the framework resuing Vanila Spark's UTs (borrow from … Apr 25, 2024
@binmahone binmahone marked this pull request as draft April 25, 2024 13:05
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

1 similar comment
@binmahone
Copy link
Collaborator Author

build

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

@binmahone binmahone marked this pull request as ready for review May 1, 2024 08:26
@binmahone
Copy link
Collaborator Author

Hi @GaryShen2008 @jlowe the PR has passed all CI checks, can you please help to review?

@binmahone binmahone changed the title [WIP] initial PR for the framework resuing Vanila Spark's UTs (borrow from … initial PR for the framework resuing Vanila Spark's UTs (borrow from … May 1, 2024
@jlowe jlowe changed the title initial PR for the framework resuing Vanila Spark's UTs (borrow from … initial PR for the framework reusing Vanilla Spark's unit tests May 1, 2024
@sameerz sameerz added the test Only impacts tests label May 2, 2024
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

1 similar comment
@binmahone
Copy link
Collaborator Author

build

class RapidsTestSettings extends BackendTestSettings {

enableSuite[RapidsCastSuite]
.exclude("Process Infinity, -Infinity, NaN in case insensitive manner")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but many things are passing UNKNOWN_ISSUE(), which is essentially not passing a reason. 😸
Is there a followup issue to investigate these? Probably should be at least one, or a series of issues maybe grouped by test type, and then that issue can be linked here and other places UNKNOWN_ISSUE was used.

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

1 similar comment
@binmahone
Copy link
Collaborator Author

build

Signed-off-by: Hongbin Ma (Mahone) <mahongbin@apache.org>
@binmahone
Copy link
Collaborator Author

build

@binmahone binmahone merged commit 4dee2f8 into NVIDIA:branch-24.06 May 10, 2024
44 checks passed
binmahone added a commit to binmahone/spark-rapids that referenced this pull request May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initialize a test framework to run Spark UT in Spark 3.3.0 shims
3 participants