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

(Public Beta) Ubuntu 22.04 is now available #5490

Closed
1 of 8 tasks
miketimofeev opened this issue May 5, 2022 · 69 comments
Closed
1 of 8 tasks

(Public Beta) Ubuntu 22.04 is now available #5490

miketimofeev opened this issue May 5, 2022 · 69 comments

Comments

@miketimofeev
Copy link
Contributor

miketimofeev commented May 5, 2022

Breaking changes

Ubuntu 22.04 is now available for all GitHub Actions and Azure DevOps users.
You can use the ubuntu 22.04 image label in your YAML to select this image.

GitHub Actions

jobs:
  jobName:
    runs-on: ubuntu-22.04

Azure DevOps

pool:
   name: 'Azure Pipelines'
   vmImage: 'ubuntu-22.04'

The image is marked as "beta" for now. It means some software can be unstable on the new platform. Also, there could be queueing issues as the capacity will be balanced only throughout the next weeks.
Please report any problems with the new image to this repository.

Software difference between Ubuntu 20 and Ubuntu 22

Tool name Ubuntu 20.04 Ubuntu 22.04 Notes
Clang 10.0.0, 11.0.0, 12.0.0 11.1.0, 12.0.1 clang 10 is not available for Ubuntu 22
GCC/G++ 9.4.0 (default), 10.3.0 9.4.0, 10.3.0, 11.2.0 (default) the default version for Ubuntu 22 is different
Erlang 24.* - Erlang is not available for Ubuntu 22 at the moment
Swift 5.* - Swift is not available for Ubuntu 22 at the moment
HHVM (HipHop VM) 4.* - HHVM is not available for Ubuntu 22 at the moment
OpenSSL 1.1.* 3.* The default OpenSSL in Ubuntu is now version 3
PhantomJS 2.1.1 - The software is deprecated as the latest version was released in 2016
PHP 7.4, 8.0, 8.1 8.1 Deprecated all the versions besides the most recent one
Firefox\geckodriver 99.* - Firefox is not available for Ubuntu 22 at the moment
.NET Core SDK 3.1, 5.0 6 Please consider using tasks to install any version on-flight:
- actions/setup-dotnet (GitHub Actions)
- Use .NET Core (Azure DevOps)
MongoDB 5.0.* - MongoDB is not available for Ubuntu 22 at the moment
MS SQL Server Client Tools SqlPackage 16.*
sqlcmd 17.*
SQL tools are not available for Ubuntu 22 at the moment
Go Default version: 1.17.x
Pre-cached versions: 1.16, 1.17, 1.18
Default version: 1.18x
Pre-cached versions: 1.17, 1.18
If your use-case requires using any of these versions, consider using tasks to install Go on-flight:
- actions/setup-go (GitHub Actions)
- Go Tool Installer (Azure DevOps)
Node.js Default version: 16.x
Pre-cached versions: 12, 14, 16
Default version: 16.x
Pre-cached versions: 14, 16
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, 3.6, 3.7, 3.8, 3.9 3.7, 3.8, 3.9 Deprecated all the versions besides the most recent ones
Python Default version: 3.8.x
Pre-cached versions: 2.7, 3.6, 3.7, 3.8, 3.9, 3.10
Default version: 3.10.x
Pre-cached versions: 3.7, 3.8, 3.9, 3.10
On GitHub Actions, actions/setup-python can install any version on-flight so this change doesn't impact users
Ruby Default version: 2.7.x
Pre-cached versions: 2.5, 2.6, 2.7, 3.0, 3.1
Default version: 3.0.x
Pre-cached versions: 3.1
On GitHub Actions, ruby/setup-ruby can install any version on-flight so this change doesn't impact users
Az modules Installed: 7.3.2
Zipped: 3.1.0, 4.4.0, 5.9.0, 6.6.0
Installed: 7.3.2
Zipped: -
If your use-case requires using any of these versions, consider using tasks to install Az modules on-flight:
- azure-powershell-action (GitHub Actions)
- Azure PowerShell (Azure DevOps)
Docker images Alpine: 3.12, 3.13, 3.14
buildpack-deps: bullseye, buster, stretch
debian: 9, 10, 11
node: 12, 14, 16
ubuntu: 16, 18, 20
Alpine: 3.14, 3.15
buildpack-deps: bullseye, buster
debian: 10, 11
node: 14, 16
ubuntu: 18, 20, 22
Deprecated all the versions besides the most recent one

Target date

May 5, 2022

The motivation for the changes

Ubuntu 22.04 LTS has been released.

Possible impact

n\a

Virtual environments 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

n\a

@panekj
Copy link
Contributor

panekj commented May 5, 2022

Please consider updating default Go to version 1.18

@EdJoPaTo
Copy link
Contributor

EdJoPaTo commented May 5, 2022

I tested the ubuntu-22.04 runner with one of my existing workflows and it failed as the docker daemon does not seem to be running:

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Is this the intended behaviour? Starting it when needed and don't start it per default might save some resources / startup time so I could understand this change. But it does not seem to be documented in this issue. Is this a bug then?

(I have not run a dedicated test for this, I simply ran the exact same workflow which works on ubuntu-20.04 and interpreted the error message)

Full log resulting in the error

@al-cheb
Copy link
Contributor

al-cheb commented May 5, 2022

@EdJoPaTo, We will check it.

Temporary workaround is to remove daemon.conf:

- run: |
          sudo rm /etc/docker/daemon.json
          sudo systemctl restart docker

@al-cheb
Copy link
Contributor

al-cheb commented May 5, 2022

I think you should preinstall clang 13 and 14 (available from official repos) instead of 11 and 12

@MehdiChinoune, feel free to create a separate issue.

@olandese
Copy link
Contributor

olandese commented May 6, 2022

I successfully build the image, and was trying to use it with the Azure DevOps ScaleSet feature, but the agents are not coming up.
The Azure DevOps VM Extensions fails with:

"Azure Pipelines Extension failed with message: The Extension failed to execute: Pipeline script execution failed with exit code 100"

image

@al-cheb
Copy link
Contributor

al-cheb commented May 6, 2022

@olandese , Maybe this fix will help - #5496

@olandese
Copy link
Contributor

olandese commented May 6, 2022

@olandese , Maybe this fix will help - #5496

Hi @al-cheb, thanks for the quick reply, I will try to rebuild the image with this fix and let you know

@olandese
Copy link
Contributor

olandese commented May 6, 2022

@olandese , Maybe this fix will help - #5496

Hi @al-cheb, thanks for the quick reply, I will try to rebuild the image with this fix and let you know

@al-cheb the fix is working! The agents are coming up!
Will this fix be merged?

@al-cheb
Copy link
Contributor

al-cheb commented May 6, 2022

@olandese, This fix has been merged.

@miketimofeev
Copy link
Contributor Author

Ubuntu-22.04 is now available in Azure DevOps too

@iBug
Copy link
Contributor

iBug commented May 6, 2022

Please consider updating default Go to version 1.18

I second that. Also note that the default golang package from Ubuntu APT repo is also 1.18. I see it make little sense to default to 1.17 when it's officially 1.18 already.

@jauderho
Copy link

jauderho commented May 6, 2022

I tested the ubuntu-22.04 runner with one of my existing workflows and it failed as the docker daemon does not seem to be running:


docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Is this the intended behaviour? Starting it when needed and don't start it per default might save some resources / startup time so I could understand this change. But it does not seem to be documented in this issue. Is this a bug then?

I can confirm that I am experiencing the same problem and the proposed workaround does not work for me.

t-mat added a commit to t-mat/lz4 that referenced this issue May 7, 2022
GitHub Actions recently provides public beta version of Ubuntu 22.04
actions/runner-images#5490

This change set just adds environment checking matrix for further changes.
Krinkle added a commit to karma-runner/karma-qunit that referenced this issue Nov 24, 2022
GitHub has rolled out Ubuntu 22 as the new default
but this is still missing Firefox, causing the following
failure for all jobs:

> Starting browser FirefoxHeadless
> ERROR [launcher]: Cannot start FirefoxHeadless
> Can not find the binary `firefox`

Ref actions/runner-images#5490
@Tallyb
Copy link

Tallyb commented Nov 24, 2022

mongo is available for ubuntu 22. Are you planning on re-adding?

XhmikosR pushed a commit to karma-runner/karma-qunit that referenced this issue Nov 24, 2022
GitHub has rolled out Ubuntu 22 as the new default
but this is still missing Firefox, causing the following
failure for all jobs:

> Starting browser FirefoxHeadless
> ERROR [launcher]: Cannot start FirefoxHeadless
> Can not find the binary `firefox`

Ref actions/runner-images#5490
@christophs78
Copy link

Do you plan to bring geckodriver back?
(Our existing integrationtest´s fail since ubuntu-latest moved to Ubunto 22.04)

@MattiSG
Copy link

MattiSG commented Dec 6, 2022

Are you planning on re-adding?

According to #6626 (comment), I understand this is a wontfix on GitHub Actions’ side.

damienwebdev added a commit to graycoreio/github-actions-magento2 that referenced this issue Dec 13, 2022
Github released Ubuntu 22.04 as a runner for many actions: actions/runner-images#5490.
As a result, we started experiencing intermittent failures as the underlying runner's support varied for older versions of Magento.
damienwebdev added a commit to graycoreio/github-actions-magento2 that referenced this issue Dec 13, 2022
Github released Ubuntu 22.04 as a runner for many actions: actions/runner-images#5490.
As a result, we started experiencing intermittent failures as the underlying runner's support varied for older versions of Magento.
@egahmad
Copy link

egahmad commented Mar 16, 2023

Can I pull this image locally to investigate the setup, for example I would like to make some changes to the apache configuration, sp it's useful to explore it locally before making any changes, is that is possible?

cxzl25 pushed a commit to cxzl25/orc that referenced this issue Jan 11, 2024
### What changes were proposed in this pull request?

This PR aims to add `Ubuntu 22.04` to GitHub Action.

### Why are the changes needed?

This will help the verification on the latest release.

Although [GitHub Action Virtual Environments](https:/actions/virtual-environments) don't support `Ubuntu 22.04` officially yet, `Ubuntu 22.04` is available as `Public Beta`.

- actions/runner-images#5490

### How was this patch tested?

Pass the GitHub Action on this PR.
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