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

storage: Never install packages on-demand in Anaconda mode #20950

Conversation

mvollmer
Copy link
Member

See #20844

@mvollmer mvollmer force-pushed the storage-no-installation-for-the-installer branch from f7ed5a7 to 12e61ba Compare August 28, 2024 10:20
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!


disk = self.add_loopback_disk(name="loop10")

m.execute("systemctl stop stratisd && dnf remove -y stratisd stratis")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is destructive, so the test fails everywhere the second time around, and any stratis test that may run after it. Perhaps it's enough to systemctl mask the service? Or does it test for a file? If that's too hard, let's just make it destructive (but then preferably add it to an already existing destructive test)

Also, please don't use && in execute() calls. They already are set -e, and && has weird semantics.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made it destructive.

@mvollmer mvollmer force-pushed the storage-no-installation-for-the-installer branch from 12e61ba to c7f1827 Compare August 29, 2024 07:48
martinpitt
martinpitt previously approved these changes Aug 29, 2024
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Not a fan of adding lots of little destructive tests (as opposed to just tacking that onto an existing test), but let's unblock that.

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mimimi not sorted, ruff is such a nagging monster.. 😆

@mvollmer mvollmer merged commit 73fe8e1 into cockpit-project:main Aug 30, 2024
79 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants