-
Notifications
You must be signed in to change notification settings - Fork 352
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
Action all the sudden reporting job status using "(merge)" suffix #805
Comments
I manually re-ran the workflow and this time it reported the status checks without the "(merge)" suffix. I still very much want the answer to why this is happening seemingly all of the sudden. And it's, of course, necessary to be able to use a single status check regardless if a workflow was manually re-run or not. |
Was this just a one-time occurrence or are you having repeatable issues? You would need to examine the runner workflow logs for the run which hung in order to see what might have gone wrong. If you find a need to re-run your workflow with debug logging enabled, then you can add: env:
DEBUG: '@cypress/github-action, cypress:*' Your post shows that you are using To take advantage of on-going improvements and bug-fixes you should consider migrating to Which version of Cypress are you using? |
v4. This happened multiple times. I pushed an empty commit to the PR after seeing the problem initially and the corresponding workflow run again had the "(merge)" suffix. It wasn't until I manually re-ran the workflow where the statuses were reported without the "(merge)" suffix. |
Is your screenshot from the pull request status on GitHub? Are you using a GitHub hosted runner or self-hosted? What do you have in your workflow event trigger section
I was actually asking about the version of Cypress in use, like 9.7.0 or 12.6.0 for instance. That is just for background information. |
Yes.
Self-hosted.
10.4.0. |
Thanks for the additional information! It doesn't look like this is an issue caused by |
One more thought: when I hover over the GitHub icon in my screenshot it says "@github-actions generated this status". In your screenshot I can see only Cypress icons, so there is a difference. Your issue has now been assigned to a Cypress engineer, so hopefully he will be able to chip in with more expertise than I have! |
@MikeMcC399 Thanks! Yes, when I hover over the Cypress icons the popover says "@cypress generated status". I'm not sure if it was clear from my workflow code, but our workflow job is parallelized and integrated with Cypress Dashboard. |
@mellis481 I think I concur with @MikeMcC399 that this isn't related to the GitHub Action, since these status checks come directly from Cypress Cloud itself. I spoke with @davidr-cy and he showed me that the relevant code paths that generate these status checks haven't changed in almost 2 years. So now we are wondering if GitHub is sending us different metadata all of a sudden, causing the change in behavior you're seeing. Could you please share your Cloud organization ID so we can debug further? You can find it under "Organization ID" inside of the Cypress Cloud. |
@flotwig c5365dbf-9c5b-4769-a95d-130d46f70241 |
@mellis481 can you try switching to |
@flotwig I'm confused with the recommendation in the article you shared. Those triggers are used in different use cases. |
on push, happens whenever you push changes to a branch, be it the feature branch, master or main on pull_request happens when 'the workflow runs when a pull request is opened or reopened or when the head branch of the pull request is updated'. So after you've created a pull request, According to the article the information provided by It's worth a shot to try though right? 🤷♂ |
@mjhenkes The example workflow in the article you shared doesn't specify a branch so it will run the Cypress action on any pushed commit to any branch. That's basically the only scenario I can think of where the In my situation (which is exceedingly common I can only assume), I only want to run Cypress tests for 1. PRs 2. against certain branches (in my case, just one: |
@mellis481, you do have a common use case, I agree, but as an experiment could you try using the push request and let us know if the jobs still have the 'merge suffix'? That will either narrow down the problem or eliminate the event as the cause of the issue. |
|
@MikeMcC399 I didn't include it in my original post listing code, but I do include COMMIT_MESSAGE which appears to be what solved the issue in that thread. Here is my whole Cypress step FWIW:
|
This issue seems to have gone stale and I'm unsure what the next steps might be. A new version of the action has been published which automatically pulls in any available PR information when recording. See https://github.com/cypress-io/github-action#automatic-pr-number--url-detection You would access this functionality using Again, I'm unsure whether that would change your experience, but I thought I would let you know anyway! |
@MikeMcC399 I'm still seeing this issue using |
Many thanks for your update to say that you are still experiencing this issue. It looks like it is not directly an issue with We'd need some assistance from the Cypress Cloud team on this, since this part of the solution is not open source. We can't see what it is doing or fix it in this repo. @emilyrohrbough |
@MikeMcC399 Interestingly, when you just said you think this is a Cypress Cloud thing, I thought I'd compare the project settings for the repo I'm having a problem with with another that I am not. The only thing that I found that was different was that the problem repo did not have a "Default branch" set in Cypress Cloud. I created a PR after setting the Default branch in Cypress Cloud (to I'm finding the symptoms of a missing "Default branch" in Cypress Cloud strange. As I described in the thread, it appended "(merge)" to the status checks, but what I also found is that, if a GitHub user other than the person who created the PR re-ran the workflow, the status checks reported fine. In any event, I'll close this issue. |
Congratulations on solving the issue! Thanks also for sharing what you did. |
@MikeMcC399 Nevermind the issue is back again. :( |
That is rather disappointing 🙁 ! My previous comments still hold though, that this is unlikely to be an issue with If you don't get any reaction here and you are on a paid Cypress Cloud plan (Team, Business, or Enterprise), then presumably you could also open a Cypress Cloud support ticket. |
@MikeMcC399 Thanks. I opened a Cypress Cloud support ticket. As you can see, I'm seeing @flotwig Can you describe the logic that is used to append |
I have a number of workflow jobs that use
cypress-io/github-action
which I have tied to branch protection status checks. Here is an example of a job:The name of the status check that I previously set for this job is "cypress: E2E" which uses the
group
property of the action. This has been working fine. All of the sudden, however, the previous status checks are not reporting. Instead, I'm seeing status checks being reported that have my expected checks, but with a "(merge)" suffix. eg:Why is this happening?
The text was updated successfully, but these errors were encountered: