You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Continuous Integration + Review Requirements to CONTRIBUTING.md #7443
I agree that it would be useful to community. I think perhaps someone who has recently gone through the process might be motivated to put the important things together into a nice guide.
For changes to core framework bazel test $flags //tensorflow/...
Keeping flags in $flags is important because if you you forget a flag, and do bazel run or bazel test with a new setting, it'll start building everything from scratch, aka 20+ mins of machine being semi-unresponsive.
For long running tests, tmux is useful for provide robustness against disconnection/closing terminal:
tmux new -s bazel -n 0
bazel test //tensorflow/...
Also, this to keep bazel from wiping its state overnight
Also, some notes on general philosophy of contributions -- when you contribute something to TensorFlow, the maintenance burden is transferred to the Google TensorFlow team. This means that benefit of contribution must be compared against the cost of maintaining that feature until the heat death of universe.
Hence there are cases when you want to extend functionality of TensorFlow, while remaining the owner/maintainer of this extension. This can be done by keeping extra functionality in a separate repo and using TensorFlow API to bring it in during runtime. For instance, new kernels/ops can be added to TensorFlow using TensorFlow plugin mechanism (load_library)
Reacted by Andrew Hundt, Vijay Vasudevan and Qing ZHao
I've added a couple of things (buildifier, clang-format) to original reply. I'll keep merging in extra things I come across in there until there's a better place
Activity
yaroslavvb commentedon Feb 11, 2017
I agree that it would be useful to community. I think perhaps someone who has recently gone through the process might be motivated to put the important things together into a nice guide.
Some snippets from my development notes:
making a PR: https://gist.github.com/yaroslavvb/bdb0a92f2a516ebbe2d386c48f5e2c45
You must sign CLA agreement. See comments from Chris DiBona for why this license was chosen -- https://www.reddit.com/r/MachineLearning/comments/3s4qpm/google_tensorflow_released/
If you created your commits with a wrong address (ie, default one git sets up), you have to rewrite your commit history to change your address to the one that corresponds to the one you signed CLA with. (github help pages a rewriting script that provded useful for this, https://help.github.com/articles/changing-author-info/)
Install https://github.com/bazelbuild/buildifier and running it over the BUILD file to fix any formatting issues
To see style corrections suggested by
clang-formatUse
bazel test. To see pip install requirements, check in tensorflow/tools/ci_build/install/install_pip_packages.shMost recently this meant doing this
Then on Ubuntu:
On MacOS: (bazel needs to be explicitly told to pass env vars for some reason)
For changes to core framework
bazel test $flags //tensorflow/...Keeping flags in $flags is important because if you you forget a flag, and do
bazel runorbazel testwith a new setting, it'll start building everything from scratch, aka 20+ mins of machine being semi-unresponsive.For long running tests, tmux is useful for provide robustness against disconnection/closing terminal:
Also, this to keep bazel from wiping its state overnight
echo "startup --max_idle_secs=100000000" > ~/.bazelrcAlso, some notes on general philosophy of contributions -- when you contribute something to TensorFlow, the maintenance burden is transferred to the Google TensorFlow team. This means that benefit of contribution must be compared against the cost of maintaining that feature until the heat death of universe.
Hence there are cases when you want to extend functionality of TensorFlow, while remaining the owner/maintainer of this extension. This can be done by keeping extra functionality in a separate repo and using TensorFlow API to bring it in during runtime. For instance, new kernels/ops can be added to TensorFlow using TensorFlow plugin mechanism (load_library)
ahundt commentedon Feb 11, 2017
Awesome info! Since you mentioned tmux there is also http://byobu.co/ which is built on top of tmux and improves usability.
aselle commentedon Feb 15, 2017
@ahundt, would you be willing to contribute a document to this effect? @gunan, do you have any other suggestions?
gunan commentedon Feb 15, 2017
One quick way to contribute would be to use our devel dockerfiles.
But what is already mentioned sounds good to me.
ahundt commentedon Feb 15, 2017
@aselle I don't know all the policies at the moment that's why I asked, heh
yaroslavvb commentedon Feb 18, 2017
I've added a couple of things (buildifier, clang-format) to original reply. I'll keep merging in extra things I come across in there until there's a better place
ahundt commentedon Feb 20, 2017
@yaroslavvb Could you just create a pull request directly adding the text to CONTRIBUTING.md?
Regarding the folder of docker files, some of those scripts do look fairly straightforward and could be referenced:
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/docker
caisq commentedon Apr 28, 2017
FYI, we are working on the suggested improvements to CONTRIBUTING.md and possibly the docker files as well.
Add contribution guidelines and standards section to CONTRIBUTING.md
Branch 154885009 (#9604)
ahundt commentedon May 4, 2017
@vrv @caisq Thanks that guide looks super helpful!