Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Sep 1, 2022

What changes were proposed in this pull request?

This PR aims the followings.

  1. Add YuniKornSuite integration test suite which extends KubernetesSuite on Apache YuniKorn scheduler.
  2. Support --default-exclude-tags command to override test.default.exclude.tags.

Why are the changes needed?

To improve test coverage.

Does this PR introduce any user-facing change?

No. This is a test suite addition.

How was this patch tested?

Since this requires Apache YuniKorn installation, the test suite is disabled by default.
So, CI K8s integration test should pass without running this suite.

In order to run the tests, we need to override test.default.exclude.tags like the following.

SBT

$ build/sbt -Psparkr -Pkubernetes -Pkubernetes-integration-tests \
-Dspark.kubernetes.test.deployMode=docker-desktop "kubernetes-integration-tests/test" \
-Dtest.exclude.tags=minikube,local \
-Dtest.default.exclude.tags=

MAVEN

$ dev/dev-run-integration-tests.sh --deploy-mode docker-desktop \
--exclude-tag minikube,local \
--default-exclude-tags ''

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-40302][K8S][TESTS] Add YuniKornSuite [SPARK-40302][K8S][TESTS] Add YuniKornSuite Sep 1, 2022
@dongjoon-hyun
Copy link
Member Author

Could you review this, @viirya ?

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

Looks good. Just CI seems not working well?

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya . Yes, there was irrelevant Base Image Build job failure and corresponding PySpark UT failures. I re-triggered.
Screen Shot 2022-09-01 at 9 25 11 AM

dongjoon-hyun added a commit that referenced this pull request Sep 1, 2022
This PR aims the followings.
1. Add `YuniKornSuite` integration test suite which extends `KubernetesSuite` on Apache YuniKorn scheduler.
2. Support `--default-exclude-tags` command to override `test.default.exclude.tags`.

To improve test coverage.

No. This is a test suite addition.

Since this requires `Apache YuniKorn` installation, the test suite is disabled by default.
So, CI K8s integration test should pass without running this suite.

In order to run the tests, we need to override `test.default.exclude.tags` like the following.

**SBT**
```
$ build/sbt -Psparkr -Pkubernetes -Pkubernetes-integration-tests \
-Dspark.kubernetes.test.deployMode=docker-desktop "kubernetes-integration-tests/test" \
-Dtest.exclude.tags=minikube,local \
-Dtest.default.exclude.tags=
```

**MAVEN**
```
$ dev/dev-run-integration-tests.sh --deploy-mode docker-desktop \
--exclude-tag minikube,local \
--default-exclude-tags ''
```

Closes #37753 from dongjoon-hyun/SPARK-40302.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit b2e38e1)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member Author

Merged to master/3.3.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-40302 branch September 1, 2022 16:28
@yangwwei
Copy link
Contributor

yangwwei commented Sep 1, 2022

Very nice, thank you @dongjoon-hyun !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants