Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Rebuild & rename aht-dummy rpm to coreos-dummy #4098

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

aaradhak
Copy link
Member

@aaradhak aaradhak commented May 8, 2025

Resolves issues related to the dummy RPM used in kola tests
(ostree.unlock, ostree.hotfix) which failed with a "no digest"
error after a system rpm upgrade (to rpm 5.99.90-2.fc43).

Changes in this commit:

  • Renamed aht-dummy.spec to coreos-dummy.spec and rebuilt the rpm.
  • Updated the rpm 'Name' tag within the spec file to coreos-dummy.
  • This addresses the outdated "aht-dummy" naming as used in Atomic Host
    repository which is no longer active

Ref: coreos/fedora-coreos-tracker#1929

@aaradhak aaradhak changed the title Change aht-dummy rpm test Replace aht-dummy rpm epel-release-latest rpm May 8, 2025
mantle/kola/tests/ostree/unlock.go Outdated Show resolved Hide resolved
"verification": {
"hash": "sha512-da29ae637b30647cab2386a2ce6b4223c3ad7120ae8dd32d9ce275f26a11946400bba0b86f6feabb9fb83622856ef39f8cecf14b4975638c4d8c0cf33b0f7b26"
"hash": "sha512-265ab9d1e4a5dd1b0277b9c014fa72ba4cced7bad2796d89a89b303bb233545dc9fe41917da6339c60776b1abb0281317ebea760c0f8e70916f73830d0eca10f"
Copy link
Member

Choose a reason for hiding this comment

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

we might have to update this periodically. Maybe it would be better to not include it?

@jlebon WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think that aspect is relevant to the test, so SGTM.

Copy link
Member

Choose a reason for hiding this comment

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

@aaradhak - drop the verification section here since we don't want this to fail if the RPM gets updated.

mantle/kola/tests/rpmostree/deployments.go Show resolved Hide resolved
var ahtRpmPath = "/var/home/core/aht-dummy.rpm"
var installPkgName = "aht-dummy-1.0-1.noarch"
var installBinName = "aht-dummy"
var epelRpmPath = "/var/home/core/epel-release-latest-9.noarch.rpm"
Copy link
Member

Choose a reason for hiding this comment

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

we need to update the sudo rpm-ostree install below to use this variable.

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 updated it

rpmUrl string = "https://raw.githubusercontent.com/projectatomic/atomic-host-tests/master/rpm/aht-dummy-1.0-1.noarch.rpm"
rpmName string = "aht-dummy"
rpmUrl string = "https://dl.fedoraproject.org/pub/epel/"
rpmName string = "epel-release"
)
Copy link
Member

@dustymabe dustymabe May 13, 2025

Choose a reason for hiding this comment

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

you'll probably need to remove the command -v tests below because this RPM doesn't provide any binaries.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed the unnecessary binary related variables

mantle/kola/tests/rpmostree/deployments.go Outdated Show resolved Hide resolved
var installPkgName = "aht-dummy-1.0-1.noarch"
var installBinName = "aht-dummy"
var epelRpmPath = "/var/home/core/epel-release-latest-9.noarch.rpm"
var installPkgName = "epel-release-latest-9.noarch.rpm"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var installPkgName = "epel-release-latest-9.noarch.rpm"
var installPkgName = "epel-release"

The name of the RPM is epel-release

@dustymabe
Copy link
Member

Please rebase this on top of latest :main when you do a new upload here.

@aaradhak aaradhak requested a review from dustymabe May 13, 2025 19:45
@aaradhak aaradhak force-pushed the ostreehotfix branch 3 times, most recently from 06db570 to 01d0339 Compare May 13, 2025 20:05
@aaradhak aaradhak changed the title Replace aht-dummy rpm epel-release-latest rpm Replace aht-dummy with epel-release-latest rpm May 13, 2025
@aaradhak
Copy link
Member Author

aaradhak commented May 14, 2025

