Bug 2042375 - Review Request: gpu-trace - Simple script to collect GPU traces
Summary: Review Request: gpu-trace - Simple script to collect GPU traces
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Sandro Bonazzola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE-DEADREVIEW
TreeView+ depends on / blocked
 
Reported: 2022-01-19 11:16 UTC by Dorinda
Modified: 2024-05-25 00:45 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-25 00:45:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dorinda 2022-01-19 11:16:16 UTC
Spec URL: https://copr-dist-git.fedorainfracloud.org/cgit/dorinda/gpu-trace/gpu-trace.git/plain/gpu-trace.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/dorinda/gpu-trace/fedora-rawhide-x86_64/07259430-gpu-trace/gpu-trace-2.12-1.fc41.src.rpm
Description: gpu-trace is a tool intended to aid the collection process of gpuvis traces.
Fedora Account System Username: dorinda

Comment 2 Package Review 2023-02-11 00:45:22 UTC
This is an automatic check from review-stats script.

This review request ticket hasn't been updated for some time. We're sorry
it is taking so long. If you're still interested in packaging this software
into Fedora repositories, please respond to this comment clearing the
NEEDINFO flag.

You may want to update the specfile and the src.rpm to the latest version
available and to propose a review swap on Fedora devel mailing list to increase
chances to have your package reviewed. If this is your first package and you
need a sponsor, you may want to post some informal reviews. Read more at
https://fedoraproject.org/wiki/How_to_get_sponsored_into_the_packager_group.

Without any reply, this request will shortly be considered abandoned
and will be closed.
Thank you for your patience.

Comment 3 Dorinda 2024-04-01 08:57:27 UTC
updated the spec file and srpm, here's the link to copr builds 
https://copr.fedorainfracloud.org/coprs/dorinda/gpu-trace/build/7242489/

Comment 4 Sandro Bonazzola 2024-04-03 07:49:32 UTC
(In reply to Dorinda from comment #3)
> updated the spec file and srpm, here's the link to copr builds 
> https://copr.fedorainfracloud.org/coprs/dorinda/gpu-trace/build/7242489/

Thanks Dorinda, can you please update comment #0 with the new SPEC and SRPM url?

Comment 5 Dorinda 2024-04-04 06:46:18 UTC
seems the update i made previously wasn't applied, updated now thanks :)

Comment 6 Sandro Bonazzola 2024-04-04 07:37:29 UTC
Fedora review tool is failing as the src.rpm provided is fc39 and it's looking for a fc41 build.
Can you rebuild for Rawhide and update accordingly comment #0?

Comment 7 Sandro Bonazzola 2024-04-04 10:47:04 UTC
A first issue is Source0 URL within the spec file is broken.
Could not download Source0: https://github.com/lostgoat/gpu-trace/archive/refs/tags/gpu-trace-2.12.tar.gz

The correct download address seems to be https://github.com/lostgoat/gpu-trace/archive/refs/tags/v2.12.tar.gz

Comment 8 Xavier Bachelot 2024-04-04 11:24:55 UTC
You don't need to update first comment, just post a new comment with new Spec URL: and SRPM URL: lines, this will be picked up by the fedora review bot.

Also, correct URL for Source0 is : https://github.com/lostgoat/gpu-trace/archive/v2.12/gpu-trace-2.12.tar.gz
which translates to:
Source0: https://github.com/lostgoat/gpu-trace/archive/v%{version}-%{name}-%{version}.tar.gz

See https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_git_tags

Comment 9 Xavier Bachelot 2024-04-04 11:27:46 UTC
Sorry typo above, should read:
Source0: https://github.com/lostgoat/gpu-trace/archive/v%{version}/%{name}-%{version}.tar.gz

Comment 10 Dorinda 2024-04-04 11:54:07 UTC
Spec URL: https://copr-dist-git.fedorainfracloud.org/cgit/dorinda/gpu-trace/gpu-trace.git/plain/gpu-trace.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/dorinda/gpu-trace/fedora-rawhide-x86_64/07259004-gpu-trace/gpu-trace-2.12-1.fc41.src.rpm
Description: gpu-trace is a tool intended to aid the collection process of gpuvis traces.
Fedora Account System Username: dorinda

Comment 12 Sandro Bonazzola 2024-04-05 13:22:01 UTC
Looking at the spec file, I see:

 BuildRequires:  make
 BuildRequires:  gcc  systemd-rpm-macros

But there's no need for gcc, nothing to be compiled there.

There's a SystemD unit shipped in the package but it's not properly handled within the spec file.
Please refer to: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets
on how to handle SystemD units.
I also think systemd should be in Requires.

You can also use `%_systemd_util_dir` instead of hardcoding the systemd path in `export SYSTEMD_SERVICE_PATH=/usr/lib/systemd`

Looking at the upstream code, I see calls to `sudo`, `logname`, `gpuvis`, `perf`, `trace-cmd`.
Requires on their existence are missing.

Looks like there's no package providing `gpuvis` command, perhaps you need to package that one as well?

As it brings up a rpc service socket listening on rpcServerPort = 47317 you may want to provide a firewalld service file as well to make it easy granting access to that port.

Comment 13 Package Review 2024-05-25 00:45:32 UTC
This is an automatic action taken by review-stats script.

The ticket submitter failed to clear the NEEDINFO flag in a month.
As per https://fedoraproject.org/wiki/Policy_for_stalled_package_reviews
we consider this ticket as DEADREVIEW and proceed to close it.


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