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

Ubuntu-latest workflows will use Ubuntu-22.04 #6399

Closed
4 of 10 tasks
ddobranic opened this issue Oct 13, 2022 · 57 comments
Closed
4 of 10 tasks

Ubuntu-latest workflows will use Ubuntu-22.04 #6399

ddobranic opened this issue Oct 13, 2022 · 57 comments

Comments

@ddobranic
Copy link
Contributor

ddobranic commented Oct 13, 2022

Breaking changes

Ubuntu 22.04 is ready to be the default version for the "ubuntu-latest" label in GitHub Actions and Azure DevOps.

Target date

This change will be rolled out over a period of several weeks beginning in October, 3. We plan to complete the migration by December, 15th, 2022.

The motivation for the changes

GitHub Actions and Azure DevOps have supported Ubuntu 22.04 in preview mode since May 2022, and starting from August 2022 Ubuntu 22.04 is generally available for all customers. We have monitored customer feedback to improve the Ubuntu 22.04 image stability and now we are ready to set it as the latest.

Possible impact

The Ubuntu 20.04 image has a different set of software than Ubuntu 22.04. The most significant changes are listed in the table below:

Tool name Ubuntu 20.04 Ubuntu 22.04 Notes
Ruby toolcache 2.5.9
2.6.10
2.7.6
3.0.4
3.1.2
3.* (latest) Only latest available version will be cached on start.
Ruby 2.7.0 3.* (latest) The latest available version for each operating system provided in the APT repository is installed.
Clang
Clang-format
Clang-tidy
10.0.0
11.0.0
12.0.0
12.*
13.*
14.*
Three latest available versions for each operating system provided in the APT repository are installed.
GCC
GFortran
9.4.0
10.3.0
-
9.*
10.*
11.*
Three latest available versions for each operating system provided in the APT repository are installed.
Python 3.8.10 3.10.6 Fresh updates for Python and tools available for Ubuntu 22 in APT repository.
PHP 7.4.32
8.0.24
8.1.11
8.* (latest) Only one latest officially supported PHP version will be supported. See more here.
.NET Core SDK 3.1.120
3.1.202
3.1.302
3.1.423
5.0.104
5.0.214
5.0.303
5.0.408
6.0.401
6.0.401 Only the latest available version will be installed on start.
Node.js 12.22.12
14.20.1
16.18.0
18.12.0
-
14.20.1
16.18.0
18.12.0
EOL version had been deprecated. If your use-case requires using any of these versions, consider using tasks to install Node.js on-flight:
- actions/setup-node (GitHub Actions)
- Node.js Tool Installer (Azure DevOps)
PyPy 2.7.18 [PyPy 7.3.9]
3.6.12 [PyPy 7.3.3]
3.7.13 [PyPy 7.3.9]
3.8.13 [PyPy 7.3.9]
3.9.12 [PyPy 7.3.9]
3.7.13 [PyPy 7.3.9]
3.8.13 [PyPy 7.3.9]
3.9.12 [PyPy 7.3.9]
Deprecated all the versions besides the most recent ones.
Python toolcache 2.7.18
3.6.15
3.7.14
3.8.14
3.9.14
3.10.7
3.7.14
3.8.14
3.9.14
3.10.7
On GitHub Actions, actions/setup-python can install any version on-flight so this change doesn't impact users.

Platforms affected

  • Azure DevOps
  • GitHub Actions

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Mitigation ways

If you see any issues with your workflows during this transition period:

  • File an issue in this repository
  • Switch back to Ubuntu 20 by specifying the “Ubuntu-20.04" label. We will continue to support Ubuntu 20.

For more information you can take a look at the previous announcement here.

@Kichura
Copy link

Kichura commented Oct 13, 2022

The "Runner images affected" tasks list appears to be incorrect as it targets "macOS" instead and not "ubuntu", is that a mischeck?

@ddobranic
Copy link
Contributor Author

@Kichura yes, it was a mischeck. thank you!

@joeyparrish
Copy link

joeyparrish commented Oct 19, 2022

Does the ubuntu-22.04 install Firefox as a snap package, or directly, or not at all? I'm seeing test failures with that image, and worry that I'll need to either add a Firefox install to my workflow or maybe pin to ubuntu-20.04 for a while.

Edit: It appears not to be installed at all: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#browsers-and-drivers

Is that an oversight that will be corrected, or is it deliberate and we all need to adjust? Thanks!

@Kichura
Copy link

Kichura commented Oct 19, 2022

20.04 LTS has actually shipped firefox as a snapd feature in it's desktop variant whereas the server variant does not have it at all - but can be looked into.

@joeyparrish
Copy link

We're using ubuntu-latest images for Firefox testing today. I tried ubuntu-22.04 in a PR to see what would happen, and our workflow fails to detect Firefox at all. So it looks like we'll have to either pin to ubuntu-20.04 or install Firefox explicitly to avoid issues.

@aravindavk
Copy link

In one of our repos, Ubuntu 22.04 based tests are failing. I am yet to figure out the issue. But the same tests working with 20.04.

kadalu-tech/pkgs#2

The following packages have unmet dependencies:
 libunwind-14-dev : Breaks: libunwind-dev but 1.3.2-2build2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Error: Process completed with exit code 100.

@erik-bershel
Copy link
Contributor

Hello, @aravindavk!
Here is an explanation why this is happening with your build. I added a comment explaining how to fix the situation.

@aravindavk
Copy link

Thanks @erik-bershel

@zyv
Copy link

zyv commented Oct 21, 2022

@ddobranic it seems that Ubuntu Mozilla Team still provides official non-snap ESR packages of Firefox via PPA:

https://launchpad.net/~mozillateam/+archive/ubuntu/ppa?field.series_filter=jammy

Maybe you could coordinate with them, not having any Firefox at all in CI images is quite... limiting.

@Josh-Osmanski
Copy link

Is there any updates on Firefox not being included in ubuntu-22.04?

szymonlopaciuk added a commit to szymonlopaciuk/xsuite that referenced this issue Nov 2, 2022
This fixes an issue that arises due to the crossover of three
different problems:

1. Ubuntu 22.04 will be used by default on 'ubuntu' runners on GitHub runners
   (actions/runner-images#6399).

2. Ubuntu 22.04 ships with `setuptools` version 59.x.x, which has a bug that
   does not allow an `--editable` installation of packages in `--user` mode.
   The flag `--user` is presumed regardless, as the location with packages is
   not writable by normal users (see pypa/pip#7953
   and https://bugs.launchpad.net/ubuntu/+source/setuptools/+bug/1994016).

3. We need an `--editable` installation in order to run tests, as the
   `test_data` folder is loaded with respect to the package root, and
   not the test root (see for example:
   https://github.com/xsuite/xpart/blob/45d621ad060bc25d361835bde1ed985609a24c49/tests/test_single_rf_harmonic_matcher.py#L25)

Signed-off-by: Szymon Łopaciuk <szymon@lopaciuk.eu>
szymonlopaciuk added a commit to szymonlopaciuk/xsuite that referenced this issue Nov 2, 2022
Pin the GitHub runners to `ubuntu-20.04`. Long term solutions should be
explored at some point in the future.

This fixes an issue that arises due to the crossover of three different
problems:

1. Ubuntu 22.04 will be used by default on 'ubuntu' runners on GitHub runners
   (actions/runner-images#6399).

2. Ubuntu 22.04 ships with `setuptools` version 59.x.x, which has a bug that
   does not allow an `--editable` installation of packages in `--user` mode.
   The flag `--user` is presumed regardless, as the location with packages is
   not writable by normal users (see pypa/pip#7953
   and https://bugs.launchpad.net/ubuntu/+source/setuptools/+bug/1994016).

3. We need an `--editable` installation in order to run tests, as the
   `test_data` folder is loaded with respect to the package root, and
   not the test root (see for example:
   https://github.com/xsuite/xpart/blob/45d621ad060bc25d361835bde1ed985609a24c49/tests/test_single_rf_harmonic_matcher.py#L25)

Signed-off-by: Szymon Łopaciuk <szymon@lopaciuk.eu>
@ddobranic
Copy link
Contributor Author

@Josh-Osmanski yes, we are planning to add Firefox. thank you!

mrtj added a commit to Neosperience/backpack that referenced this issue Jan 14, 2023
goldbattle added a commit to rpng/open_vins that referenced this issue Jan 16, 2023
andros21 added a commit to andros21/rustracer that referenced this issue Jan 16, 2023
prepare for 1.0.2 patch release,
release cause multiple deps have been upgraded since last release

**breaking_change**
cause now ubuntu-latest runner is ubuntu 22.04 lts aka jammy
see actions/runner-images#6399
so `rustracer-unknown-linux-gnu` requires at least `glibc>=2.35`
kasperski95 added a commit to software-mansion/protostar that referenced this issue Jan 17, 2023
Use Ubuntu 20.04 to build binaries. [Protostar
v0.8.1](BibliothecaDAO/realms-contracts#270)
doesn't have this problem. [Recently, `ubuntu-latest` was updated to use
Ubuntu 22.04.](actions/runner-images#6399)


> You're better off finding a Python built with a lower glibc
requirement which in practice means building on an old version of Linux
or an old docker image.

pyinstaller/pyinstaller#5669

Probably Fixes #1293
onlinedev0808 added a commit to onlinedev0808/databricksCli that referenced this issue Feb 1, 2023
The pointer for `ubuntu-latest` was updated to 22.04 on Oct 3
(see actions/runner-images#6399).

We still run tests on 2.7 and 3.6 and should deprecate support separately.
Padmamanickam added a commit to Padmamanickam/command-t that referenced this issue Feb 6, 2023
    Node.js 12 actions are deprecated. For more information see:
    https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
    Please update the following actions to use Node.js 16:
    actions/checkout@v2,
    actionsx/prettier@v2,
    JohnnyMorganz/stylua-action@1.0.0

    ubuntu-latest workflows will use ubuntu-22.04 soon. For more details,
    see actions/runner-images#6399

No new release of `actionsx/prettier` action yet, but I updated the
others.
hector-cao pushed a commit to hector-cao/checkbox that referenced this issue Mar 2, 2023
See actions/runner-images#6399

22.04 dropped support for the old python 3.x versions
@jsoneaday
Copy link

What about gnome?

michi-covalent pushed a commit to michi-covalent/cilium that referenced this issue May 30, 2023
Currently, we use ubuntu-latest runners which currently points to
ubuntu-20.04, but will point to ubuntu-22.04 soon [1]

[1] actions/runner-images#6399

In order to avoid future surprises and proactives check compatibility of
our workflows, pin the version to ubuntu-22.04 already.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
claudepache pushed a commit to claudepache/php-doc-en that referenced this issue Jun 1, 2023
…hp#2036)

ubuntu-latest is currently transitioning to ubuntu-22.04. During this time, you may experience some jobs running on either an ubuntu-20.04 or ubuntu-22.04 runner. You can specify `runs-on: ubuntu-20.04` in your workflow if you need the previous version.

https://github.com/actions/runner-images
actions/runner-images#6399
anthonyfok added a commit to OpenDRR/riskprofiler that referenced this issue Jun 29, 2023
ubuntu-latest was updated to Ubuntu 22.04 near the end of 2022,
see actions/runner-images#6399
jacobschaer added a commit to jacobschaer/python-doipclient that referenced this issue Jun 30, 2023
Remove Python 3.6 from the ubuntu-latest target since it's no longer supported

actions/runner-images#6399
slon2015 pushed a commit to GTON-capital/safe-client-gateway that referenced this issue Aug 11, 2023
- `ubuntu-latest` is currently set to Ubuntu-22.04 which we have issues with when linking the bundled OpenSSL library.
- `ubuntu-latest` is however in a rollout stage. Therefore, we might either use an instance of Ubuntu-22.04 or Ubuntu-20.04 – see actions/runner-images#6399
- We should set the image to `ubuntu-20.04` until the linking issue with OpenSSL is solved on newer images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests