mcsinyx.github.io/gsoc2020/blog20200706.html

13 KiB
Raw Blame History

<html class="no-js"> <head> </head>
Raphael McSinyx

Im Not Drowning On My Own

Cold Water

Hello there! My schoolyear is coming to an end, with some final assignments and group projects left to be done. I for sure underestimated the workload of these and in the last (and probably next) few days Im drowning in work trying to meet my deadlines.

One project that might be remotely relevant is cheese-shop, which tries to manage the metadata of packages from the real Cheese Shop. Other than that, schoolwork is draining a lot of my time and I cant remember the last time I came up with something new for my GSoC project )-;

Warm Water

On the bright side, I received a lot of help and encouragement from contributors and stakeholders of pip. In the last week alone, I had five pull requests merged:

  • GH-8332: Add license requirement to _vendor/README.rst

  • GH-8320: Add utilities for parallelization

  • GH-8504: Parallelize pip list --outdated and --uptodate

  • GH-8411: Refactor operations.prepare.prepare_linked_requirement

  • GH-8467: Add utitlity to lazily acquire wheel metadata over HTTP

In addition to helping me getting my PRs merged, my mentor Pradyun Gedam also gave me my first official feedback, including what Im doing right (and wrong too!) and what I should keep doing to increase the chance of the project being successful.

GH-7819s roadmap (Danny McClanahans discoveries and works on lazy wheels) is being closely tracked by hatchs maintainter Ofek Lev, which really makes me proud and warms my heart, that what Im helping build is actually needed by the community!

Learning How To Swim

With GH-8467 and GH-8530 merged, Im now working on GH-8532 which aims to roll out the lazy wheel as the way to obtain dependency information via the CLI flag --use-feature=lazy-wheel.

GH-8532 was failing initially, despite being relatively trivial and that the commit it used to base on was passing. Surprisingly, after rebasing it on top of GH-8530, it suddenly became green mysteriously. After the first (early) review, I was able to iterate on my earlier code, which used the ambiguous exception RuntimeError.

The rest to be done is just adding some functional tests (Im pretty sure this will be either overwhelming or underwhelming) to make sure that the command-line flag is working correctly. Hopefully this can make it into the beta of the upcoming release this month.

../_images/lazy-wheel.jpg

In other news, Ive also submitted a patch improving the tests for the parallelization utilities, which was really messy as I wrote them. Better late than never!

Metaphors aside, I actually cant swim d-:

Dive Plan

After GH-8532, I think Ill try to parallelize downloads of wheels that are lazily fetched only for metadata. By the current implementation of the new resolver, for pip install, this can be injected directly between the resolution and build/installation process.

Copyright © 2018-2020, Nguyễn Gia Phong | Built with Sphinx using @pradyunsg's Furo theme.
</html>