cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Support Ubuntu 24.04

Open MikeMcC399 opened this issue 1 year ago • 5 comments

What would you like?

to have support for Cypress running on Ubuntu 24.04

Why is this needed?

  • Ubuntu 24.04 is the next major release ~~planned for~~ released on April 25 2024. Users will start to install it locally and CI providers will be offering virtual machines based on this OS. The end of standard support is planned for June 2029.

  • Cypress documentation System requirements > Operating System > Linux includes the text "Ubuntu 20.04 and above", which includes Ubuntu 24.04

Other

  • ~~Beta~~ images are available from https://releases.ubuntu.com/24.04/

End-user

Running Cypress 13.7.3 under Ubuntu 24.04 Beta:

Contributor

  • Building Cypress from source on Ubuntu 24.04 Beta requires installing Python 3.11 and NODE_GYP_FORCE_PYTHON=/usr/bin/python3.11 (see Contributing > Requirements > Debian/Ubuntu). Node.js is 18.17.1.

    • yarn is successful building Cypress from source

    • yarn start fails attempting to open Cypress Launchpad in Project mode. I would open a separate issue for this if it persists in the final release version of Ubuntu 24.04.

      $ yarn start
      yarn run v1.22.22
      $ yarn ensure-deps
      $ ./scripts/ensure-dependencies.sh
      success Folder in sync.
      $ cypress open --dev --global
      [8288:0412/172850.915093:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/mike/github/cypress-io/cypress/packages/electron/dist/Cypress/chrome-sandbox is owned by root and has mode 4755.
      

MikeMcC399 avatar Apr 12 '24 15:04 MikeMcC399

@MikeMcC399 is there some indication that this won't work for end users? Or are you recommending we add specific tests around this to ensure it's working on the main repo?

jennifer-shehane avatar Apr 12 '24 17:04 jennifer-shehane

@jennifer-shehane

is there some indication that this won't work for end users? Or are you recommending we add specific tests around this to ensure it's working on the main repo?

I don't see any issue for end users at this time and right now I suggest just waiting for the final release of Ubuntu 24.04 as there are still changes to be expected. The intention of my issue was just to add it to the radar, nothing more.

  • For Ubuntu 23.10 there was a documentation-only issue - see https://github.com/cypress-io/cypress-documentation/pull/5528. This should be revisited after the final Ubuntu 24.04 is released to check if the suggested packages can still be installed.

MikeMcC399 avatar Apr 12 '24 17:04 MikeMcC399

@MikeMcC399 Thanks for informing us. We'll have to update the docker images/docker factory to make sure it's working when that comes out.

jennifer-shehane avatar Apr 12 '24 19:04 jennifer-shehane

  • https://github.com/cypress-io/cypress/pull/29412 relates to this issue

MikeMcC399 avatar Apr 26 '24 07:04 MikeMcC399

Ubuntu 24.04 was released on April 25, 2024.

I haven't seen any issues running Cypress on this version as far as end-users are concerned.

MikeMcC399 avatar Apr 26 '24 15:04 MikeMcC399

I confirmed that Cypress 13.9.0 ran in a simple test on the GitHub-hosted ubuntu-24.04 runner. The runner is in beta status and is being deployed at the moment.

Since there are no general unresolved issues with Cypress running on Ubuntu 24.04 I will go ahead and close this issue. If anything specific comes up, it should go into a new issue.

MikeMcC399 avatar May 14 '24 17:05 MikeMcC399

See also GitHub Actions announcement GitHub-hosted runners: Public Beta of Ubuntu 24.04 is now available May 14, 2024.

MikeMcC399 avatar May 14 '24 18:05 MikeMcC399