News for hackers. Stuff that matters.
Re:We managed to speed up our CI to save 168 days of executi... by odie5533 on Tuesday May 14, 2024 @01:32AM (#40351931)
They call pytest --collect-only and parse the output before distributing it to the Github Action python matrix. I'm a little surprised pytest doesn't offer the ability to cache collection. Though a slow collection time may be an issue that should be addressed since developers must suffer it locally!
Re:We managed to speed up our CI to save 168 days of executi... by crohr on Tuesday May 14, 2024 @02:07AM (#40352111)
Any time I see engineering time spent on splitting/sharding test suites, I can't help but wonder if access to a single beefier runner (e.g. 64+ cpus) would have alleviated all that work. Also always find the duplicated setup time a bit wasteful on resources.
Re:We managed to speed up our CI to save 168 days of executi... by edude03 on Tuesday May 14, 2024 @07:54AM (#40354200)
Basically yeah. At my last company we switch from n GitHub runners to 2 128 core epyc boxes and massively (20x?) decreased our build times. A surprising thing is how much time is spent on IO to upload and restore the cache between steps that’s saved if the entire job runs on a single machine
Re:We managed to speed up our CI to save 168 days of executi... by datadrivenangel on Tuesday May 14, 2024 @09:35AM (#40355093)
Large box in the closet has always been a competitive strategy.

You have to keep your closet clean and organized or else everything is bad, but if you can, it works well.

Re:We managed to speed up our CI to save 168 days of executi... by stuaxo on Tuesday May 14, 2024 @08:27AM (#40354465)
Could do with more detail, is this using pytest xdist ?
Re:We managed to speed up our CI to save 168 days of executi... by drunkenfly on Tuesday May 14, 2024 @09:49AM (#40355214)
They mention their Github pull request with all changes.
Re:We managed to speed up our CI to save 168 days of executi... by xnx on Tuesday May 14, 2024 @10:06AM (#40355370)
Every time I see this type of story I can only think how people get rewarded for heroically/dramatically rescuing bad systems. While those who choose boring/proven technology at an earlier point, don't get recognition (or even hired in many cases).
Re:We managed to speed up our CI to save 168 days of executi... by Arcuru on Tuesday May 14, 2024 @10:47AM (#40355772)
I must be misunderstanding. Every test run was spending 3 _hours_ just discovering which tests to run 9 times?