• 0 Posts
  • 282 Comments
Joined 2 years ago
cake
Cake day: August 8th, 2023

help-circle


  • A repo dedicated to non-unit-test tests would be the best way to go. No need to pollute your main code repo with orders of magnitude more code and junk than the actual application.

    That said, from what I understand of the exploit, it could have been avoided by having packaging and testing run in different environments (I could be wrong here, I’ve only given the explanation a cursory look). The tests modified the code that got released. Tests rightly shouldn’t be constrained by other demands (like specific versions of libraries that may be shared between the test and build steps, for example), and the deploy/build step shouldn’t have to work around whatever side effects the tests might create. Containers are easy to spin up.

    Keeping them separate helps. Sure, you could do folders on the same repo, but test repos are usually huge compared to code repos (in my experience) and it’s nicer to work with a repo that keeps its focus tight.

    It’s comically dumb to assume all tests are equal and should absolutely live in the same repo as the code they test, when writing tests that function multiple codebases is trivial, necessary, and ubiquitous.


  • It’s not uncommon to keep example bad data around for regression to run against, and I imagine that’s not the only example in a compression library, but I’d definitely consider that a level of testing above unittests, and would not include it in the main repo. Tests that verify behavior at run time, either when interacting with the user, integrating with other software or services, or after being packaged, belong elsewhere. In summary, this is lazy.












  • They were first because no one else tried. It’s that simple. Companies have been dicking around for decades with the hybrids, electric assist, alternate fuels, etc., and no one went whole hog before Tesla. Then* every auto maker on the planet started rushing to catch up.

    Even if you discount Tesla’s early lead and fast forward to 2017 when the Model 3 went on sale and GM was offering what appeared to be real competition in the Bolt, by 2021 Tesla has sold over a million 3’s to GM’s 100,000. And then GM had to recall all the bolts it had ever sold because they kept catching fire.

    2019 is the same story with the Ford Mustang EV. Pretty decent, no real problems (other than their glass roof flying off sometimes…) but the model Y out sells it by hundreds of thousands, even beating Toyota one year for most sold globally. It’s the second best selling EV SUV behind the model Y. Ford sold something like 10K of them in Q3 2023. Tesla sold over 400,000 Model Y’s and 3’s that same quarter.

    The other car companies in the US at least just aren’t putting in the effort to match those numbers. They don’t want to put their money on the line.