Skip to content

Commit

Permalink
[SPARK-49920][INFRA] Install R for ubuntu 24.04 when GA run `k8s-…
Browse files Browse the repository at this point in the history
…integration-tests`

### What changes were proposed in this pull request?
The pr aims to install `R` for `ubuntu 24.04` when GA run `k8s-integration-tests`.

### Why are the changes needed?
- As the GitHub community switches the default version of `ubuntu-latest` from `ubuntu-22.04` to `ubuntu-24.04`.
actions/runner-images#10636

- In `ubuntu-24.04`, `R` is `not installed` by default
  A.`ubuntu-24.04`(`R` is `not installed` by default)
  https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#tools
  <img width="342" alt="image" src="https://github.com/user-attachments/assets/23e4d377-ba7c-4969-b720-5c8ff9790985">

  B.`ubuntu-22.04`(`R` is `installed` by default)
  https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#tools
  <img width="356" alt="image" src="https://github.com/user-attachments/assets/126861df-d1a0-49d9-b52d-48102ab2db74">

- Fix the failure issue of GA
  https://github.com/LuciferYang/spark/actions/runs/11268158324/job/31334445659
  <img width="959" alt="image" src="https://github.com/user-attachments/assets/4bfd8da4-4ced-422a-9ea7-dbdf6478675b">

### 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.

Closes apache#48406 from panbingkun/install_R.

Authored-by: panbingkun <panbingkun@baidu.com>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
  • Loading branch information
panbingkun authored and LuciferYang committed Oct 10, 2024
1 parent ab1315b commit e589ccd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,10 @@ jobs:
with:
distribution: zulu
java-version: ${{ inputs.java }}
- name: Install R
run: |
sudo apt update
sudo apt-get install r-base
- name: Start Minikube
uses: medyagh/setup-minikube@v0.0.18
with:
Expand Down

0 comments on commit e589ccd

Please sign in to comment.