-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop obsolete unit test workflows, run unit tests in our tasks container #20005
Conversation
4029555
to
2e2c556
Compare
@allisonkarlitskaya This would be a bit more complete with also dropping the |
`tput` requires `$TERM`. The Debian-based unit test container sets this by default, but the Fedora based cockpit/tasks container doesn't. Set it explicitly to a known-good value to make sure the test passes there.
We don't support the C bridge on this branch any more.
We won't add a lot of new C code any more, valgrinding Python code isn't very useful (or architecture specific), and more and more distributions drop i386 support. Also, we still run the unit tests during RPM package build through packit/COPR, which cover even more architectures. This paves the way for dropping the unit test container altogether in favor of running the tests in the cockpit/tasks container, once we agree on how to build a proper staging setup. Drop tools/valgrind.supp which was only relevant for i386.
It hasn't helped us in years, modern gcc has good static analysis (plus of course CodeQL and Coverity), none of our supported downstream distros care, and we are not going to add significant amounts of C code any more.
This reduces our tools like `ruff` to a single source of truth (as all our other projects already run their unit tests and linting in the tasks container). It also removes a lot of moving parts only relevant for CI. In practice, us developers run the unit tests in toolbox or our own dev machines anyway. Move building the guide in the release workflow to the tasks container as well.
2e2c556
to
5d06ef4
Compare
I did the full thing now. I don't necessarily want us to land this right now, if you'd rather want to wait for some kind of staging solution for cockpit/tasks -- but I also don't think it'll hurt much in practice. But I'm still interested in what you think of it in general @allisonkarlitskaya and @jelly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ looks good from my side
This reduces our tools like
ruff
to a single source of truth (as all our other projects already run their unit tests and linting in the tasks container). It also removes a lot of moving parts only relevant for CI. In practice, us developers run the unit tests in toolbox or our own dev machines anyway.