-
Notifications
You must be signed in to change notification settings - Fork 36
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
Allow PR template to catch incomplete tasks #686
Conversation
Use checkboxes as checklists that must be checked
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #686 +/- ##
=======================================
Coverage 78.54% 78.54%
=======================================
Files 65 65
Lines 7141 7141
Branches 1565 1565
=======================================
Hits 5609 5609
Misses 1228 1228
Partials 304 304 Continue to review full report at Codecov.
|
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.
Comments attached. Overall I would be happy to see this document streamlined — I think less content is better than more in the template. Large blocks of instructions are often ignored, in my experience with creating PRs on other projects and seeing PRs from new contributors on projects I maintain. Maybe we can outsource more content to the CONTRIBUTING document.
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.
I agree with @bdice 's comments. Please address those and then re-request review from me. Thank you.
Co-authored-by: Bradley Dice <[email protected]>
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.
I have one minor suggestion, but overall this is fine.
I still feel like the list is overall maybe a bit too long. Lack of testing is automatically controlled by codecov for example. Code style is automatically checked by linters and autoformatters. How would you feel about dropping all items that should be automatically enforced? @bdice Also interested in your opinion here.
Co-authored-by: Carl Simon Adorf <[email protected]>
I like getting rid of the code style check, since that is part of the code guidelines
I think having the box for tests would help remind me to include tests while I'm starting the PR as opposed to when reviews are nearly done. |
Code coverage isn't really a metric of whether code is tested adequately. I wouldn't rely on codecov alone, since it is very prone to noise and doesn't really indicate whether the code has bugs -- only that it executes. Removing a line of documentation decreases net coverage, while splitting a single line of code into multiple lines sometimes increases coverage...
Code style can be removed from the checklist, that is sufficiently enforced by our CI at this point. |
Co-authored-by: Bradley Dice <[email protected]>
Co-authored-by: Bradley Dice <[email protected]>
Co-authored-by: Carl Simon Adorf <[email protected]>
I think this is ready for final review (even though not all is checked off). I updated the PR description with the new checklist. |
Nope, this kind of thing isn't put in the changelog (that's also a funny question, in a "meta" way 😉). |
Co-authored-by: Bradley Dice <[email protected]>
Co-authored-by: Bradley Dice <[email protected]>
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.
I approve. This is (after many iterations and great patience by all involved) an improvement over the current PR template! Thanks @cbkerr. The final form of this PR will need to be copied to other signac projects. Note that some templates may be different, like signac-docs. Similarly, signac-dashboard doesn't currently track contributors in the same way as signac and signac-flow (I have used git shortlog -sne > contributors.txt
at release time, for simplicity). Do whatever makes the most sense to you for those cases.
It looks like we have a test failure related to pytest-xdist. It looks like worker 0 collected some tests for MongoDB that were not collected by worker 1, and one of those tests failed. 😕 I guess we have a few paths forward:
|
csadorf is on vacation and this has enough reviews.
The two workers collecting different threads is a symptom, not the problem. If you look at the failure, it's in the code that actually decides whether or not to run MongoDB tests by testing whether a MongoDB server can be accessed. The problem is almost certainly coming from a race condition between the two processes in performing the test write to the same MongoDB server. The brute force solution is to replace the except clause with a blanket |
Final checklist:
Description of bug fix
This makes all checkboxes required by adding an "or" to the ones that were previously under a separate heading of "if necessary".
test of relative link
I propose creating a label for possibly breaking changes.
This PR uses the new template before reviews
Motivation and Context
glotzerlab/signac-flow/pull/508 was merged with unchecked boxes. It will be easier to catch this if we don't use checkboxes as radio buttons or otherwise optional items.