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

github: s/ubuntu-latest/ubuntu-24.04/ #2316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Jul 1, 2024

Ubuntu 24.04 is now available, see
actions/runner-images#9848

so instead of building and running the tests in a fedora 40 container, let's do the CI with the shinny ubuntu runner image, which preinstalls some of the necessary building dependencies, so in theory, it should be relatively faster than installing every package on fedora 40.

and since we are now using an image with git pre-installed, there is no need to install git anymore. so, in this change, we drop the step to install git.

because we are switching to a debian derivative distro, let's use apt-get instead of dnf to install packages.

@tchaikov
Copy link
Contributor Author

tchaikov commented Jul 1, 2024

the workflows are failing due to #2302

@tchaikov tchaikov marked this pull request as draft July 1, 2024 08:36
@tchaikov
Copy link
Contributor Author

tchaikov commented Jul 1, 2024

pending on #2317

@mykaul
Copy link

mykaul commented Jul 1, 2024

I'm not sure I understand the benefit here. Would be good to compare runtimes.

@tchaikov
Copy link
Contributor Author

tchaikov commented Jul 1, 2024

I'm not sure I understand the benefit here. Would be good to compare runtimes.

@mykaul take the "Test (clang++, C++, dev) / test as an example:

initialize container install git install dependencies install clang install ccache build test stop container total
f40 4s 11s 31s 14s 1s 7s 3m 6s 1s 4m 32s
ubuntu 24.04 0 0 25s 3s 4s 9s 2m 50s 0 3m 44s

before this change, see https://github.com/scylladb/seastar/actions/runs/9741537615/job/26880954875

after this change, see https://github.com/scylladb/seastar/actions/runs/9741786724/job/26881705458

@mykaul
Copy link

mykaul commented Jul 1, 2024

45 secs saving is noise level (IMHO) for CI.

@tchaikov
Copy link
Contributor Author

tchaikov commented Jul 1, 2024

@mykaul i am not able to provide a statistically signifcant report at this moment, but i think to skip following steps

  • initialize container
  • install git
  • install clang
  • stop container

and to drop the unnecessary step in the workflow already deserve the change.

@tchaikov
Copy link
Contributor Author

tchaikov commented Jul 6, 2024

@@ -50,16 +45,16 @@ jobs:
- name: Install clang++
if: ${{ inputs.compiler == 'clang++' }}
run: |
sudo dnf -y install clang
sudo apt-get -y install clang
Copy link
Member

Choose a reason for hiding this comment

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

What about apt-get update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure. added.

Ubuntu 24.04 is now available, see
actions/runner-images#9848

so instead of building and running the tests in a fedora 40 container,
let's do the CI with the shinny ubuntu runner image, which preinstalls
some of the necessary building dependencies, so in theory, it should be
relatively faster than installing every package on fedora 40.

and since we are now using an image with git pre-installed, there
is no need to install `git` anymore. so, in this change, we drop the
step to install `git`.

because we are switching to a debian derivative distro, let's use
apt-get instead of dnf to install packages.

Signed-off-by: Kefu Chai <[email protected]>
@tchaikov
Copy link
Contributor Author

v2:

  • run apt-get update before installing dependencies.

@tchaikov
Copy link
Contributor Author

@avikivity could you take another look?

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

Successfully merging this pull request may close these issues.

3 participants