-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[BEAM-8956] Begin unifying contributor instructions into a single location #10366
Conversation
R: @iemejia |
CONTRIBUTING.md
Outdated
* Python 3 | ||
* pip | ||
* setuptools | ||
* Go 1.12 or later |
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.
Would you group the tools by programming languages (Java, Python, Go)?
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.
done
CONTRIBUTING.md
Outdated
you need additional tools installed in your system including: | ||
|
||
* JDK 8 or later | ||
* Python 3 |
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.
Would you clarify which Python 3? (3.4, 3.7, etc.?)
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.
Any idea which versions are supported/required?
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.
Python 3.5, 3.6, and 3.7.
suztomo-macbookpro44:beam suztomo$ find . -name 'py33'
suztomo-macbookpro44:beam suztomo$ find . -name 'py34'
suztomo-macbookpro44:beam suztomo$ find . -name 'py35'
./sdks/python/container/py35
./sdks/python/test-suites/dataflow/py35
./sdks/python/test-suites/tox/py35
./sdks/python/test-suites/direct/py35
./sdks/python/test-suites/portable/py35
suztomo-macbookpro44:beam suztomo$ find . -name 'py36'
./sdks/python/container/py36
./sdks/python/test-suites/dataflow/py36
./sdks/python/test-suites/tox/py36
./sdks/python/test-suites/direct/py36
./sdks/python/test-suites/portable/py36
suztomo-macbookpro44:beam suztomo$ find . -name 'py37'
./sdks/python/container/py37
./sdks/python/test-suites/dataflow/py37
./sdks/python/test-suites/tox/py37
./sdks/python/test-suites/direct/py37
./sdks/python/test-suites/portable/py37
suztomo-macbookpro44:beam suztomo$ find . -name 'py38'
suztomo-macbookpro44:beam suztomo$
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.
done
README.md
Outdated
@@ -106,7 +94,8 @@ To get involved in Apache Beam: | |||
* [Subscribe](mailto:[email protected]) or [mail](mailto:[email protected]) the [[email protected]](http://mail-archives.apache.org/mod_mbox/beam-dev/) list. | |||
* Report issues on [JIRA](https://issues.apache.org/jira/browse/BEAM). | |||
|
|||
We also have a [contributor's guide](https://beam.apache.org/contribute/contribution-guide/). | |||
Instructions for building and testing Beam itself | |||
are in the [contributor's guide](CONTRIBUTING.md). |
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.
This line is going to name CONTRIBUTING.md as “contributor’s guide”, which conflicts with the page in the wiki. How about just naming “CONTRIBUTING.md”?
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.
One or the other of these is going away. I'm not sure which yet.
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.
Kenn responded to the email thread to have CONTRIBUTING.md link to https://beam.apache.org/contribute/contribution-guide/
CONTRIBUTING.md
Outdated
python-pip \ | ||
virtualenv \ | ||
tox \ | ||
docker-ce |
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.
Where is Go 1.12?
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.
Go can't be installed by apt-get. Added pointer to instructions.
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.
Thanks.
CONTRIBUTING.md
Outdated
* tox | ||
* Docker | ||
|
||
To install these in a Debian-based distribution: |
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.
It would be great if you can specify debian release version you used, such as Debian 9 Stretch. The availability of package differ based on the version.
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 think it should work with any reasonably recent debian. I'm going to assume that until told otherwise.
CONTRIBUTING.md
Outdated
@@ -27,3 +27,31 @@ for details, such as: | |||
* Development setup and testing your changes | |||
* Submitting a pull request and finding a reviewer | |||
|
|||
To build and install the whole project from the source distribution, |
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.
Per dev@ thread, let's move all concrete technical instructions to the linked contribution guide.
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.
PTAL. Now unified into website.
FYI, I have not yet figured out how to build/run the website locally. Something about my gLinux docker setup is off:
Task :website:buildDockerImage FAILED
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=zsx1afhzf5weazb0n9n456xgb&shmsize=0&t=beam-website&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied
Seems like you need to configure Docker in "sudoless" mode, i.e., give your user access to that socket file. |
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.
PTAL
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.
Ping. Can we merge this? This isn't completely done yet, but I think it's a big step forward from where the docs are now.
|
||
``` | ||
$ export GOPATH=`pwd`/sdks/go/examples/.gogradle/project_gopath | ||
$ go get github.com/linkedin/goavro |
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.
Thank you for picking up my comment.
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.
Ping. Can we move this forward?
@iemejia @kennknowles could you please review this PR? |
…tructions into a single location
Ah, sorry. I somehow failed to send my comment, which was that we should keep |
We have overlapping and sometimes contradictory docs on how to setup and build BEAM in four different places I've found:
README.md
CONTRIBUTING.md
https://cwiki.apache.org/confluence/display/BEAM/Contributor+FAQ
https://beam.apache.org/contribute/
We should probably pick one as the source of truth and rewrite the
other three to simply point to it. I propose putting all checkout,
build, test, commit, and push instructions in CONTRIBUTING.md in the
repo.
@iemejia
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.