Validate commits before posting
Review Request #9921 — Created May 9, 2018 and submitted
RBTools now supports the commit validation resource introduced in
/r/9920/. We now post all commits to the validation API before posting
them to the draft commit API for publishing.
Description | From | Last Updated | ||
---|---|---|---|---|
This seems like verbose output. Do we need to show it all? If it's not near-instantaneous and we want some … |
|
|||
they -> it |
|
|||
Having both "validating" and "validated" printed to the log output seems verbose (even with debug turned on). |
|
|||
E501 line too long (89 > 79 characters) |
![]() |
|||
Requiring validation_info first breaks API compatibility with any existing callers of this method. It should be made optional in the … |
|
|||
Alphabetical order. |
|
|||
Can you pass these as keyword arguments? |
|
|||
F821 undefined name 'description' |
![]() |
|||
Same import group. |
|
|||
Why are we checking the tool name here? post should never care. |
|
|||
This looks like it returns HttpRequest. |
|
|||
Swap these. |
|
|||
No need for parens here. |
|
|||
Missing a description. |
|
|||
There's some subject agreement issues here. Should this be "Validate the diffs"? |
|
|||
This isn't a base class. |
|
|||
typo: impement -> implement |
|
|||
There are no open issues |
-
-
This seems like verbose output. Do we need to show it all?
If it's not near-instantaneous and we want some feedback, we do already pull in tqdm as a dependency, which would let us show a nifty progress bar.
-
-
Having both "validating" and "validated" printed to the log output seems verbose (even with debug turned on).
- Change Summary:
-
Use TQDM to show a progress bar.
- Commit:
-
a3f6fe70e98b5d68eda1ce04638b00b4319373787123760bfd3affc7ee3f9a5979ab7952e561f731
- Diff:
-
Revision 2 (+189 -54)
Checks run (2 succeeded)
- Change Summary:
-
Send parent diff with all validation and posts
- Commit:
-
7123760bfd3affc7ee3f9a5979ab7952e561f73151e0d8a8d99f297028897ce339bd02856dedb28f
- Diff:
-
Revision 3 (+190 -55)
- Commit:
-
51e0d8a8d99f297028897ce339bd02856dedb28fc2b264eb2df28cd49374f39cce4db13ec525bb49
- Diff:
-
Revision 4 (+189 -54)
Checks run (2 succeeded)
- Change Summary:
-
Only send validation info if present.
- Commit:
-
c2b264eb2df28cd49374f39cce4db13ec525bb49a749d2e89a4efb6a6639865bb4f5b23b75153aed
- Diff:
-
Revision 5 (+191 -54)
Checks run (2 succeeded)
- Change Summary:
-
Addressed issues & refactored calls to tqdm
- Commit:
-
a749d2e89a4efb6a6639865bb4f5b23b75153aed177650dde6fd640861aa7e616e2ccae187ba2b8e
- Diff:
-
Revision 6 (+223 -58)
- Commit:
-
177650dde6fd640861aa7e616e2ccae187ba2b8e91d5d2a5b2459eb381c2e550400b42232271b089
- Diff:
-
Revision 7 (+223 -58)
Checks run (2 succeeded)
- Commit:
-
91d5d2a5b2459eb381c2e550400b42232271b0896756dc6e310c8fde9ea23029b37570c659d57a6f
- Diff:
-
Revision 8 (+223 -59)
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
6756dc6e310c8fde9ea23029b37570c659d57a6fdf6ddcdc8673533203816ad2c73d012f5ba096bb
- Diff:
-
Revision 9 (+224 -61)
Checks run (2 succeeded)
- Change Summary:
-
addressed feedback.
- Commit:
-
df6ddcdc8673533203816ad2c73d012f5ba096bb334ff183ae2f826c33e8d1d9c829bb9c9e981d9f
- Diff:
-
Revision 10 (+224 -59)
Checks run (2 succeeded)
- Change Summary:
-
addressed feedback.
- Commit:
-
334ff183ae2f826c33e8d1d9c829bb9c9e981d9f6b0d2918aa2a462513e078235c8b69a7eeb45b4b
- Diff:
-
Revision 11 (+227 -59)
Checks run (2 succeeded)
- Change Summary:
-
addressed feedback.
- Commit:
-
6b0d2918aa2a462513e078235c8b69a7eeb45b4b4c8099f48f4edd74b9867d23063c5c2e9d5e3165
- Diff:
-
Revision 12 (+227 -59)