Bug 2294109

Summary: Review Request: golang-github-nvidia-nvlib - A collection of useful Go libraries for use with NVIDIA GPU management tools
Product: [Fedora] Fedora Reporter: Debarshi Ray <debarshir>
Component: Package ReviewAssignee: Mikel Olasagasti Uranga <mikel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mikel, package-review
Target Milestone: ---Flags: mikel: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-02 01:31:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2293636    
Bug Blocks:    

Description Debarshi Ray 2024-06-25 00:47:55 UTC
Spec URL: https://rishi.fedorapeople.org/golang-github-nvidia-nvlib.spec
SRPM URL: https://rishi.fedorapeople.org/golang-github-nvidia-nvlib-devel-0.2.0-1.fc38.noarch.rpm

Description:

A collection of useful Go libraries for use with NVIDIA GPU management tools.

This package contains the source code needed for building packages that
reference the following Go import paths:
 – github.com/NVIDIA/go-nvlib


Fedora Account System Username: rishi

Comment 1 Fedora Review Service 2024-06-25 00:48:23 UTC
Cannot find any valid SRPM URL for this ticket. Common causes are:

- You didn't specify `SRPM URL: ...` in the ticket description
  or any of your comments
- The URL schema isn't HTTP or HTTPS
- The SRPM package linked in your URL doesn't match the package name specified
  in the ticket summary


---
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 3 Debarshi Ray 2024-06-25 00:55:28 UTC
The latest release of the github.com/NVIDIA/go-nvlib module is v0.6.0.  However, anything more recent than v0.2.0 is not compatible with the latest v1.15.0 release of github.com/NVIDIA/nvidia-container-toolkit.  That's why I chose to package only v0.2.0 for the time being.  We can update once there's a newer release of the github.com/NVIDIA/nvidia-container-toolkit module.

