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

webui: Stop pinning cockpit package versions, support testing against a cockpit PR #5234

Merged
merged 5 commits into from
Oct 9, 2023

Conversation

martinpitt
Copy link
Contributor

@martinpitt martinpitt commented Oct 6, 2023

We need to test the real distro, not what it was like 3 months ago. This will pave the way for gating cockpit changes on anaconda's tests (https://issues.redhat.com/browse/COCKPIT-1062), which is supported through a scenario now.

After this lands, I'll teach cockpit's CI to run anaconda's tests with the PR's cockpit code, to make sure cockpit changes don't break anaconda.

We need to test the real distro, not what it was like 3 months ago. This
will pave the way for gating cockpit changes on anaconda's tests
(https://issues.redhat.com/browse/COCKPIT-1062).

But still keep pinning firefox from commit 546cacc. Add a bug
reference.

This reverts commit 72ef923.
@martinpitt martinpitt marked this pull request as ready for review October 9, 2023 05:12
Enumerating the RPMs in prepare-updates-img is error-prone and
redundant: `build-rpms` already only downloads selected RPMs, and we
already install all of anaconda's built RPMs anyway (all of them start
with "anaconda-").

This will make the installation more robust when the set of RPMs becomes
more dynamic.
The three downloaded RPMs are tiny, and even the dnf metadata download
should not take that long. If your system is too slow to download a few
MB in 5 minutes, then it's not going to be able to download the large VM
images.

This avoids stalling the test for half an hour if the download hangs,
let it fail faster instead.
We want to run Anaconda's tests in Cockpit PRs to ensure that changes to
the bridge or the storage page don't break anaconda
(https://issues.redhat.com/browse/COCKPIT-1062).

For that, we need to be able to run the tests against a Cockpit COPR
build instead of its rawhide RPMs. Support this via a
`cockpit-pr-N` test scenario.
We will soon move from blivet-gui to cockpit's Storage page. This still
requires some work, but already install it so that we can start writing
integration tests, and keep them working via running Anaconda's tests in
cockpit PRs.

https://issues.redhat.com/browse/COCKPIT-1065
@martinpitt
Copy link
Contributor Author

With this out of the way (tests passed), let's add testing against a cockpit PR and some extra cleanups.

@martinpitt martinpitt changed the title Revert "webui: pin down cockpit-* packages versions for gating purposes" webui: Stop pinning cockpit package versions, support testing against a cockpit PR Oct 9, 2023
@martinpitt
Copy link
Contributor Author

martinpitt commented Oct 9, 2023

While the standard run now installs current cockpit from rawhide:

(1/5): cockpit-bridge-302-1.fc40.x86_64.rpm     720 kB/s | 568 kB     00:00    

the cockpit-pr-19453 run installs the COPR:

(1/5): cockpit-bridge-302-1.2023100620535420630 2.1 MB/s | 528 kB     00:00    
(2/5): cockpit-storaged-302-1.20231006205354206 3.0 MB/s | 899 kB     00:00    
(3/5): cockpit-ws-302-1.20231006205354206308.pr 2.8 MB/s | 911 kB     00:00    

Note that this run was just for demo purposes -- of course this scenario would run in a cockpit PR, not an anaconda one.

@martinpitt
Copy link
Contributor Author

@KKoukiou Ready for reviewing now. Thanks in advance!

@KKoukiou KKoukiou self-requested a review October 9, 2023 06:49
Copy link
Contributor

@KKoukiou KKoukiou left a comment

Choose a reason for hiding this comment

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

Very clean solution. Thanks for the cleanups as well!

@KKoukiou
Copy link
Contributor

KKoukiou commented Oct 9, 2023

/kickstart-test --waive webui only

@KKoukiou KKoukiou merged commit 363668e into rhinstaller:master Oct 9, 2023
18 checks passed
@martinpitt martinpitt deleted the stop-pinning-cockpit branch October 9, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants