Skip to content

asdf: update asdf and all its plugins #189

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

Merged
merged 3 commits into from
Mar 21, 2023
Merged

asdf: update asdf and all its plugins #189

merged 3 commits into from
Mar 21, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Mar 9, 2023

This will allow us to be smarter about when to reshim.

With this update, it will be handled automatically by asdf and we won't require a custom chunk of code in our application:

https://github.com/readthedocs/readthedocs.org/blob/a5965129c61b9bcdff2f2098ff7ce7f8c093dc74/readthedocs/doc_builder/director.py#L373-L386

Currently, multi-lines commands that install something with pip and immediate after that, inside the multi-line command try to use the executable installed, fail because it's not automatically reshimed.

By reshiming at asdf level, this case will be solved.

Related: readthedocs/readthedocs.org#9150 (comment)
Related: asdf-community/asdf-python#136
Related: readthedocs/readthedocs.org#10103

This will allow us to be smarter about _when to reshim_.

With this update, it will be handled automatically by `asdf` and we won't
require a custom chunk of code in our application:

https://github.com/readthedocs/readthedocs.org/blob/a5965129c61b9bcdff2f2098ff7ce7f8c093dc74/readthedocs/doc_builder/director.py#L373-L386

Currently, multi-lines commands that install something with `pip` and immediate
after that, inside the multi-line command try to use the executable installed,
fail because it's not automatically reshimed.

By reshiming at `asdf` level, this case will be solved.

Related: readthedocs/readthedocs.org#9150 (comment)
Related: asdf-community/asdf-python#136
@humitos humitos requested review from a team and stsewd March 9, 2023 11:11
@humitos
Copy link
Member Author

humitos commented Mar 9, 2023

Once this PR gets merged, we need to re-build the Docker images and update them to Docker Hub. Besides, we should re-build the tools as well to avoid any potential incompatibilities with new -dev libraries in the newer Ubuntu images.

@humitos
Copy link
Member Author

humitos commented Mar 9, 2023

This upgrade may solve readthedocs/readthedocs.org#10108 as well, since we will be using a newer Ubuntu 22.04 patch version.

@humitos
Copy link
Member Author

humitos commented Mar 9, 2023

I created a Deploy Key from CircleCI so the tests start working again.

We need to update the AWS_ credentials on CircleCI to be able to push the resulting .tar.gz to our buckets.

@humitos
Copy link
Member Author

humitos commented Mar 9, 2023

I tested it locally after re-building the Docker image and it works great:

Screenshot_2023-03-09_12-29-00

We don't require the asdf reshim python written by the user anymore 🎉

humitos added a commit to readthedocs/readthedocs.org that referenced this pull request Mar 9, 2023
They are not needed anymore because the `reshim` happens automatically inside
each of the `asdf` plugins now.

The new version of the `asdf` and its plugin handle this in a better way than
how we are handling it here.

Requires: readthedocs/readthedocs-docker-images#189
@humitos humitos merged commit e4183c1 into main Mar 21, 2023
@humitos humitos deleted the humitos/asdf-update branch March 21, 2023 10:17
humitos added a commit that referenced this pull request Mar 21, 2023
I missed to update this file in
#189
ericholscher pushed a commit that referenced this pull request Mar 21, 2023
I missed to update this file in
#189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants