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

[GithubActions] Cypress v3.7.0 does not determine CI build ID #5814

Closed
jon301 opened this issue Nov 28, 2019 · 2 comments
Closed

[GithubActions] Cypress v3.7.0 does not determine CI build ID #5814

jon301 opened this issue Nov 28, 2019 · 2 comments
Assignees
Labels
CI General issues involving running in a CI provider

Comments

@jon301
Copy link

jon301 commented Nov 28, 2019

Current behavior:

When running Cypress v3.7.0 on Github Actions with record and parallel flags, this error occurs:

StatusCodeError: 422

{
  "code": "INDETERMINATE_CI_BUILD_ID",
  "message": "CI Build ID could not be generated and was not specified."
}

projectId is correctly set in cypress.json

Record Key is correctly exposed in an environment variable in Github Actions YAML config file:

...
        run: yarn e2e:ci
        env:
          PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
...

Output:

image

Desired behavior:

CI Build ID should be determined when running tests on Github Actions

Versions

Cypress v3.7.0

@bahmutov
Copy link
Contributor

bahmutov commented Jan 3, 2020

seems related to #5609 - in our kitchensink example we are passing the CI build id manually https://github.com/cypress-io/cypress-example-kitchensink/blob/7019b85f0a8467089da33cda823d04fee8bc2cf1/.github/workflows/parallel.yml#L130

--ci-build-id "$GITHUB_WORKFLOW-$GITHUB_SHA"

The Test Runner v3.7.0 sends the workflow and SHA information to the dashboard API (see #5687) but we have not implemented the API side (forming build id there)

@bahmutov
Copy link
Contributor

bahmutov commented Jan 3, 2020

After thinking about it - it would require a lot of refactoring to support this feature. Right now we only consider CI environment variables while forming CI build id, and do not pass commit information. Passing commit information would require too many changes and tests. Soon GitHub Actions will set an environment variable with unique workflow ID, which we will pass in the Test Runner to support this.

Watch this issue when it lands and reopen this issue to use it actions/toolkit#65 (comment)

For now, pass custom CI build id, please

@bahmutov bahmutov closed this as completed Jan 3, 2020
@jennifer-shehane jennifer-shehane added CI General issues involving running in a CI provider and removed CI: github actions labels Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI General issues involving running in a CI provider
Projects
None yet
Development

No branches or pull requests

3 participants