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

test: [M3-6876] - Improve formatting of GitHub test result comments #11200

Conversation

jdamore-linode
Copy link
Contributor

Description 📝

This PR makes some slight improvements to our GitHub comment test result formatter script. It improves the formatting of the breakdown showing the number of passing, failing, and skipped tests, adds a customizable title, and changes the "Debugging" heading to "Troubleshooting".

Note that this is a low priority and our separate changes to enable GitHub Comments in CI do not rely on these changes being in place first.

Changes 🔄

  • Add pipeline title to GitHub comment
  • Improve heading formatting
  • Render test result summary as a table
  • Change "Debugging" to "Troubleshooting"

Target release date 🗓️

N/A, this is not a high priority at all.

Preview 📷

Passing:
Screenshot 2024-10-31 at 3 19 06 PM

With Failures:
Screenshot 2024-10-31 at 3 25 13 PM

I didn't take any screenshots showing the before state, but the table showing the number of passing, failing, and skipped tests was previously a one liner along the lines of " ❌ N failing tests | 💚 N passing tests | 🔽 N skipped tests", and the "Cloud Manager UI Test Results" heading was not present.

How to test 🧪

You can manually run the yarn junit:summary <path> --format github command and validate its output, or check out the comments posted to my test PR on my fork: jdamore-linode#25

Soon I'll add some links to Jenkins run to the Jira ticket showing how it all fits together.

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@jdamore-linode jdamore-linode self-assigned this Oct 31, 2024
@jdamore-linode jdamore-linode requested a review from a team as a code owner October 31, 2024 19:54
@jdamore-linode jdamore-linode requested review from dwiley-akamai and abailly-akamai and removed request for a team October 31, 2024 19:54
Copy link

github-actions bot commented Oct 31, 2024

Coverage Report:
Base Coverage: 87.22%
Current Coverage: 87.22%

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Nov 1, 2024
Copy link
Contributor

@coliu-akamai coliu-akamai left a comment

Choose a reason for hiding this comment

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

awesome, thanks Joe! 🎉

@coliu-akamai coliu-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Nov 1, 2024
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

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

The formatting improvements LGTM 🎉

@jdamore-linode jdamore-linode merged commit 2e6defb into linode:develop Nov 1, 2024
23 checks passed
Copy link

cypress bot commented Nov 1, 2024

Cloud Manager E2E    Run #6771

Run Properties:  status check passed Passed #6771  •  git commit 2e6defb927: test: [M3-6876] - Improve formatting of GitHub test result comments (#11200)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6771
Run duration 26m 42s
Commit git commit 2e6defb927: test: [M3-6876] - Improve formatting of GitHub test result comments (#11200)
Committer jdamore-linode
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 445
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants