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

Bitbucket pipelines commit information not available in Cypress Cloud with Docker image 12.9.0 #873

Closed
zaq42 opened this issue Mar 30, 2023 · 8 comments
Assignees

Comments

@zaq42
Copy link

zaq42 commented Mar 30, 2023

Current behavior

image

Since the release of 12.9.0, the Dashboard shows "No commit message available" for runs triggered within BitBucket pipelines.

Rolling back the version running the tests to cypress/included:12.8.1 did not restore the behaviour did, in fact, restore the behaviour.

Desired behavior

Until 12.9.0, git commit information was visible in dashboard and in messages to Slack.

Test code to reproduce

Behaviour is reproducible in BitBucket pipelines.

Cypress Version

12.9.0

Node version

cypress/included:12.9.0

Operating System

cypress/included:12.9.0

Debug Logs

No response

Other

No response

@zaq42
Copy link
Author

zaq42 commented Mar 31, 2023

It seems that running cypress 12.9.0 inside the docker image cypress/included:12.8.1 works.

To be clear, package.json specifies "cypress": "^12.9.0",

The step in bitbucket pipelines is (summary):

    steps:
    - step: &smoke-test
        name: Smoke test
        image: cypress/included:12.8.1
        script:
        - yarn install && yarn run cypress run --record ...

This config does not exhibit the bug... git commit info is available in Dashboard.

Changing to image: cypress/included:12.9.0 does not have git commit info in Dashboard.

@astone123
Copy link
Contributor

Thanks @zaq42, I was able to reproduce this here. Here is the related pipeline.

@astone123 astone123 removed their assignment Mar 31, 2023
@astone123 astone123 changed the title Bitbucket commit information not available in dashboard 12.9.0 Bitbucket pipelines commit information not available in Cypress Cloud with Docker image 12.9.0 Mar 31, 2023
@mschile mschile transferred this issue from cypress-io/cypress Mar 31, 2023
@nagash77
Copy link
Contributor

nagash77 commented Mar 31, 2023

Hi @zaq42 , we think we have identified the problem and are working on a fix. Hopefully the patched image will be pushed to docker hub soon. Quick note: you might have to clear your docker cache to get the new image once it is published.

@mjhenkes
Copy link
Member

@zaq42, we've back patched the cypress/included:12.9.0 image to include git once again. You will probably have to clear your cache and pull the image again, but it should fix your issue.

@zaq42
Copy link
Author

zaq42 commented Apr 2, 2023

@zaq42, we've back patched the cypress/included:12.9.0 image to include git once again. You will probably have to clear your cache and pull the image again, but it should fix your issue.

Awesome work! Confirmed as fixed.

(Thanks for the reminder about the cache.)

@miguelpujadas
Copy link

miguelpujadas commented Jul 5, 2023

Hi! I am having this same issue with both:
cypress/included:12.16.0
cypress/browsers:node-18.16.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1

Cypress Dashboards shows No commit message available. It's working well with previous versions:
cypress/browsers:node18.12.0-chrome107

@jennifer-shehane
Copy link
Member

@miguelpujadas The docker images you link do have git installed, so this appears to be a different issue than the one as it was originally described.

Ensure that your .git directory is available for us to pull this information by following these directions. https://docs.cypress.io/guides/continuous-integration/introduction#Git-information

@ptrin
Copy link

ptrin commented Mar 19, 2024

For anyone encountering this issue, it might be that your issue is the same as mine was:

cypress_1    |   commit-info got an error running command "git rev-parse --abbrev-ref HEAD" in folder "/test" +10ms
cypress_1    |   commit-info Error: Command failed: /bin/sh -c git rev-parse --abbrev-ref HEAD
cypress_1    |   commit-info fatal: detected dubious ownership in repository at '/test'
cypress_1    |   commit-info To add an exception for this directory, call:
cypress_1    |   commit-info 
cypress_1    |   commit-info    git config --global --add safe.directory /test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants