-
Notifications
You must be signed in to change notification settings - Fork 373
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
feat: [M3-7128] - Coverage Report - Part 1 #9772
Conversation
a75989e
to
04996a8
Compare
3344459
to
3b6e039
Compare
@@ -53,7 +53,6 @@ | |||
"lodash": "^4.17.21", | |||
"glob-parent": "^5.1.2", | |||
"hosted-git-info": "^5.0.0", | |||
"minimatch": "^9.0.2", |
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 don't need a resolution here. This was part of the reason the coverage script was not running - this was last changed when I worked on the perfectionist linting job and we had a conflict. Instead of a resolution, we should allow both versions to be available.
8076a42
to
a4cd2f9
Compare
Put back into draft cause I need to rework a couple things
0da8005
to
416277e
Compare
cd266e1
to
9e1ca12
Compare
a9487ec
to
9155fb1
Compare
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ref_code_coverage | ||
path: ref_code_coverage.txt |
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.
This will fail right now cause code coverage isn't working on develop. Once merged, coverage will start running again and this will succeed
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
message: | | ||
$(cat updated_comment.txt) | ||
|
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.
this action won't run till merged to develop. I am expecting to iterate on it on part 2, or maybe it'll just work!
<p align="center"> | ||
<img alt="Linode/Manager Coverage" src="https://img.shields.io/badge/%40linode%2Fmanager_coverage-N%2FA%25-yellow" /> | ||
</p> | ||
|
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're adding a badge to our front page. This should work once merged, although i may need to add our token to the job.
packages/manager/package.json
Outdated
"!src/**/*.hooks.{js,jsx,ts,tsx}", | ||
"!src/**/*.stories.{js,jsx,ts,tsx}", | ||
"!src/**/index.{js,jsx,ts,tsx}", | ||
"!src/**/*.styles.{js,jsx,ts,tsx}" |
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 may want to iterate on those as we go. Basically we want to collect coverage from the most relevant code paths. For instance, it does not make sense to include all features in the coverage however we want to include the utilities from there.
96904e6
to
f11cbc6
Compare
Description 📝
This PR is Part 1 of 2.
The way GH actions work, we need the base job ("Code Coverage") to be in the development branch for the depending job ("Coverage Comment") to trigger. The reason we have two different jobs is because of being able to comment on forked PRs and secrets are stripped from jobs triggered by forked
pull_request
.I assume tuning will be needed once this is merged and it may create some noise for a couple days. No big deal, none of this will stop a PR from bring merged and will announce the changes/disturbance in our channel. No pain no gain.
Note: changeset will be added in next PR!
Second Note: Please pardon the many commits and notices, it was an experimental branch that got prematurely put in review.
Changes 🔄
on: [pull_request]
Preview 📷
How to test 🧪
yarn
to update your dependenciesyarn coverage
As an Author I have considered 🤔
Check all that apply