nxdefiant

joined 1 year ago
[–] nxdefiant@startrek.website 3 points 7 months ago* (last edited 7 months ago) (3 children)

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.

[–] nxdefiant@startrek.website 4 points 7 months ago* (last edited 7 months ago)

The worst part of it is most big companies are forcing RTO to either justify the leases they don't want to pay to break, or to satisfy tax incentives agreements they made with municipalities.

In both cases, they're deciding it's better if you pay - in time, gas, car maintenance, mental health, productivity, and stress - for their business decisions that went bad instead of paying money out of their own bloated pockets.

[–] nxdefiant@startrek.website 26 points 7 months ago* (last edited 7 months ago) (1 children)

I see a dark room of shady, hoody-wearing, code-projected-on-their-faces, typing-on-two-keyboards-at-once 90's movie style hackers. The tables are littered with empty energy drink cans and empty pill bottles.

A man walks in. Smoking a thin cigarette, covered in tattoos and dressed in the flashiest interpretation of "Yakuza Gangster" imaginable, he grunts with disgust and mutters something in Japanese as he throws the cigarette to the floor, grinding it into the carpet with his thousand dollar shoes.

Flipping on the lights with an angry flourish, he yells at the room to gather for standup.

[–] nxdefiant@startrek.website 25 points 7 months ago* (last edited 7 months ago) (6 children)

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.

[–] nxdefiant@startrek.website 2 points 7 months ago* (last edited 7 months ago)
[–] nxdefiant@startrek.website 5 points 7 months ago

You? Nothing, you're just being a good cog in a bad machine. Bossman? Rashes, but on the inside of their skin, but that's likely compounded by numerous other crimes.

[–] nxdefiant@startrek.website 2 points 7 months ago

it's ok, so are humans. Hopefully the geese win?

[–] nxdefiant@startrek.website 8 points 7 months ago

1997 FOSS was hard mode, absolutely, but compared to the paid alternatives at the time, it was only mildly worse than today.

I will not be removing my rose colored glasses and will take no questions, thank you for your time.

[–] nxdefiant@startrek.website 103 points 7 months ago (9 children)

There should be secret laws you have to unlock by doing unfathomably inhumane things.

"You chased a homeless person in their own car off your completely unutilized property for no reason other than malice. You've been sentenced to 12 hours of fighting a flock of geese naked while locked in a middle school gym."

[–] nxdefiant@startrek.website 14 points 7 months ago

frog has too much chin

[–] nxdefiant@startrek.website 42 points 8 months ago (10 children)

my cat: The water has stopped moving, therefore it is poison.

view more: ‹ prev next ›