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

E2E tests: mention users in Slack based on report name and branch name #20964

Merged
merged 3 commits into from
Sep 6, 2021

Conversation

adimoldovan
Copy link
Member

@adimoldovan adimoldovan commented Sep 6, 2021

Changes proposed in this Pull Request:

This adds more flexibility and control over user mentions in Slack notifications. We can now configure lists of Slack handles to be mentioned for a branch or for a report name (e.g. atomic or gutenberg)

Jetpack product discussion

1156386383419466-as-1200924739850035

Does this pull request change what data or activity we track or use?

no

Testing instructions:

  • CI green
  • It's a bit harder to test locally. You'll need to set an env variable GITHUB_CONTEXT with the GitHub event information you want to test (pull_request, push, scheduled). You can get the content of such event by searching in actions history. Then, you'll need the summary.json file in the output folder. For this, you can run the tests locally. Then run the script with NODE_ENV=test node ./bin/slack.js suite suiteName. See script's help for more options.

@adimoldovan adimoldovan self-assigned this Sep 6, 2021
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ E2E Tests labels Sep 6, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2021

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Jetpack plugin:

  • Next scheduled release: September 7, 2021.
  • Scheduled code freeze: August 30, 2021.

@adimoldovan adimoldovan added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. and removed [Status] In Progress labels Sep 6, 2021
@adimoldovan adimoldovan requested a review from brbrr September 6, 2021 12:48
@adimoldovan adimoldovan enabled auto-merge (squash) September 6, 2021 15:48
@adimoldovan adimoldovan merged commit 365f1f5 into master Sep 6, 2021
@adimoldovan adimoldovan deleted the e2e/slack-mention-atomic-runs branch September 6, 2021 15:55
@github-actions github-actions bot removed the [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. label Sep 6, 2021
@github-actions github-actions bot added this to the jetpack/10.1 milestone Sep 6, 2021
davidlonjon added a commit that referenced this pull request Sep 7, 2021
* master:
  Widget Visibility: fix undefined property ref (#20967)
  Carousel: update prev/next nav button colors (#20940)
  E2E tests: mention users in Slack based on report name and branch name (#20964)
  Search: fix search admin page wrapping issue for ultra wide screens (#20962)
  Instant Search customization: use sentence case consistently (#20931)
  RP: Use all args for the filter (#20953)
  renovate: Fix config (#20952)
  Backport Sync and Heartbeat Changelog from Release (#20950)
  Update renovate config (#20917)
  Sync: Defensive coding against E_NOTICE (#20921)
  Carousel: Fix cursor css selector (#20927)
  Search: Improve style specificity for result highlights in Customberg (#20945)
  Contact Form: add filter to allow customizing email headers. (#20912)
  Blocks: fix HTML markup of buttons added to our blocks. (#20936)
davidlonjon added a commit that referenced this pull request Sep 7, 2021
* master:
  Widget Visibility: fix undefined property ref (#20967)
  Carousel: update prev/next nav button colors (#20940)
  E2E tests: mention users in Slack based on report name and branch name (#20964)
  Search: fix search admin page wrapping issue for ultra wide screens (#20962)
  Instant Search customization: use sentence case consistently (#20931)
  RP: Use all args for the filter (#20953)
  renovate: Fix config (#20952)
  Backport Sync and Heartbeat Changelog from Release (#20950)
  Update renovate config (#20917)
  Sync: Defensive coding against E_NOTICE (#20921)
  Carousel: Fix cursor css selector (#20927)
  Search: Improve style specificity for result highlights in Customberg (#20945)
  Contact Form: add filter to allow customizing email headers. (#20912)
  Blocks: fix HTML markup of buttons added to our blocks. (#20936)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Tests [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants