Bug 2338952 - Review Request: rust-snpguest - Navigation utility for AMD SEV-SNP guest environment
Summary: Review Request: rust-snpguest - Navigation utility for AMD SEV-SNP guest envi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/snpguest
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-20 04:18 UTC by Tyler Fanelli
Modified: 2025-02-04 19:55 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-04 19:55:35 UTC
Type: ---
Embargoed:
crobinso: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 8552788 to 8585309 (1.10 KB, patch)
2025-01-29 19:36 UTC, Fedora Review Service
no flags Details | Diff

Description Tyler Fanelli 2025-01-20 04:18:13 UTC
Spec URL: https://raw.githubusercontent.com/tylerfanelli/rust-snpguest-f42-candidate/refs/heads/main/rust-snpguest.spec
SRPM URL: https://github.com/tylerfanelli/rust-snpguest-f42-candidate/raw/refs/heads/main/rust-snpguest-0.8.2-1.fc42.src.rpm
Description: Navigation utility for AMD SEV-SNP guest environment
Fedora Account System Username: tfanelli

Comment 1 Fedora Review Service 2025-01-20 04:20:04 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8548024
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2338952-rust-snpguest/fedora-rawhide-x86_64/08548024-rust-snpguest/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Tyler Fanelli 2025-01-20 18:02:30 UTC
Spec URL: https://raw.githubusercontent.com/tylerfanelli/rust-snpguest-f42-candidate/refs/heads/main/rust-snpguest.spec
SRPM URL: https://github.com/tylerfanelli/rust-snpguest-f42-candidate/raw/refs/heads/main/rust-snpguest-0.8.2-1.fc42.src.rpm
Description: Navigation utility for AMD SEV-SNP guest environment
Fedora Account System Username: tfanelli

Comment 3 Fedora Review Service 2025-01-20 18:09:22 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8552788
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2338952-rust-snpguest/fedora-rawhide-x86_64/08552788-rust-snpguest/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 4 Tyler Fanelli 2025-01-29 19:27:12 UTC
Spec URL: https://raw.githubusercontent.com/tylerfanelli/rust-snpguest-f42-candidate/refs/heads/main/rust-snpguest.spec
SRPM URL: https://github.com/tylerfanelli/rust-snpguest-f42-candidate/raw/refs/heads/main/rust-snpguest-0.8.2-1.fc42.src.rpm
Description: Navigation utility for AMD SEV-SNP guest environment
Fedora Account System Username: tfanelli

Comment 6 Fedora Review Service 2025-01-29 19:36:55 UTC
Created attachment 2074376 [details]
The .spec file difference from Copr build 8552788 to 8585309

Comment 7 Fedora Review Service 2025-01-29 19:36:57 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8585309
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2338952-rust-snpguest/fedora-rawhide-x86_64/08585309-rust-snpguest/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 8 Tyler Fanelli 2025-01-29 21:02:23 UTC
Spec URL: https://raw.githubusercontent.com/tylerfanelli/rust-snpguest-f42-candidate/refs/heads/main/rust-snpguest.spec
SRPM URL: https://github.com/tylerfanelli/rust-snpguest-f42-candidate/raw/refs/heads/main/rust-snpguest-0.8.2-1.fc42.src.rpm
Description: Navigation utility for AMD SEV-SNP guest environment
Fedora Account System Username: tfanelli

Comment 9 Tyler Fanelli 2025-01-29 21:03:46 UTC
Steps to generate package:
1) rust2rpm snpguest
2) Adjust license FIXME with content from ${cargo_license_summary}

Comment 11 Fedora Review Service 2025-01-29 21:13:37 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8585547
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2338952-rust-snpguest/fedora-rawhide-x86_64/08585547-rust-snpguest/fedora-review/review.txt

Found issues:

- Upstream MD5sum check error, diff is in /var/lib/copr-rpmbuild/results/rust-snpguest/diff.txt
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 12 Fedora Review Service 2025-01-29 21:14:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8585511
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2338952-rust-snpguest/fedora-rawhide-x86_64/08585511-rust-snpguest/fedora-review/review.txt

Found issues:

- Upstream MD5sum check error, diff is in /var/lib/copr-rpmbuild/results/rust-snpguest/diff.txt
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 13 Cole Robinson 2025-01-29 21:44:43 UTC
So I tried a scratch-build, but it's failing for non-x86 arches: https://kojipkgs.fedoraproject.org//work/tasks/1442/128621442/build.log
I did: koji build --scratch f42 <srpm-path>

I see you tried to cover that with supported-arches = ["x86_64"], which I thought would cover it too. But that only skips %cargo_build and %cargo_test. %cargo_install is still invoked, and that will apparently trigger %cargo_build equivalent anyways.

I _think_ supported-arches is only going to work for your case if this was a plain rust crate and not a binary crate. So I think you'll need to add a manual `ExclusiveArch: x86_64` to the spec file, like you do for the similar rust-sevctl: https://src.fedoraproject.org/rpms/rust-sevctl/blob/rawhide/f/rust-sevctl.spec#_21

Comment 15 Tyler Fanelli 2025-01-30 03:52:52 UTC
(In reply to Cole Robinson from comment #13)
> So I tried a scratch-build, but it's failing for non-x86 arches:
> https://kojipkgs.fedoraproject.org//work/tasks/1442/128621442/build.log
> I did: koji build --scratch f42 <srpm-path>
> 
> I see you tried to cover that with supported-arches = ["x86_64"], which I
> thought would cover it too. But that only skips %cargo_build and
> %cargo_test. %cargo_install is still invoked, and that will apparently
> trigger %cargo_build equivalent anyways.
> 
> I _think_ supported-arches is only going to work for your case if this was a
> plain rust crate and not a binary crate. So I think you'll need to add a
> manual `ExclusiveArch: x86_64` to the spec file, like you do for the similar
> rust-sevctl:
> https://src.fedoraproject.org/rpms/rust-sevctl/blob/rawhide/f/rust-sevctl.
> spec#_21

Yes, it seems after I added the ExclusiveArch in the spec file itself, it only builds for x86_64. I was seeing errors on scratch-build for other arches as well, but I ignored them because the build done by the review service reported success. Nonetheless, I updated the relevant files and resubmitted.

Comment 16 Cole Robinson 2025-01-30 15:17:23 UTC
Looks good to me now, setting fedora-review+

✅ package contains only permissible content
✅ package builds and installs without errors on rawhide
✅ test suite is run and all unit tests pass
✅ latest version of the crate is packaged
✅ license matches upstream specification and is acceptable for Fedora
✅ license file is included with %license in %files
✅ package complies with Rust Packaging Guidelines

Comment 17 Fedora Admin user for bugzilla script actions 2025-02-04 19:36:15 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-snpguest

Comment 18 Fedora Update System 2025-02-04 19:51:45 UTC
FEDORA-2025-efc61672c1 (rust-snpguest-0.8.2-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-efc61672c1

Comment 19 Fedora Update System 2025-02-04 19:55:35 UTC
FEDORA-2025-efc61672c1 (rust-snpguest-0.8.2-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.