-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32957][INFRA] Add a GitHub Actions job to run WebUI tests with Chrome #29827
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -273,6 +273,44 @@ jobs: | |
| cd docs | ||
| jekyll build | ||
|
|
||
| webui-tests-with-chrome: | ||
| name: WebUI tests with chrome | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Spark repository | ||
| uses: actions/checkout@v2 | ||
| - name: Cache Maven local repository | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.m2/repository | ||
| key: webui-tests-with-chrome-maven-${{ hashFiles('**/pom.xml') }} | ||
| restore-keys: | | ||
| webui-tests-with-chrome-maven- | ||
| - name: Install Java 11 | ||
| uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 11 | ||
| - name: Install Chrome and ChromeDriver | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install google-chrome-stable | ||
| sudo apt install chromium-chromedriver | ||
| - name: Run WebUI tests with Maven | ||
| run: | | ||
| export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=1g -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN" | ||
| export MAVEN_CLI_OPTS="--no-transfer-progress" | ||
| mkdir -p ~/.m2 | ||
| ./build/mvn -Dspark.test.webdriver.chrome.driver=/usr/bin/chromedriver \ | ||
| -Dguava.version=25.0-jre -Djava.version=11 -Dtest.default.exclude.tags= -Dtest=none \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sarutak . Apache Spark 3.1's official Guava version is still
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. I know the official version of Guava is
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the test suite is broken with the default Apache Spark distribution, we need to revert the root cause which broke the test suite. IIRC, this test suite is tested with the default configuration initially.
Do we have a JIRA issue for that test suite failure?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first time those tests are added, they works with
Yes. But we might need to modify the title.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the pointer, @sarutak . BTW, there are many request for Guava update. I believe we can handle this in the same group.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, I know. So, should we revert that PR? It's a security fix but for the test code, or waiting for Guava updated?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about just not adding this test? :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can be one option but I'm wondering if we can make much better coverage for UI tests somehow. |
||
| -DwildcardSuites="org.apache.spark.ui.ChromeUISeleniumSuite,org.apache.spark.deploy.history.ChromeUIHistoryServerSuite" test | ||
| rm -rf ~/.m2/repository/org/apache/spark | ||
| - name: Upload unit tests log files | ||
| if: failure() | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: unit-tests-log-webui | ||
| path: "**/target/unit-tests.log" | ||
|
|
||
| java11: | ||
| name: Java 11 build | ||
| runs-on: ubuntu-latest | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ideally we should just include
ChromeUITesttag incoreabove without changing the guava version ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I tried to do so first but I noticed those tests need the newer Guava so I made a separate job...
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HyukjinKwon I've tried including
ChromeUITesttag incoreand running GitHub Actions jobs on my repository but as I expected, tests failed due to the Guava version compatibility.So, we need to specify
25.0-jreonly for tests tagged withChromeUITest. Or, revert SPARK-31765 as I mentioned here.