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

Module API results.osVersion contains only Linux distribution without release version #30533

Open
MikeMcC399 opened this issue Nov 4, 2024 · 3 comments

Comments

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Nov 4, 2024

Current behavior

When running on Linux, the Cypress Module API results.osVersion contains only the name of the Linux distribution, e.g.

  • Debian -
  • Fedora -
  • Ubuntu -

The Linux release version e.g. 24.04 is missing from results.osVersion when run under Cypress 11.0.0 and above. This issue is a regression compared to Cypress 10.11.0.

Desired behavior

When running on Linux, the Cypress Module API results.osVersion should contain both the Linux distribution name and release version, e.g. Ubuntu - 24.04. This is how it worked in Cypress 10.11.0.

cypress info displays both the Linux distribution name and release version,e.g. Ubuntu - 24.04 as in the following output:

Cypress Version: 13.15.1 (stable)
System Platform: linux (Ubuntu - 24.04)
System Memory: 8.28 GB free 6.61 GB

Test code to reproduce

On Ubuntu 24.04.1 LTS, Node.js v22.11.0 LTS, execute:

git clone --branch module-api-osversion https://github.com/MikeMcC399/cypress-test-tiny
cd cypress-test-tiny
npm ci
npm test

Cypress Version

First reported on version: 13.15.1
Reproducible also on 13.16.1

Node version

v22.12.0 LTS

Operating System

Ubuntu 24.04.1 LTS

Debug Logs

Preparation as in "Test code to reproduce" above, then execute:

npm run test:debug

excerpt only:

cypressVersion: '13.15.1', endedTestsAt: 2024-11-03T12:51:59.448Z, osName: 'linux', osVersion: 'Ubuntu - '

Other

See cli/types/cypress-npm-api.d.ts

interface CypressRunResult {
browserName: string
browserPath: string
browserVersion: string
config: PublicConfig
cypressVersion: string
endedTestsAt: dateTimeISO
osName: string
osVersion: string
runs: RunResult[]
/**
* If Cypress test run was recorded, full url will be provided.
* @see https://on.cypress.io/cloud-introduction
*/
runUrl?: string
startedTestsAt: dateTimeISO
totalDuration: number
totalFailed: number
totalPassed: number
totalPending: number
totalSkipped: number
totalSuites: number
totalTests: number
}

@jennifer-shehane
Copy link
Member

Yah I ran across this issue one day. I feel like the issue was much higher in our code somewhere....and now I can't remember where.

@MikeMcC399
Copy link
Contributor Author

@jennifer-shehane

Yah I ran across this issue one day. I feel like the issue was much higher in our code somewhere....and now I can't remember where.

It seems like the data is getting lost somewhere. I wasn't able to find the root cause myself.

@MikeMcC399
Copy link
Contributor Author

This issue also affects how the operating system is shown in Cypress Cloud, Run Properties, where the release version is also missing:

image

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

2 participants