Saturday, May 4

Uv conserves Home Assistant 215 calculate hours monthly

By changing pip with uv in our production images, our construct pipeline (and for that reason launching a brand-new variation) is a lot much faster. Uv is an incredibly quick Python bundle installer and resolver composed in Rust. It is established by Astral and it’s open source. Examine it out on GitHub.

In the following table, you can see that we can conserve around 5 hours of execution time on each construct.

ArchPipUVSavingsaarch641h 24m 53s5m 18s ~ 1h 20marmhf1h 52m 20s6m 2s ~ 1h 46marmv71h 26m 43s5m 28s ~ 1h 21mamd6422m 10s3m 20s ~ 19mi38617m 37s3m 11s ~ 14m

Usually, we run the develop pipeline 43 times as we produce

  • 31 nightlies (one nighttime daily)
  • 7 beta releases
  • 5 steady releases (consisting of spot ones)

In overall, we conserve around 215 hours monthly. With this enormous enhancement, we can now deliver hotfixes even much faster, as the pipeline to deliver a brand-new variation now takes around 20 minutes rather of 2.5 hours.

The 215 month-to-month conserved execution hours can be utilized by other tasks and make the CI experience for all designers and our neighborhood much better. By changing pip with uv, we enhance our sustainability by utilizing less resources to develop our images.

A huge thank you to Astral for establishing this incredible tool. Please take a look at their site and items as they provide, for instance, a “lightning” quickly linter/formatter for Python too.

» …
Learn more