We are getting a CI error with epel-release-9-10.el9.noarch.rpm - its a dependency error. May be we should try with a different epel-release rpm version ? I will try to see if epel-release-latest-8.noarch.rpm makes a difference

CI error :

[2025-05-14T21:04:54.608Z]     --- FAIL: ostree.unlock/install (0.20s)

[2025-05-14T21:04:54.608Z]             cluster.go:151: warning: /var/tmp/rpm-tmp.u8TtqM: Header V4 RSA/SHA256 Signature, key ID 3228467c: NOKEY

[2025-05-14T21:04:54.608Z]             cluster.go:151: error: Failed dependencies:

[2025-05-14T21:04:54.608Z]             cluster.go:151: 	redhat-release >= 9 is needed by epel-release-9-10.el9.noarch

[2025-05-14T21:04:54.608Z]             cluster.go:151: 	fedora-release conflicts with epel-release-9-10.el9.noarch

[2025-05-14T21:04:54.608Z]             unlock.go:147: Failed to install RPM: Process exited with status 1

@aaradhak
Copy link
Member Author

I dont think epel-release-latest-8.noarch.rpm makes a difference here.

[2025-05-14T22:13:10.481Z]     --- FAIL: ostree.unlock/install (0.23s)

[2025-05-14T22:13:10.481Z]             cluster.go:151: warning: /var/tmp/rpm-tmp.qPkyTE: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY

[2025-05-14T22:13:10.481Z]             cluster.go:151: error: Failed dependencies:

[2025-05-14T22:13:10.481Z]             cluster.go:151: 	redhat-release >= 8 is needed by epel-release-8-22.el8.noarch

[2025-05-14T22:13:10.481Z]             cluster.go:151: 	fedora-release conflicts with epel-release-8-22.el8.noarch

[2025-05-14T22:13:10.481Z]             unlock.go:147: Failed to install RPM: Process exited with status 1

@@ -44,8 +44,8 @@ func init() {
}

