Bug 2260162

Summary: Review Request: python-memray - Memory profiler for Python applications
Product: [Fedora] Fedora Reporter: Davide Cavalca <davide>
Component: Package ReviewAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ngompa13, package-review
Target Milestone: ---Flags: ngompa13: fedora-review+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://bloomberg.github.io/memray/
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-05 18:21:27 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:

Description Davide Cavalca 2024-01-24 18:19:12 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray-1.11.0-1.fc40.src.rpm

Description:
Memray is a memory profiler for Python. It can track memory allocations in
Python code, in native extension modules, and in the Python interpreter itself.
It can generate several different types of reports to help you analyze the
captured memory usage data. While commonly used as a CLI tool, it can also be
used as a library to perform more fine-grained profiling tasks.

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2024-01-24 18:19:14 UTC
This package built on koji:  https://koji.fedoraproject.org/koji/taskinfo?taskID=112283695

Comment 2 Neal Gompa 2024-01-24 18:22:44 UTC
Taking this review.

Comment 3 Fedora Review Service 2024-01-24 18:35:37 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6947487
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2260162-python-memray/fedora-rawhide-x86_64/06947487-python-memray/fedora-review/review.txt

Found issues:

- python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/alloc.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/compat.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/elf_utils.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/exceptions.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/frame_tree.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/hooks.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/linker_shenanigans.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/logging.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/lz4_stream.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/macho_utils.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/native_resolver.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/python_helpers.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/record_reader.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/record_writer.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/records.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/sink.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/snapshot.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/socket_reader_thread.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/source.h python3-memray : /usr/lib64/python3.12/site-packages/memray/_memray/tracking_api.h 
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_devel_packages
- License file furo.js.LICENSE.txt is not marked as %license
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_license_text

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 4 Davide Cavalca 2024-04-04 21:49:28 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray-1.11.0-1.fc41.src.rpm

Changelog
- declare bundled js-furo doc dependency and its license

Comment 5 Davide Cavalca 2024-04-04 21:50:26 UTC
This should take care of one warning. As for the other: it looks like memray ships the Cython sources as part of the actual package. These could theoretically be removed (and I'm investigating whether that's feasible in practice), but should otherwise be harmless.

Comment 6 Davide Cavalca 2024-04-04 22:37:04 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray-1.11.0-1.fc41.src.rpm

Changelog:
- Exclude Cython sources from the package

Comment 7 Neal Gompa 2024-04-05 04:09:30 UTC
A local fedora-review run revealed this:

Issues:
=======
- If (and only if) the source package includes the text of the license(s)
  in its own file, then that file, containing the text of the license(s)
  for the package is included in %license.
  Note: License file licenses.doctree is not marked as %license
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/LicensingGuidelines/#_license_text

I'm wondering if this is a whack-a-mole here?

Comment 8 Davide Cavalca 2024-04-05 14:45:03 UTC
Oh that comes from doctrees which is generally just cruft, I'll clobber it

Comment 9 Davide Cavalca 2024-04-05 14:48:32 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/python-memray/python-memray-1.11.0-1.fc41.src.rpm

Changelog:
- clobber doctrees and other unnecessary cruft in -doc subpackage

Comment 10 Neal Gompa 2024-04-05 17:13:00 UTC
Review notes:

* Package follows Fedora Packaging Guidelines
* Package follows Fedora Python Packaging Guidelines
* Package builds and installs
* Package licensing is correctly handled and recorded
* No serious issues from rpmlint

PACKAGE APPROVED.

Comment 11 Fedora Admin user for bugzilla script actions 2024-04-05 18:02:19 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/python-memray

Comment 12 Fedora Update System 2024-04-05 18:17:27 UTC
FEDORA-2024-46c1d43602 (python-memray-1.11.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-46c1d43602

Comment 13 Fedora Update System 2024-04-05 18:21:27 UTC
FEDORA-2024-46c1d43602 (python-memray-1.11.0-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 14 Fedora Update System 2024-04-05 19:52:53 UTC
FEDORA-2024-950238e5b4 (python-memray-1.11.0-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-950238e5b4

Comment 15 Fedora Update System 2024-04-06 01:04:35 UTC
FEDORA-2024-950238e5b4 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-950238e5b4 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-950238e5b4

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

Comment 16 Fedora Update System 2024-04-19 21:30:34 UTC
FEDORA-2024-950238e5b4 (python-memray-1.11.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.