-
Notifications
You must be signed in to change notification settings - Fork 79
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
CI Shortening #332
CI Shortening #332
Conversation
We would need to configure AWS Access key and secret key in Readthedocs |
Added a role to readthedocs, you need to assume it and use it to access the files via S3. |
2663135
to
909eabb
Compare
Added the The access keys for IAM user
As of now, I haven't been able to figure out how to setup the access keys in environment variables without making them public. Posted a stackoverflow question |
Does it work fine with those keys directly? You can also try another route, maybe there's a better way of doing it without setting the env vars public.
So essentially, setting an environment variable like We can also try this (it'll allow you using assume-role via python and boot):
You can try starting a side readthedocs sample account, it might be easier/faster |
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 see the runtime went down from 321s to 270s, and the notebook cache is working:
/home/docs/checkouts/readthedocs.org/user_builds/jupysql/checkouts/332/doc/howto/autocompletion.md: Using cached notebook: ID=9 [mystnb]
reading sources... [ 40%] howto/csv
Installing awscli from pip is taking 15s so let's move it to the doc/environment.lock.yml
file and see if that reduces runtime.
yes it does. but that's not necessarily needed if we move those to environment variables as public keys.
Setting as env vars without public is not accessible in PRs like we saw yesterday. Quoting from readthedocs documentation: |
This is causing some dependency conflicts: https://readthedocs.org/projects/jupysql/builds/19973640/ |
ok, let's revert the change and keep awscli via a pip install as you had it before. I'm still ironing out the details of these new way of installing documentation dependencies. |
Have removed the hardcoded access keys and deactivated this access key as well, while I figure out what approach can be taken for configuring the keys. |
I was trying to find other relevant approaches but haven't been able to find any yet. I have received a reply from
We already have setup an IAM user with upload/download restrictions to one bucket only. |
actions role aws install aws install aws install aws install aws install aws install aws install aws install added assumerole assumerole Revert ci changes Empty commit cache upload cache upload cache upload cache upload folder ls ls changed dir prebuild Empty commit git id git id git id version Empty commit removed logs Empty commit awscli dep lock file lock file revert revert Removed access keys; testing github actions testing github actions testing github actions testing github actions testing github actions testing github actions testing github actions revert ci changes revert ci changes
We don’t need AWS support, set the new role and we can set up readthedocs. Make sure you don't hardcode it into git or output it into the console. |
Also seems the CI is failing? |
Relates to this issue: ploomber/contributing#28 |
Describe your changes
This PR aims to shorten the docs building time in every pull request.
Issue number
Closes #X
Checklist before requesting a review
pkgmt format
📚 Documentation preview 📚: https://jupysql--332.org.readthedocs.build/en/332/