var (
rpmUrl string = "https://raw.githubusercontent.com/projectatomic/atomic-host-tests/master/rpm/aht-dummy-1.0-1.noarch.rpm"
rpmName string = "aht-dummy"
rpmUrl string = "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm"
Copy link
Member

Choose a reason for hiding this comment

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

You can't just use the rawhide RPM on F42 (testing-devel) so you'd have to conditionalize everything. I'd say at this point let's just try to build the dummy rpm again in a new dedicated repo for that purpose.

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 see, I tried with the rawhide rpm as this failure is happening in rawhide branch as well. I have made a new repo for aht-dummy-rpm and rebuilt the rpm. I will make the update here and try again

@aaradhak
Copy link
Member Author

With the rpm-fusion-rawhide pkg , looks like it it is dependent on another pkg. The kola tests failed because it attempted to install rpm-fusion package that has a dependency system-release(43)

@dustymabe
Copy link
Member

With the rpm-fusion-rawhide pkg , looks like it it is dependent on another pkg. The kola tests failed because it attempted to install rpm-fusion package that has a dependency system-release(43)

Yes. By design the current rawhide package will only work on Fedora 43 (rawhide is currently Fedora 43).

@aaradhak
Copy link
Member Author

With the rpm-fusion-rawhide pkg , looks like it it is dependent on another pkg. The kola tests failed because it attempted to install rpm-fusion package that has a dependency system-release(43)

Yes. By design the current rawhide package will only work on Fedora 43 (rawhide is currently Fedora 43).

Do we need to look for a pkg without any dependency?

@dustymabe
Copy link
Member

Do we need to look for a pkg without any dependency?

Either that (i.e. find a package that works everywhere, which will probably only find if we build it) or dynamically update the test based on the target we are testing against.

At this point I'm voting we revive the dummy package.

@aaradhak
Copy link
Member Author

ok, I will look into adding the aht-dummy pkg by creating a new repo.

@aaradhak
Copy link
Member Author

Created a new aht-dummy-repo and updated the aht-dummy-rpm build

@dustymabe
Copy link
Member

Created a new aht-dummy-repo and updated the aht-dummy-rpm build

Sorry to bikeshed on the name.. Could we give it a more descriptive name now?

  • aht stands for "Atomic Host Tests" and Atomic Host is dead, so the name doesn't make much sense anymore either.
  • The word repo could be confusing too, because this doesn't actually host a yum repo. It's just the RPM file.

WDYT about renaming the git repo (which should be easy to do) to: coreos-dummy-rpm?

@aaradhak aaradhak requested a review from dustymabe May 29, 2025 16:21
@aaradhak
Copy link
Member Author

Created a new aht-dummy-repo and updated the aht-dummy-rpm build

Sorry to bikeshed on the name.. Could we give it a more descriptive name now?

  • aht stands for "Atomic Host Tests" and Atomic Host is dead, so the name doesn't make much sense anymore either.
  • The word repo could be confusing too, because this doesn't actually host a yum repo. It's just the RPM file.

WDYT about renaming the git repo (which should be easy to do) to: coreos-dummy-rpm?

Sure, I can make that change in the name

@aaradhak
Copy link
Member Author

@dustymabe I have updated the repo name ro coreos-dummy-rpm https://github.com/coreos/coreos-dummy-rpm , I have created a release tag too for this - https://github.com/coreos/coreos-dummy-rpm/releases/tag/v1.0.0

@dustymabe
Copy link
Member

@dustymabe I have updated the repo name ro coreos-dummy-rpm https://github.com/coreos/coreos-dummy-rpm , I have created a release tag too for this - https://github.com/coreos/coreos-dummy-rpm/releases/tag/v1.0.0

Nice. So here's what I would do next:

  • rename the actual spec file (and also the name inside the spec file) to coreos-dummy instead of aht-dummy.

The following could be done, but it's optional as it provides only marginal benefit/gain:

  • delete the actual *rpm file from git
  • commit that and tag it with v2.0.0
  • build the RPM and then attach the .rpm file to the v2.0.0 release (i.e. edit the release and attach binaries to it).

@aaradhak aaradhak changed the title Replace aht-dummy with epel-release-latest rpm Replace aht-dummy with coreos-dummy rpm May 29, 2025
Resolves issues related to the dummy RPM used in kola tests
(ostree.unlock, ostree.hotfix) which failed with a "no digest"
error after a system rpm upgrade (to rpm 5.99.90-2.fc43).

Changes in this commit:
- Renamed aht-dummy.spec to coreos-dummy.spec and rebuilt the rpm.
- Updated the rpm 'Name' tag within the spec file to coreos-dummy.
- This addresses the outdated "aht-dummy" naming as used in Atomic Host
  repository which is no longer active
@aaradhak aaradhak changed the title Replace aht-dummy with coreos-dummy rpm Rebuild & rename aht-dummy rpm to coreos-dummy May 29, 2025
@aaradhak
Copy link
Member Author

I have updated the spec file to carry the name coreos-dummy instead of aht-dummy. I have also built the rpm again and updated the release to v2.0.0 - https://github.com/coreos/coreos-dummy-rpm/releases/tag/V2.0.0

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@dustymabe
Copy link
Member

Thanks for working on this!

@dustymabe dustymabe merged commit 9f53ced into coreos:main May 30, 2025
5 checks passed
aaradhak added a commit to aaradhak/fedora-coreos-config that referenced this pull request May 30, 2025
The fix for kola tests (ostree.unlock, ostree.hotfix) which failed with
a "no digest" error after a system rpm upgrade to rpm-5.99.90-2.fc43
has merged. We can now unpin the rpm-4.20.1-3.fc43

Ref: coreos/coreos-assembler#4098
aaradhak added a commit to coreos/fedora-coreos-config that referenced this pull request May 30, 2025
The fix for kola tests (ostree.unlock, ostree.hotfix) which failed with
a "no digest" error after a system rpm upgrade to rpm-5.99.90-2.fc43
has merged. We can now unpin the rpm-4.20.1-3.fc43

Ref: coreos/coreos-assembler#4098
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.