Comment 4 Debarshi Ray 2024-06-25 00:58:47 UTC
(In reply to Debarshi Ray from comment #2)
> Spec URL: https://rishi.fedorapeople.org/golang-github-nvidia-nvlib.spec
> SRPM URL:
> https://rishi.fedorapeople.org/golang-github-nvidia-nvlib-devel-0.2.0-1.fc38.
> noarch.rpm

Damn, that's not the SRPM.

Comment 6 Fedora Review Service 2024-06-25 01:03:38 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7663311
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2294109-golang-github-nvidia-nvlib/fedora-rawhide-x86_64/07663311-golang-github-nvidia-nvlib/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 7 Debarshi Ray 2024-06-25 14:59:16 UTC
(In reply to Fedora Review Service from comment #6)
> Copr build:
> https://copr.fedorainfracloud.org/coprs/build/7663311
> (failed)
> 
> Build log:
> https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-
> review-2294109-golang-github-nvidia-nvlib/fedora-rawhide-x86_64/07663311-
> golang-github-nvidia-nvlib/builder-live.log.gz
> 
> Please make sure the package builds successfully at least for Fedora Rawhide.

The build failed with:
No match for argument: golang(github.com/NVIDIA/go-nvml/pkg/dl)
No match for argument: golang(github.com/NVIDIA/go-nvml/pkg/nvml)

That's going to be addressed by the package review of golang-github-nvidia-nvml in bug 2293636

Comment 8 Mikel Olasagasti Uranga 2024-06-29 15:44:49 UTC
> install --mode 0644 --preserve-timestamps --verbose \
>    pkg/pciids/default_pci.ids \
>    %{buildroot}%{gopath}/src/%{goipath}/pkg/pciids/
> (...)
>%{gopath}/src/%{goipath}/pkg/pciids/default_pci.ids

You can replace this with after `%global godoc`:

%global gosupfiles      pkg/pciids/default_pci.ids

Check golang-github-projectdiscovery-cdncheck.spec or golang-x-crypto.spec as example.

Comment 9 Debarshi Ray 2024-07-11 09:30:20 UTC
(In reply to Mikel Olasagasti Uranga from comment #8)
> > install --mode 0644 --preserve-timestamps --verbose \
> >    pkg/pciids/default_pci.ids \
> >    %{buildroot}%{gopath}/src/%{goipath}/pkg/pciids/
> > (...)
> >%{gopath}/src/%{goipath}/pkg/pciids/default_pci.ids
> 
> You can replace this with after `%global godoc`:
> 
> %global gosupfiles      pkg/pciids/default_pci.ids
> 
> Check golang-github-projectdiscovery-cdncheck.spec or golang-x-crypto.spec
> as example.

I haven't forgotten about this.  I got swamped wrapping up work before leaving on vacation.  So, I will pick this up once I am back on the 28th of July.

Comment 10 Debarshi Ray 2024-09-20 22:02:09 UTC
Spec URL: https://rishi.fedorapeople.org/golang-github-nvidia-nvlib.spec
SRPM URL: https://rishi.fedorapeople.org/golang-github-nvidia-nvlib-0.6.1-1.fc40.src.rpm

I updated it to the latest version of the NVIDIA stack, where everything builds together.

(In reply to Mikel Olasagasti Uranga from comment #8)
> > install --mode 0644 --preserve-timestamps --verbose \
> >    pkg/pciids/default_pci.ids \
> >    %{buildroot}%{gopath}/src/%{goipath}/pkg/pciids/
> > (...)
> >%{gopath}/src/%{goipath}/pkg/pciids/default_pci.ids
> 
> You can replace this with after `%global godoc`:
> 
> %global gosupfiles      pkg/pciids/default_pci.ids

Done.

Comment 11 Mikel Olasagasti Uranga 2024-09-21 14:48:16 UTC
Golang Package Review
==============

This package was generated using go2rpm, which simplifies the review.

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated


- [x] The latest version is packaged or packaging an earlier version is justified.
- [x] The License tag reflects the package contents and uses the correct identifiers.
- [x] The package builds successfully in mock.
- [x] Package is installable (checked by fedora-review).
- [x] There are no relevant rpmlint errors.
- [x] The package runs tests in %check.
- [x] `%goipath` is set correctly.
- [-] The package's binaries don't conflict with binaries already in the distribution. (Some Go projects include utility binaries with very generic names)
- [-] There are no `%{_bindir}/*` wildcards in %files. (go2rpm includes these by default)
- [x] The package does not use `%gometa -f` if it has dependents that still build for %ix86.
- [x] The package complies with the Golang and general Packaging Guidelines.

Package approved! On import, don't forget to do the following:

- [ ] Add the package to release-monitoring.org
- [ ] Give go-sig privileges (at least commit) on the package
- [ ] Close the review bug by referencing its ID in the rpm changelog and the Bodhi ticket.
- [ ] Consider configuring Packit service to help with maintenance

Thanks!

Comment 12 Fedora Admin user for bugzilla script actions 2024-09-23 13:32:38 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-nvidia-nvlib

Comment 14 Debarshi Ray 2024-09-23 18:21:10 UTC
(In reply to Mikel Olasagasti Uranga from comment #11)
>
> [...]
>
> Package approved! On import, don't forget to do the following:

Thanks, Mikel.
 
> - [ ] Add the package to release-monitoring.org
> - [ ] Give go-sig privileges (at least commit) on the package
> - [ ] Close the review bug by referencing its ID in the rpm changelog and
> the Bodhi ticket.
> - [ ] Consider configuring Packit service to help with maintenance

Okay, I will do those.

Comment 16 Fedora Update System 2024-09-23 19:12:25 UTC
FEDORA-2024-2f7d355591 (golang-github-nvidia-nvlib-0.6.1-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2f7d355591

Comment 17 Fedora Update System 2024-09-23 19:19:58 UTC
FEDORA-2024-dd8ef6d9f2 (golang-github-nvidia-nvlib-0.6.1-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-dd8ef6d9f2

Comment 18 Fedora Update System 2024-09-23 19:29:47 UTC
FEDORA-2024-9eaea5bc2e (golang-github-nvidia-nvlib-0.6.1-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-9eaea5bc2e

Comment 19 Fedora Update System 2024-09-24 01:46:44 UTC
FEDORA-2024-9eaea5bc2e has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-9eaea5bc2e \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9eaea5bc2e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2024-09-24 02:03:41 UTC
FEDORA-2024-dd8ef6d9f2 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-dd8ef6d9f2 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-dd8ef6d9f2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2024-09-24 19:51:28 UTC
FEDORA-2024-2f7d355591 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2f7d355591 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2f7d355591

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2024-10-02 01:31:51 UTC
FEDORA-2024-2f7d355591 (golang-github-nvidia-nvlib-0.6.1-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2024-10-02 02:58:27 UTC
FEDORA-2024-dd8ef6d9f2 (golang-github-nvidia-nvlib-0.6.1-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2024-10-02 03:51:22 UTC
FEDORA-2024-9eaea5bc2e (golang-github-nvidia-nvlib-0.6.1-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.