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
Missing information about git branch in cypress dashboard runs for BuildKite #777
Comments
We might not grab the branch for buildkite CI, hope there is env var with this info. Or we can call git to find out
…Sent from my iPhone
On Oct 19, 2017, at 20:51, Paweł Gałązka ***@***.***> wrote:
Operating System: Linux Debian - 8.8
Cypress Version: 1.0.2
Browser Version: Electron 53.0.2785.143
CI service: Buildkite
Is this a Feature or Bug?
Bug
Current behavior:
Lack of information about the git branch in Cypress Dashboard runs
I couldn't find anything about that in the docs, issues and in configuration.
Desired behavior:
See information from what git branch Cypress test runs comes from.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Seeing 113 tests pass with 0 failures makes me happy ;-) This function is responsible for figuring out the branch: It uses env vars for a few known CI providers, otherwise it pulls it from |
Would be great to provide to cypress env name which stores info about the branch. |
We could just add buildkite branch to the function |
Also would be great to fill out |
I think git cannot determine the branch there, because (I am playing with Buildkite now) it does a trick to check (it is not a branch)
|
@pawelgalazka We setup buildkite on a project here, and the Dashboard captured the CI provider correctly. Our code had already taken into account Buildkite. Click on the env vars tab on one of your builds to see if Buildkite is exporting the env vars correctly. As long as it exports BUILDKITE we will pick it up. Code for that is here: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/util/ci_provider.coffee#L15 |
Fixed in |
Hmm... I'm using |
Weird, we do have branch in our Buildkite test runs on production Can you check yourself by printing environment variables starting with Otherwise I suggest debugging this yourself to find what is going wrong? |
@ArieLevs Could you open a new issue please? The issue with BuildKite's links were resolved. Each CI service unfortunately requires different code to get these variables working. |
In our case, we're running tests on all branches as buildkite is being fired via webhook on In our case we
edit: realised we weren't passing all the buildkite envs through to our cypress docker container, but still getting blanks for our master branch |
We are exporting all variables but Cypress is failing to resolve the CI provider and branch name. Other variables appear (see screenshot) but not provider or branch :/ Using Cypress v3.1.4 I've read through Our buildkite env looks something like this (n.b. not from same branch as above screenshot):
|
@benyamini Can I ask you to run on BuildKite CI with environment variable Note: before pasting the relevant part of the log here (we are only interested in the commit and provider information) make sure to remove all sensitive values, like record keys. |
@bahmutov See output from cypress debug below. Added this env variable:
|
@benyamini I still do not see how this error could happen, the unit tests report correct info with these environment variables. For now I have added DEBUG printing of a few more variables in #3131 which will allow us to pinpoint the problem a little bit more in the future runs. |
@bahmutov same here... everything seems to be in the correct place. Thanks for your work on this one. Hopefully something pops out. |
@tnrich it doesn't look like we're set up to pull Heroku CI environment variables in: https://on.cypress.io/continuous-integration#Examples I'm not sure why it's not automatically pulling them from the commit, maybe Heroku CI doesn't build with the We could potentially add Heroku CI environment variables and support pulling the info in that way in |
@benyamini Were you able to extract the info for |
we running cypress
|
@tnrich Heroku CI does not seem to provide any commit information as environment variables, if you have that information you should set it yourself via For now, I am closing this issue, since BuiltKite env variables should be available I believe. |
Current behavior:
Lack of information about the git branch in Cypress Dashboard runs
I couldn't find anything about that in the docs, issues and in configuration.
Desired behavior:
See information from what git branch Cypress test runs comes from.
The text was updated successfully, but these errors were encountered: