-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adds Bazel macros, Python CLI, and basic workflow tests. #1
Conversation
Starting review on GitHub; will shift to Reviewable once it's connected. |
+@sammy-tri for feature review, please. Review status: 0 of 73 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Checkpoint, slowly working my way through. (apologies for the delay) Reviewed 14 of 73 files at r1. README.md, line 3 at r1 (raw file):
BTW perhaps this could be a bit more clear? I feel like the goal is that there is versioning for the file provided by the hash, but the data is not stored in git. docs/setup.md, line 5 at r1 (raw file):
I'm not sure what "you must base" means.. docs/setup.md, line 33 at r1 (raw file):
Is it possible (or already the case) to make this optional if the user isn't going to upload? (my motivation here is so that something like docs/workflows.md, line 14 at r1 (raw file):
Perhaps update the repo from EricCousineau-TRI to RobotLocomotion? docs/workflows.md, line 34 at r1 (raw file):
I'm not sure I'd be able to follow this instruction. Does this just mean "make sure there's a docs/workflows.md, line 70 at r1 (raw file):
Do you actually need to docs/workflows.md, line 102 at r1 (raw file):
Why is the 'touch' needed? docs/workflows.md, line 117 at r1 (raw file):
Where does this file wind up after this operation? tools/macros.bzl, line 62 at r1 (raw file):
Wouldn't any settings passed to Comments from Reviewable |
79c7752
to
09355a5
Compare
Review status: 10 of 72 files reviewed at latest revision, 9 unresolved discussions. README.md, line 3 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. docs/setup.md, line 5 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. (Also, removed Girder stuff - will add that in subsequent PR, once base structure is good to go.) docs/setup.md, line 33 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. This is mentioned below, and I will ensure that this is part of a Girder test. docs/workflows.md, line 14 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. docs/workflows.md, line 34 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. docs/workflows.md, line 70 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. docs/workflows.md, line 102 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. docs/workflows.md, line 117 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. tools/macros.bzl, line 62 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. Comments from Reviewable |
commit some more comments I forgot to submit before break Reviewed 2 of 73 files at r1. src/bazel_external_data/BUILD.bazel, line 1 at r1 (raw file):
Putting src/bazel_external_data/BUILD.bazel, line 10 at r1 (raw file):
This looks strange enough that it probably deserves a comment. src/bazel_external_data/config_helpers.py, line 15 at r1 (raw file):
It's not obvious why a function with this behavior has the name src/bazel_external_data/util.py, line 75 at r1 (raw file):
BTW I don't think our style guide mandates this, but I personally like using Comments from Reviewable |
Reviewed 4 of 5 files at r2. Comments from Reviewable |
e177c74
to
d888440
Compare
Review status: 12 of 72 files reviewed at latest revision, 4 unresolved discussions. src/bazel_external_data/BUILD.bazel, line 1 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/BUILD.bazel, line 10 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/config_helpers.py, line 15 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/util.py, line 75 at r1 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. Comments from Reviewable |
d888440
to
ae4f641
Compare
Still working through, sorry for how long this is taking me (I've needed a few breaks). Is this the right place to have the conversation about this code being standalone vs. living inside drake? Reviewed 10 of 73 files at r1, 7 of 14 files at r3. src/bazel_external_data/check.py, line 3 at r3 (raw file):
Is this file level comment accurate? src/bazel_external_data/cli.py, line 38 at r3 (raw file):
long line (one of many in this file) src/bazel_external_data/core.py, line 8 at r3 (raw file):
https://www.python.org/dev/peps/pep-0008/#maximum-line-length src/bazel_external_data/download.py, line 1 at r3 (raw file):
Are either of these used? src/bazel_external_data/download.py, line 2 at r3 (raw file):
unused src/bazel_external_data/hashes.py, line 5 at r3 (raw file):
BTW consider naming src/bazel_external_data/hashes.py, line 116 at r3 (raw file):
Is this code automatically invoked anywhere as a test or something? My inclination is to comment why it's here or just delete it if it's never executed to avoid bitrot. src/bazel_external_data/upload.py, line 1 at r3 (raw file):
unused? src/bazel_external_data/upload.py, line 5 at r3 (raw file):
unused src/bazel_external_data/upload.py, line 9 at r3 (raw file):
BTW I think both this file and Comments from Reviewable |
Yes, I think it would be. The only remaining item would be to, at some point, ensure that unittests using Girder via docker can be included; Jeremy's mentioned that in RobotLocomotion/drake#7654. Review status: 29 of 72 files reviewed at latest revision, 10 unresolved discussions. Comments from Reviewable |
Reviewed 1 of 73 files at r1, 1 of 14 files at r3. Comments from Reviewable |
dc40bad
to
b680d4e
Compare
Review status: 25 of 72 files reviewed at latest revision, 10 unresolved discussions. src/bazel_external_data/check.py, line 3 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/cli.py, line 38 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/core.py, line 8 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/download.py, line 1 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/download.py, line 2 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/hashes.py, line 5 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/hashes.py, line 116 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. Removed, it was just a little test as I was prototyping. src/bazel_external_data/upload.py, line 1 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/upload.py, line 5 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. src/bazel_external_data/upload.py, line 9 at r3 (raw file): Previously, sammy-tri (Sam Creasey) wrote…
Done. Comments from Reviewable |
Closing for now. |
An unfortunately large initial PR.
Per f2f with @sammy-tri, will work on adding in Travis CI and linting.
This change is