Skip to content

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Sep 14, 2022

What changes were proposed in this pull request?

ChromeUIHistoryServerSuite only test LevelDB backend now, this pr refactor the UTs of ChromeUIHistoryServerSuite to add UTs for RocksDB

Why are the changes needed?

Add UTs related to RocksDB.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • Pass GA
  • Manual test on Apple Silicon environment:
build/sbt -Dguava.version=31.1-jre -Dspark.test.webdriver.chrome.driver=/path/to/chromedriver -Dtest.default.exclude.tags="" "core/testOnly org.apache.spark.deploy.history.RocksBackendChromeUIHistoryServerSuite"
[info] RocksBackendChromeUIHistoryServerSuite:
Starting ChromeDriver 105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853}) on port 54402
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[info] - ajax rendered relative links are prefixed with uiRoot (spark.ui.proxyBase) (5 seconds, 387 milliseconds)
[info] Run completed in 20 seconds, 838 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 118 s (01:58), completed 2022-9-15 10:30:53

@LuciferYang LuciferYang marked this pull request as draft September 14, 2022 13:14
@github-actions github-actions bot added the CORE label Sep 14, 2022
@HyukjinKwon
Copy link
Member

cc @sarutak FYI

@LuciferYang LuciferYang marked this pull request as ready for review September 15, 2022 02:31
@LuciferYang
Copy link
Contributor Author

rebased and updated pr description

@LuciferYang
Copy link
Contributor Author

also cc @dongjoon-hyun due to the new test is for RocksDB

@LuciferYang
Copy link
Contributor Author

friendly ping @sarutak

}

@ChromeUITest
class RocksBackendChromeUIHistoryServerSuite extends ChromeUIHistoryServerSuite {
Copy link
Member

Choose a reason for hiding this comment

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

RocksBackendChromeUIHistoryServerSuite -> RocksDBBackendChromeUIHistoryServerSuite

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Sorry for being late. Could you rename the test suite class, @LuciferYang ?

- RocksBackendChromeUIHistoryServerSuite
+ RocksDBBackendChromeUIHistoryServerSuite

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. I tested this test-only PR manually. Merged to master.

$ build/sbt -Dguava.version=31.1-jre -Dspark.test.webdriver.chrome.driver=/opt/homebrew/bin/chromedriver -Dtest.default.exclude.tags="" "core/testOnly org.apache.spark.deploy.history.RocksDBBackendChromeUIHistoryServerSuite"
...
[info] RocksDBBackendChromeUIHistoryServerSuite:
Starting ChromeDriver 105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195@{#853}) on port 64391
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[info] - ajax rendered relative links are prefixed with uiRoot (spark.ui.proxyBase) (1 second, 736 milliseconds)
[info] Run completed in 4 seconds, 924 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 12 s, completed Sep 18, 2022, 6:28:18 PM

@dongjoon-hyun
Copy link
Member

Thank you, @LuciferYang and @HyukjinKwon .

@LuciferYang
Copy link
Contributor Author

Sorry for being late. Could you rename the test suite class, @LuciferYang ?

- RocksBackendChromeUIHistoryServerSuite
+ RocksDBBackendChromeUIHistoryServerSuite

Thanks for your help @dongjoon-hyun ~

LuciferYang added a commit to LuciferYang/spark that referenced this pull request Sep 20, 2022
…dd UTs for RocksDB

### What changes were proposed in this pull request?
`ChromeUIHistoryServerSuite` only test LevelDB backend now, this pr refactor the UTs of `ChromeUIHistoryServerSuite` to add UTs for RocksDB

### Why are the changes needed?
Add UTs related to RocksDB.

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

### How was this patch tested?

- Pass GA
- Manual test on Apple Silicon environment:

```
build/sbt -Dguava.version=31.1-jre -Dspark.test.webdriver.chrome.driver=/path/to/chromedriver -Dtest.default.exclude.tags="" "core/testOnly org.apache.spark.deploy.history.RocksBackendChromeUIHistoryServerSuite"
```

```
[info] RocksBackendChromeUIHistoryServerSuite:
Starting ChromeDriver 105.0.5195.52 (412c95e518836d8a7d97250d62b29c2ae6a26a85-refs/branch-heads/5195{apache#853}) on port 54402
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[info] - ajax rendered relative links are prefixed with uiRoot (spark.ui.proxyBase) (5 seconds, 387 milliseconds)
[info] Run completed in 20 seconds, 838 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 118 s (01:58), completed 2022-9-15 10:30:53
```

Closes apache#37878 from LuciferYang/SPARK-40424.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants