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

chore: created a new github action to handle new comments better #26234

Merged
merged 11 commits into from
Apr 3, 2023

Conversation

nagash77
Copy link
Contributor

  • Closes: N/A

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
Copy link

cypress bot commented Mar 27, 2023

29 flaky tests on run #45119 ↗︎

0 26895 1281 0 Flakiness 29

Details:

Update .github/workflows/triage_handle_new_comments.yml
Project: cypress Commit: bf316cf212
Status: Passed Duration: 20:05 💡
Started: Mar 30, 2023 8:30 PM Ended: Mar 30, 2023 8:50 PM
Flakiness  specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
App/Cloud Integration - Latest runs and Average duration > when no runs are recorded > shows placeholders for all visible specs Output Screenshots Video
Flakiness  cypress-in-cypress-component.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
Cypress In Cypress CT > default config > redirects to the specs list with error if a spec is not found Output Screenshots Video
Flakiness  cypress-origin-communicator.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
Cypress In Cypress Origin Communicator > cy.origin passivity with app interactions > passes upon test reload mid test execution Output Screenshots Video
Flakiness  project-setup.cy.ts • 1 flaky test • launchpad-e2e

View Output Video

Test Artifacts
... > skips the setup steps when choosing component tests to run Output Screenshots Video
Flakiness  e2e/origin/navigation.cy.ts • 1 flaky test • 5x-driver-electron

View Output Video

Test Artifacts
... > establishes foobar spec bridge Output Video

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.

Comment on lines 39 to 40
// If comment is from someone outside of the org
if (!isCommentFromMember) {
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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

Ben M and others added 6 commits March 30, 2023 11:23
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
@nagash77 nagash77 requested a review from emilyrohrbough March 30, 2023 17:34
repository: 'cypress-io/release-automations'
ref: 'master'
ssh-key: ${{ secrets.WORKFLOW_DEPLOY_KEY }}
- name: Set up Node.js
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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 }}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Ben M and others added 4 commits March 30, 2023 14:36
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
@nagash77 nagash77 merged commit b348972 into develop Apr 3, 2023
@nagash77 nagash77 deleted the benm/updated-github-comment-workflows branch April 3, 2023 17:39
@MikeMcC399
Copy link
Contributor

@nagash77

This PR deleted
cypress-io/cypress/.github/workflows/triage_closed_issue_comment.yml@develop

which has broken the workflow in

https://github.com/cypress-io/cypress-example-kitchensink/blob/master/.github/workflows/triage_closed_issue_comment.yml

See https://github.com/cypress-io/cypress-example-kitchensink/actions/runs/4604230839

"Invalid workflow file: .github/workflows/triage_closed_issue_comment.yml#L8
error parsing called workflow
".github/workflows/triage_closed_issue_comment.yml"
-> "cypress-io/cypress/.github/workflows/triage_closed_issue_comment.yml@develop"
: failed to fetch workflow: workflow was not found."

@nagash77
Copy link
Contributor Author

nagash77 commented Apr 4, 2023

@MikeMcC399 I'll get that fixed up!

AtofStryker added a commit that referenced this pull request Apr 5, 2023
* 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 <emilyrohrbough@users.noreply.github.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* fix: Detect CT framework when unconfigured project opened with `--component` (#26306)

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* 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 <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@cypress.io>

* 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] <support@github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Ben M <benm@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
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

Successfully merging this pull request may close these issues.

4 participants