-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-49920][INFRA] Install R for ubuntu 24.04 when GA run k8s-integration-tests
#48406
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
Conversation
R for ubuntu 24.04
.github/workflows/build_and_test.yml
Outdated
| if: fromJson(needs.precondition.outputs.required).k8s-integration-tests == 'true' | ||
| name: Run Spark on Kubernetes Integration test | ||
| runs-on: ubuntu-latest | ||
| runs-on: ubuntu-24.04 |
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.
actions/runner-images#10636

Because the GitHub community is still in the process of migration (sometimes it's ubuntu-22.04, sometimes it's ubuntu-22.04), adding this is to verify the issue. After obtaining approve, I will remove it.
|
|
||
| private[spark] trait BasicTestsSuite { k8sSuite: KubernetesSuite => | ||
|
|
||
|
|
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.
Just to trigger k8s-integration-tests, after obtaining approve, I will remove it.
LuciferYang
left a comment
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.
+1, LGTM (pending tests)
Thanks @panbingkun , this solved the issue I encountered recently.
.github/workflows/build_and_test.yml
Outdated
| if: fromJson(needs.precondition.outputs.required).k8s-integration-tests == 'true' | ||
| name: Run Spark on Kubernetes Integration test | ||
| runs-on: ubuntu-latest | ||
| runs-on: ubuntu-24.04 |
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 you should fix https://github.com/apache/spark/blob/master/dev/infra/Dockerfile?
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.
hmm... do you mean we should migrate k8s-integration-tests into container first? k8s-integration-tests does not rely on the base image for execution now.
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.
Line 61 in 38d66fd
| r-base \ |
This Docker file already has r-base installed.
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, currently it is not running in a container
spark/.github/workflows/build_and_test.yml
Lines 1073 to 1078 in 38d66fd
| k8s-integration-tests: | |
| needs: precondition | |
| if: fromJson(needs.precondition.outputs.required).k8s-integration-tests == 'true' | |
| name: Run Spark on Kubernetes Integration test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 180 |
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.
Perhaps we could try moving the tests into the container, and then install minikube by default, but only start it when running k8s-integration-tests?
However, this configuration will be reused for the daily tests of branch-3.x, so we need to carefully consider how to ensure compatibility.
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.
ah okok
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 misread it. LG
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.
haha
|
GA has passed, I will restore some testing logic. |
R for ubuntu 24.04R for ubuntu 24.04 when GA run k8s-integration-tests
R for ubuntu 24.04 when GA run k8s-integration-testsR for ubuntu 24.04 when GA run k8s-integration-tests
|
Merged into master. Thanks @panbingkun @HyukjinKwon |

What changes were proposed in this pull request?
The pr aims to install
Rforubuntu 24.04when GA runk8s-integration-tests.Why are the changes needed?
As the GitHub community switches the default version of
ubuntu-latestfromubuntu-22.04toubuntu-24.04.Ubuntu-latest workflows will use Ubuntu-24.04 image actions/runner-images#10636
In

ubuntu-24.04,Risnot installedby defaultA.
ubuntu-24.04(Risnot installedby default)https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#tools
B.

ubuntu-22.04(Risinstalledby default)https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#tools
Fix the failure issue of GA

https://github.com/LuciferYang/spark/actions/runs/11268158324/job/31334445659
Does this PR introduce any user-facing change?
No, only for tests.
How was this patch tested?
Pass GA.
Was this patch authored or co-authored using generative AI tooling?
No.