-
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
chore: created a new github action to handle new comments better #26234
chore: created a new github action to handle new comments better #26234
Conversation
29 flaky tests on run #45119 ↗︎
Details:
specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e
cypress-in-cypress-component.cy.ts • 1 flaky test • app-e2e
cypress-origin-communicator.cy.ts • 1 flaky test • app-e2e
project-setup.cy.ts • 1 flaky test • launchpad-e2e
e2e/origin/navigation.cy.ts • 1 flaky test • 5x-driver-electron
The first 5 flaky specs are shown, see all 17 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
// If comment is from someone outside of the org | ||
if (!isCommentFromMember) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We return early above when it is a comment from a member, we this if check can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be removed, but I prefer it be there for clarity's sake. There is also the chance that we change the behavior for internal comments in the near future and I don't want folks to know they have to rewrap the rest of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gottchya, thoughts returning fast then? When I see a if like this I scan the entire file first to understand what the default behavior is meant to be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand what you are asking? We need to do the logic before it to determine if the comment creator is a member or not
Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: Emily Rohrbough <[email protected]>
repository: 'cypress-io/release-automations' | ||
ref: 'master' | ||
ssh-key: ${{ secrets.WORKFLOW_DEPLOY_KEY }} | ||
- name: Set up Node.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the default version of node on the runner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They switch when a new version becomes LTS. I believe it is currently 16 but will likely switch to 18 sometime in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default Node.js on all GitHub runners is currently 18.15.0
and probably there is no need to select Node.js 16 explicitly here.
(I know that this PR is closed! I'm just looking at it because it has broken other workflows. That has nothing to do with the Node.js version however.)
with: | ||
repository: 'cypress-io/release-automations' | ||
ref: 'master' | ||
ssh-key: ${{ secrets.WORKFLOW_DEPLOY_KEY }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this secret also need to be included in the workflow call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no this secret is needed to checkout a private repo.
Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: Matt Schile <[email protected]>
Co-authored-by: Matt Schile <[email protected]>
This PR deleted which has broken the workflow in "Invalid workflow file: .github/workflows/triage_closed_issue_comment.yml#L8 |
@MikeMcC399 I'll get that fixed up! |
* chore(deps): bump in json5 in system-tests projects (#26379) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump set-getter from 0.1.0 to 0.1.1 (#26345) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emily Rohrbough <[email protected]> * chore(deps): bump vm2 from 3.9.5 to 3.9.14 (#26335) Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.14. - [Release notes](https://github.com/patriksimek/vm2/releases) - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md) - [Commits](patriksimek/vm2@3.9.5...3.9.14) --- updated-dependencies: - dependency-name: vm2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emily Rohrbough <[email protected]> * fix: Detect CT framework when unconfigured project opened with `--component` (#26306) Co-authored-by: Ryan Manuel <[email protected]> * chore: created a new github action to handle new comments better (#26234) * chore: created a new github action to handle new comments better --------- Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Matt Schile <[email protected]> * chore: remove debug logging on by default (#26411) * fix: remove logging * added changelog entry * chore(dependency): tweaking renovate bot settings (#26428) * Update renovate.json * Update renovate.json * chore: update devtools protocol (#26410) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: Ryan Manuel <[email protected]> Co-authored-by: Ben M <[email protected]> Co-authored-by: Matt Schile <[email protected]> Co-authored-by: Lachlan Miller <[email protected]>
Additional details
This is a refactor of how our github actions handle comments. This will ignore all comments made by bots. Comments made by members of the Cypress org will also be ignored. Comments from outside contributors and users will be handled better in how they bring issues to the attention of the triage board.
Steps to test
How has the user experience changed?
This does not impact users of the app
PR Tasks
cypress-documentation
?type definitions
?