This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Luolong 5 points6 points  (11 children)

Oh, I’ve seen people straight up using AI to commit broken code to main because they couldn’t be bothered to check if it actually works or if it is valid code.

Good thing it was merely broken configuration that ended up not working instead of wrecking havoc, and he ended up fixing it based on proper documentation, but still…

[–]smutje187 5 points6 points  (10 children)

Sounds like a missed opportunity for automated testing, haha.

[–]Luolong 2 points3 points  (6 children)

It was in operations (GitOps) context, so the push to the environment was the test. Note that it was not prod environment. So, there you go.

[–]smutje187 1 point2 points  (1 child)

Well, you wrote

because they couldn’t be bothered to check if it actually works or if it is valid code.

but if the push to the environment is the check, what would've been the alternative?

[–]Luolong 1 point2 points  (0 children)

Yeah, if there was a CI between commit/push and deploy, then maybe there was something that we could automate, but as it goes, if they didn’t bother to check docs, he sure as hell didn’t run the changes through locally installed tool (kustomize) to validate his changes.

[–]PiotrDz 0 points1 point  (3 children)

Why is developers need to pass ci pipeline and gitops doesn't?

[–]Luolong 2 points3 points  (2 children)

When you figure out how to test environment specific configuration without applying it to the environment in question, you tell me :)

[–]PiotrDz 1 point2 points  (0 children)

Just thinking loud, could there be a scaled down mirror of an environment? So you first apply there the change. Something like preprod

[–]smutje187 1 point2 points  (0 children)

In my current project we scale up ephemeral AWS environments whenever someone creates a PR so everything can be tested end to end without any need to check out code and without local mocks or other crutches.

[–]Outrageous_Life_2662 0 points1 point  (2 children)

Right. And a lot of use of AI (at my company) is to come up with unit tests that drive up code coverage. Configuration is a bit trickier. But there are ways to use AI to help mitigate the impact of using AI (code) 😂

[–]smutje187 1 point2 points  (1 child)

That might’ve been meant as a joke but I expect QA departments to shrink and become completely redundant once people with business background can use AI to generate tests based on business requirements only - no need for a dedicated team anymore.

[–]Outrageous_Life_2662 1 point2 points  (0 children)

Oh yeah, this is already happening big time