-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Detect and capture env vars from AWS CodeBuild including ciBuildId #8101
Comments
Yeah, this should not have been added to that portion of the docs since this is not built into Cypress to automatically detect this build ID.
|
Would implementing a PR for this simply be mirroring something like this change 3c37b8b only for CodeBuild and the code build env value mentioned in those erroneous docs? I guess whoever updated that documentation assumed codebuild was simply missing and listed codebuilds build is env var in that list or something? If the change is as straightforward as that I would be happy to make this PR |
@danbroooks Pretty much, except you'd do a check to ensure it's codebuild similar to the check for |
One question about this one, if I'm using AWS CodeBuild with a Docker container, should the --parallel flag works even when I'm not running the tests against the Cypress Dashboard? thanks! |
Using the If you're talking about running parallel builds in AWS CodeBuild, that would be outside of Cypress. |
Yes, it's outside Cypress (considering Cypress the Cypress Dashboard and not having record key). Any plan to release the parallelization of tests outside Cypress to be able to run the test in parallel locally (in a Docker container) for example or in Jenkins/AWS? Thanks. |
@jennifer-shehane ah I see, so this I have thrown together this suggested PR now, so happy to submit it still. However, do you think it may also be worth making this more obvious on the parallelisation page of the documentation? Something like a warning box like on this page? https://docs.cypress.io/guides/guides/cross-browser-testing.html#Continuous-Integration-Strategies I'd be happy to do a PR for this also, but also fine if it just serves me right skim reading documentation 😂 |
@estefafdez Not currently without recording. There's a discussion on parallelizing outside of recording to the Dashboard here if you'd like to add your thoughts there - we check those comments. #2520 @danbroooks There is a callout section, but maybe there's a better place this could be added. Feel free to create a new issue/PR in our docs, they're open source. |
thanks @jennifer-shehane , I will have a look :) |
The code for this is done in cypress-io/cypress#8159, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
The documentation lists CodeBuild under "CI environment variables" in this list here:
https://github.com/cypress-io/cypress-documentation/blame/develop/source/guides/guides/parallelization.md#L246
Which was recently changed in the last month. However, when running cypress with the
--parallel
flag in this environment cypress (4.11
) puts out this error:And in the cypress code it does not list
CodeBuild
:cypress/packages/server/lib/util/ci_provider.js
Lines 82 to 105 in 4054e72
I am confused why this documentation has been changed like this when it does not appear to be a supported CI provider?
The text was updated successfully, but these errors were encountered: