-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Simplifies code contributions by automating the dev setup #11300
Conversation
Would this work-flow actually support running any of the PDF.js test-suits, or even running lint, since making it easier for people to submit completely untested PRs probably isn't such a great idea!? |
Yes, running lint and unit tests would be a very good idea. Ideally you can also run the regression tests though, but I don't know if that is possible in the workflow; running lint and unit tests should already catch a few issues depending on which code is touched. |
Unless it's possible to follow the entire work-flow and run all test-suite (including reference tests) mentioned in https://github.com/mozilla/pdf.js/wiki/Contributing, then advertising this in the README seems like it might cause some unnecessary friction for a would be contributor. For example: Let's assume that we add this and someone uses it to submit a patch touching e.g. That sort of situation doesn't seem great at all, at least as far as I'm concerned. |
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.
Please note all patches much contain a good commit message that describes exactly what's being changed and why the change is made; hence something like e.g. "Configures gitpod" is not at all useful (even more so when using the Git command line).
Thanks! @Snuffleupagus I have made the changes and updated the branch. |
At what point is this actually done? |
Oops! Sorry! I was absolutely wrong 😞 I meant to say that contributors don't have to run this command |
Let's give this a try. Thank you! |
In PR mozilla#11300 Gitpod support got introduced, but we re-evaluated that decision in mozilla#11732. In PR mozilla#11800 the support was partially reverted, but the actual Gitpod files were kept to not outright break potential workflows because at the time we were not sure if, and if so how often, Gitpod was actually used for contributing to PDF.js. However, in addition to the concerns mentioned in mozilla#11732 after five years we haven't seen any contributions that clearly originated from Gitpod, and the Dockerfile has not been updated after e.g. PR mozilla#11807 and PR mozilla#17913 because it's not a workflow that we maintain or are able to test (nor have we seen Gitpod community contributions for this). This commit therefore removes the remaining Gitpod files too to reduce maintainance burden for PDF.js. Note that users of Gitpod can still contribute to PDF.js via the platform; we just don't provide/manage workspace files from this repository anymore.
In PR mozilla#11300 Gitpod support got introduced, but we re-evaluated that decision in mozilla#11732. In PR mozilla#11800 the support was partially reverted, but the actual Gitpod files were kept to not outright break potential workflows because at the time we were not sure if, and if so how often, Gitpod was actually used for contributing to PDF.js. However, in addition to the concerns mentioned in mozilla#11732 after five years we haven't seen any contributions that clearly originated from Gitpod, and the files have not been updated after e.g. PR mozilla#11807 and PR mozilla#17913 because it's not a workflow that we maintain or are able to test (nor have we seen Gitpod community contributions for this). This commit therefore removes the remaining Gitpod files to reduce maintainance burden for PDF.js. Note that users of Gitpod can still contribute to PDF.js via the platform; we just don't provide/manage workspace files from this repository anymore.
Hi! there, 🙂
this PR adds support for Gitpod, a free online tool that lets you automate your dev environment, eases the hurdles for contributions and generally working on GitHub projects. It allows anyone to get a ready-to-code dev environment for any branch, issue and pull request with a single click.
In the case of this project, it will launch a ready to code workspace with the dependencies installed and the web server running so that contributors can start hacking around with the project without wasting any precious time on the development setup.
You can give it a try on my fork of the repo: https://gitpod.io/#https://github.com/nisarhassan12/pdf.js
It seems to work well! Please let me know if there is anything that can be improved. I would love to help :)