Skip to content
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

Merged
merged 5 commits into from
Feb 14, 2024

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Feb 12, 2024

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.

@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Feb 12, 2024
@martinpitt martinpitt added the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Feb 12, 2024
@martinpitt
Copy link
Member Author

@allisonkarlitskaya This would be a bit more complete with also dropping the --enable-old-bridge config option. I'm happy to do that, but I don't want to step on your toes.

`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.
@martinpitt martinpitt changed the title workflows: Drop i386 unit test/container Drop obsolete unit test workflows, run unit tests in our tasks container Feb 13, 2024
@github-actions github-actions bot removed the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Feb 13, 2024
@martinpitt martinpitt added the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Feb 13, 2024
@martinpitt
Copy link
Member Author

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

Copy link
Member

@jelly jelly left a 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

@allisonkarlitskaya allisonkarlitskaya merged commit f16f1fc into main Feb 14, 2024
32 of 33 checks passed
@allisonkarlitskaya allisonkarlitskaya deleted the unit-tests branch February 14, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants