-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: keep coverage reports after coverage-clean #15470
Conversation
Hmm, I'd rather have a separate target for "restore but doesn't actually clean".
@ssbrewster @apapirovski does that sound like something that would satisfy your use cases? |
@TimothyGu yes that would work for my use cases i just wonder whether we should run coverage-restore as part of the |
I'm personally just not sure what the upside is of deleting the coverage reports, especially if they're in There are legitimate reasons to run (I'm fine with any other changes proposed around this behaviour but I would still like to be able to somehow clean & keep just coverage and have it be in |
I personally do not have a strong opinion about either suggested way but I think it is a good thing to make sure we have the possibility of keeping the coverage. @nodejs/tsc I think it would be good to weight in. |
Could we get some movement on this by any chance? Thanks! If this change is not wanted, I'm happy to close but would like to resolve one way or the other. |
I don't have a strong preference, but I am leaning towards the idea proposed by @TimothyGu. |
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.
LGTM
Add coverage folder to .gitignore and remove it from the list of files & folders delete by coverage-clean.
7f674fc
to
dbda6bb
Compare
@TimothyGu @thefourtheye would either of you like to make your objection official? Want to make sure since otherwise this can get merged. |
Seems like there are no strong objections and this can land. If someone objects later on we could change it again anyway. |
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.
LGTM
there's some red in the CI that should be looked at. |
It's hard to imagine it's related given that it's this test: |
There's also this failure on freebsd... that has not failed in any other test I've seen today. Also likely unrelated but just want to confirm
|
Ok, quick check through and there's really no way those could have been affected by this change. Will land as soon as CI finishes |
Add coverage folder to .gitignore and remove it from the list of files & folders delete by coverage-clean. PR-URL: #15470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Landed in c6b7052 |
Add coverage folder to .gitignore and remove it from the list of files & folders delete by coverage-clean. PR-URL: #15470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Add coverage folder to .gitignore and remove it from the list of files & folders delete by coverage-clean. PR-URL: #15470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Should this be backported to |
Add coverage folder to .gitignore and remove it from the list of files & folders delete by coverage-clean. PR-URL: #15470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Add coverage folder to .gitignore and remove it from the list of files & folders delete by coverage-clean. PR-URL: #15470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This PR adds the
coverage
folder to.gitignore
and removes it frommake coverage-clean
. I feel like this is a useful change for anyone working on tests. It's nice to be able to keep the coverage reports to reference while writing tests without keeping the rest of the coverage instrumentation (which makes tests slow) and also without having to manually rename thecoverage
dir (and then avoid adding it to commits).Checklist
Affected core subsystem(s)
test, build