-
Notifications
You must be signed in to change notification settings - Fork 903
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
Add Gitpod configuration #1232
Add Gitpod configuration #1232
Conversation
Signed-off-by: Antony Milne <antony.milne@quantumblack.com>
Signed-off-by: Antony Milne <antony.milne@quantumblack.com>
test_requirements.txt
Outdated
@@ -33,7 +33,7 @@ Pillow~=8.0; python_version == '3.6' | |||
Pillow~=9.0; python_version > '3.6' | |||
plotly>=4.8.0, <6.0 | |||
pre-commit~=1.17 | |||
psutil==5.6.7 | |||
psutil==5.9.0 |
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.
Not sure why I was getting an with psutils==5.6.7
- it worked fine for months until this morning 🤔 To be checked whether we should change this or not.
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.
Fixed by reverting to a legacy Dockerfile.
Signed-off-by: Antony Milne <antony.milne@quantumblack.com>
.gitpod.yml
Outdated
pip install /workspace/kedro --no-deps | ||
yes project | kedro new -s pandas-iris | ||
command: | | ||
pip install /workspace/kedro --no-deps |
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.
TODO: this should be -e
.
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.
Fixed by reverting to a legacy Dockerfile.
This is really cool - can gitpod allow us to spin up a Windows env? |
Signed-off-by: Antony Milne <antony.milne@quantumblack.com>
Signed-off-by: Antony Milne <antony.milne@quantumblack.com>
@@ -0,0 +1,45 @@ | |||
image: gitpod/workspace-full:legacy-dazzle-v1 |
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 is why things didn't work properly yesterday! Gitpod changed their system for building Docker images, and the latest gitpod/workspace-full
(used by default) broke some Python stuff. Until it's fixed I've set this to use the old Docker image.
Discussed this offline but putting it here so everyone can see... I was wondering this also as it might be a nice way to debug stuff on Windows. I think the basic answer is no. This is what they say, which I don't really understand tbh...
You can only have one gitpod setup per repo, so if we could use Gitpod to try stuff out on Windows then we would need to put the setup on a separately forked repo. Otherwise every time you launch Gitpod on the main kedro repo it would use the Windows setup. |
I've requested reviews from lots of people just for visibility if you're interested in this. No need to look if you're not interested though! |
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 is awesome!! 🚀 Thank you so much for investing time in learning Gitpod and setting it up for Kedro! 🏆🌟 I can't wait to start using it 🥳
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 is an amazing effort and an even more brilliant write-up!!! 🏆 🎖️ 💯 🥇 🎊
Could we write down some of this knowledge or suggestions into our contributing docs? I'm thinking especially of the stuff you've listed under Tips
, this could be super useful! Let's also make some noise / show some love on Discord. 🙌 🎉
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.
Amazing!!!
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.
Amazing work, can't wait to use it! 💥
Thanks for the nice comments all! @lorenabalan I'm definitely going to put this in the contributing guide including the tips, and then let's make some noise about it on slack and discord. I just want to try it out a little more to be sure it's all working, since we only just got the app added to the repo. |
Signed-off-by: Laurens Vijnck <laurens_vijnck@mckinsey.com>
This PR add a Gitpod configuration file that makes it much easier to develop on this repo using Gitpod. Updates to contributing guide to follow in a separate PR.
What is Gitpod?
Quoting the Gitpod website:
Basically it gives you a way of spinning up an ephemeral dev environment on the cloud. I have found this to be incredibly useful and wish to share the joy with everyone.
Why would I want to use Gitpod on Kedro?
There are many use cases, but the most obvious one is that it massively streamlines the process for open source contributors. Following our current development setup guidelines requires a certain level of expertise and is time-consuming (
make install-test-requirements
takes 10+ minutes for me locally).With Gitpod, a contributor only needs to click one button to launch in a couple of minutes an environment that includes:
I'm a maintainer who already has a local development environment setup. Should I still be interested in Gitpod?
Absolutely. I still do most of my development locally in PyCharm but find Gitpod very valuable for doing small tasks while minimising disruption to my local workflow. I use it pretty much every day for the following:
merge-main-to-develop
More generally, Gitpod is very useful because it provides a clean environment and hence a good source of truth:
It's also worth noting that the Gitpod environment is much faster than my local one (e.g.
make e2e-test
runs in about half the time).✨ Actually it's also possible to use the Gitpod environment from your own local IDE! This means you get all the advantages of the ephemeral dev environment but can still use the editor you like with the keyboard shortcuts etc. that you're used to. I've tried this with PyCharm and it was a bit clunky (they're still working on it apparently); with VS Code it was super slick and I actually couldn't tell I was using a remote container at all. ✨
How much does it cost?
Nothing! It's completely free to us and to the users. On the default free plan you get 50 hours per month. If you're a professional Kedro maintainer then you can apply to get professional open source membership which gives you an unlimited number of hours per month.
Tips
gitpod.io/#
. The browser bookmarklet or browser extension make it even easiermake build-docs
, the easiest way is to runpython -m http.server -d docs/build/html
. This will open the HTML up in your browserChecklist
RELEASE.md
file