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

playwright pr comment #8370

Merged
merged 8 commits into from
Apr 30, 2024
Merged

playwright pr comment #8370

merged 8 commits into from
Apr 30, 2024

Conversation

fungairino
Copy link
Collaborator

@fungairino fungairino commented Apr 29, 2024

What does this PR do?

  • Adds a step to the e2e ci job that will comment on the PR with the result of the test run.

Discussion

  • Distinguish mv2 and mv3 report?

Checklist

  • Add jest or playwright tests and/or storybook stories
  • Designate a primary reviewer @grahamlangford

Copy link

github-actions bot commented Apr 29, 2024

Playwright test results

passed  38 passed

Details

stats  38 tests across 15 suites
duration  9 minutes, 49 seconds
commit  2b74482

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.51%. Comparing base (53f84ce) to head (036eec6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8370      +/-   ##
==========================================
+ Coverage   73.50%   73.51%   +0.01%     
==========================================
  Files        1332     1332              
  Lines       41200    41200              
  Branches     7665     7665              
==========================================
+ Hits        30284    30290       +6     
+ Misses      10916    10910       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Apr 29, 2024

Playwright test results - MV2

passed  32 passed
skipped  8 skipped

Details

stats  40 tests across 15 suites
duration  7 minutes, 26 seconds
commit  036eec6

Skipped tests

chrome › tests/extensionConsoleActivation.spec.ts › can activate a mod with built-in integration
edge › tests/extensionConsoleActivation.spec.ts › can activate a mod with built-in integration
chrome › tests/runtime/sidebarController.spec.ts › sidebar controller › shows focus dialog in top-level frame
edge › tests/runtime/sidebarController.spec.ts › sidebar controller › shows focus dialog in top-level frame
chrome › tests/runtime/sidebarNavigation.spec.ts › sidebar mod panels are persistent during navigation
chrome › tests/runtime/sidebarNavigation.spec.ts › sidebar form and temporary panels are unavailable after navigation
edge › tests/runtime/sidebarNavigation.spec.ts › sidebar mod panels are persistent during navigation
edge › tests/runtime/sidebarNavigation.spec.ts › sidebar form and temporary panels are unavailable after navigation

Copy link

github-actions bot commented Apr 29, 2024

Playwright test results - MV3

passed  40 passed

Details

stats  40 tests across 15 suites
duration  10 minutes, 24 seconds
commit  036eec6

@@ -1,6 +1,6 @@
name: CI

on: push
on: [push, pull_request]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR ID isn't available unless I include this pull_request trigger for the playwright summary. Though I'm a bit worried this may not work in a non-PR context

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs when we version main and when we cut release branches, neither of which are pull requests

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied convo from slack:

Eduardo
1:26 PM
Theoretically it should be fine to add the additional trigger pull_request since every kind of that event is also a push, right? Just with extra information

1:26
Though I did notice that pull_request will checkout the merged version of all the commits in the PR rather than the tip of the branch

Graham
1:27 PM
What happens when it's a push without a pull_request though?
1:28
Ex: https://github.com/pixiebrix/pixiebrix-extension/actions/runs/8837003915

Eduardo
1:29 PM
Theoretically it won't pass.
I can add a check for when not to run a step:
if: github.event_name != 'pull_request'

Copy link
Collaborator

@mnholtz mnholtz Apr 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me what was decided here - could you clarify @fungairino ? I do see the github.event_name != 'pull_request' clause below.

Copy link
Collaborator

@mnholtz mnholtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to unblock, because it seems like the conversation about adding the pull_request trigger is resolved?

Copy link

No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack.

Do not edit this comment manually.

@fungairino fungairino merged commit 4a22a74 into main Apr 30, 2024
36 checks passed
@fungairino fungairino deleted the playwright-pr-comment branch April 30, 2024 01:08
@grahamlangford grahamlangford added this to the 1.8.13 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants