Skip to content
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

sbt is missing in the latest ubuntu runner release #10767

Closed
2 of 15 tasks
sebastianfeduniak opened this issue Oct 11, 2024 · 10 comments
Closed
2 of 15 tasks

sbt is missing in the latest ubuntu runner release #10767

sebastianfeduniak opened this issue Oct 11, 2024 · 10 comments

Comments

@sebastianfeduniak
Copy link

Description

My pipelines depend on sbt installed on the runner.
It was included in the previous versions of ubuntu runner.
It's available in the previous version: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md?plain=1#L66
But not available in the latest version: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md?plain=1#L58

In effect, my builds started failing.

I didn't find announcement regarding it. Is it a bug or you won't provide sbt for now on?

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

It's available in the previous version: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md?plain=1#L66
But not available in the latest version: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md?plain=1#L58

Is it regression?

ubuntu-22.04

Expected behavior

sbt is available

Actual behavior

sbt is not available

Repro steps

  1. Run anything using sbt in the latest ubuntu runner version.
  2. It fails because of missing sbt binary.
@Prabhatkumar59
Copy link
Contributor

Hi @sebastianfeduniak - Thank you for bringing this issue to our attention. We will look into this issue and will update you on this issue after investigating.

@kishorekumar-anchala
Copy link
Contributor

HI @sebastianfeduniak ,

Previously ubuntu-latest tag with ubuntu-22.04 image and now -latest tag with ubuntu-24.04 .

I request that please use ubuntu-22.04 version and run the pipeline ; it would work .

Thank you !

@sebastianfeduniak
Copy link
Author

@kishorekumar-anchala I know it would work but it's not a solution to downgrade. For me it's just temp solution to mitigate the issue. I aim to use the latest versions of software. If sbt is no longer available, I will need to install it on my own.
Let's wait for confirmation from @Prabhatkumar59

@Prabhatkumar59
Copy link
Contributor

Hi @sebastianfeduniak - Thank you for your input. As @kishorekumar-anchala mentioned to use ubuntu-22.04 version to ensure the pipeline runs successfully. While I understand your preference for using the latest versions, this approach can help mitigate the issue.
Please proceed with @kishorekumar-anchala suggestion. Thanks!

@soroshansari
Copy link

soroshansari commented Oct 12, 2024

I have a similar issue with gcloud and fixed it by adding this additional step to set up Cloud SDK first.

      - name: 'Set up Cloud SDK'
        uses: 'google-github-actions/setup-gcloud@v2'
        with:
          version: '>= 363.0.0'

@kevin-lee
Copy link

macos-latest has the same issue.
https://github.com/kevin-lee/jdk-sym-link/actions/runs/11304980267/job/31443978394
Screenshot 2024-10-12 at 9 44 37 pm

I think any version higher than macOS 12 has this problem.

@armanbilge
Copy link

@kevin-lee
Copy link

fyi

@armanbilge Thank you so much. Also by following the link from that issue, I found that there is sbt/setup-sbt.
actions/setup-java#627 (comment)

@maurogonzalez
Copy link

@sebastianfeduniak here's and example of the actions described above:

https://eed3si9n.com/setup-sbt/

env:
  JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- uses: actions/checkout@v4
- name: Setup JDK
  uses: actions/setup-java@v4
  with:
    distribution: temurin
    java-version: 17
    cache: sbt
- uses: sbt/setup-sbt@v1
- name: Build and test
  shell: bash
  run: sbt -v +test

@vidyasagarnimmagaddi
Copy link
Contributor

Hi All, This issue will be taken care under 10788 .

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

Successfully merging a pull request may close this issue.

9 participants