Bug 2283679 - Review Request: rust-quanta - High-speed timing library
Summary: Review Request: rust-quanta - High-speed timing library
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/quanta
Whiteboard:
Depends On: 2283684 2283685
Blocks: 2277964 2283677 2283678 2302678
TreeView+ depends on / blocked
 
Reported: 2024-05-28 19:43 UTC by Cristian Le
Modified: 2024-10-11 01:31 UTC (History)
3 users (show)

Fixed In Version: rust-quanta-0.12.3-1.fc42
Clone Of:
Environment:
Last Closed: 2024-09-12 17:26:46 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Description Cristian Le 2024-05-28 19:43:49 UTC
Spec URL: https://github.com/LecrisUT/rust-metris-rpmspec/raw/18bb026c3e9d3de4cfbc75fe92babea0b3506a81/rust-quanta/rust-quanta.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/packit/LecrisUT-rust-metris-rpmspec-main/fedora-rawhide-x86_64/07500436-rust-quanta/rust-quanta-0.12.3-1.fc41.src.rpm
Description: Dependency for `rust-metrics-exporter-prometheus` -> `atuin`
Fedora Account System Username: lecris

rust2rpm.toml
```toml
[requires]
build = [
    "tomcli",
]

[scripts.prep]
post = [
    "# Do not depend on criterion; it is needed only for benchmarks.",
    "tomcli set Cargo.toml del dev-dependencies.criterion",
]

[[package.extra-patches]]
comments = [
    "Bump average dependency",
]
file = "quanta-0.12.3-Bump_dependency.diff"
number = 10

[tests]
skip = [
    "instant::tests::test_recent",
]
comments = [
    "Flaky test"
]
```

Comment 1 Cristian Le 2024-07-05 13:30:46 UTC
Spec URL: https://github.com/LecrisUT/rust-metris-rpmspec/raw/83dda26784f2c9cbe603473e461adaec238ddb34/rust-quanta/rust-quanta.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/packit/LecrisUT-rust-metris-rpmspec-main/fedora-rawhide-x86_64/07711187-rust-quanta/rust-quanta-0.12.3-1.fc41.src.rpm

rust2rpm.toml
```toml
[requires]
build = [
    "tomcli",
]

[scripts.prep]
post = [
    "# Do not depend on criterion; it is needed only for benchmarks.",
    "tomcli set Cargo.toml del dev-dependencies.criterion",
]

[package]
cargo-toml-patch-comments = [
    "- Bump average dependency",
]

[tests]
skip = [
    "instant::tests::test_recent",
]
comments = [
    "Flaky test"
]
```

quanta-fix-metadata.diff
```
--- quanta-0.12.3/Cargo.toml	1970-01-01T00:00:01+00:00
+++ quanta-0.12.3/Cargo.toml	2024-07-05T12:30:39.721330+00:00
@@ -53,7 +53,7 @@
 default-features = false
 
 [dev-dependencies.average]
-version = "0.14"
+version = "0.15"
 
 [dev-dependencies.criterion]
 version = "=0.3.3"
```

Comment 2 Fedora Review Service 2024-07-06 06:06:52 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7712630
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2283679-rust-quanta/fedora-rawhide-x86_64/07712630-rust-quanta/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 3 Fedora Review Service 2024-07-06 10:37:51 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7712857
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2283679-rust-quanta/fedora-rawhide-x86_64/07712857-rust-quanta/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 4 Cristian Le 2024-07-08 09:56:09 UTC
Fixed some additional dependencies

---

Spec URL: https://github.com/LecrisUT/rust-metris-rpmspec/raw/2fb7b40a6528b380d0cbf973a7f10276b2cf2ddc/rust-quanta/rust-quanta.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/packit/LecrisUT-rust-metris-rpmspec-main/fedora-rawhide-x86_64/07716587-rust-quanta/rust-quanta-0.12.3-1.fc41.src.rpm

rust2rpm.toml
```toml
[features]
enable = [
    "default",
    "prost",
]

[requires]
build = [
    "tomcli",
]

[scripts.prep]
post = [
    "# Do not depend on criterion; it is needed only for benchmarks.",
    "tomcli set Cargo.toml del dev-dependencies.criterion",
]

[package]
cargo-toml-patch-comments = [
    "- Bump average dependency",
    "- Bump prost-types dependency",
    "- Remove flaky_tests from default feature",
]

[tests]
skip = [
    "instant::tests::test_recent",
]
comments = [
    "More flaky tests"
]
```

quanta-fix-metadata.diff
```
--- quanta-0.12.3/Cargo.toml	1970-01-01T00:00:01+00:00
+++ quanta-0.12.3/Cargo.toml	2024-07-08T09:35:19.402094+00:00
@@ -48,18 +48,18 @@
 version = "1.4"
 
 [dependencies.prost-types]
-version = "0.11"
+version = "0.12"
 optional = true
 default-features = false
 
 [dev-dependencies.average]
-version = "0.14"
+version = "0.15"
 
 [dev-dependencies.criterion]
 version = "=0.3.3"
 
 [features]
-default = ["flaky_tests"]
+default = []
 flaky_tests = []
 prost = ["prost-types"]
 
```

Comment 6 Cristian Le 2024-08-13 12:40:40 UTC
[fedora-review-service-build]

Comment 8 Fedora Review Service 2024-08-27 15:42:22 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7947948
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2283679-rust-quanta/fedora-rawhide-x86_64/07947948-rust-quanta/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 9 Fabio Valentini 2024-09-12 16:04:21 UTC
Some suggestions for improvements:

- submit PR to bump prost* from 0.11 to 0.13 upstream
- exclude some extraneous files from being installed (Cross.toml, release.toml, rust-toolchain.toml)

===

Package was generated with rust2rpm, simplifying the review.

✅ package contains only permissible content
✅ package builds and installs without errors on rawhide
✅ test suite is run and all unit tests pass (some tests disabled with explanation)
✅ 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

Package APPROVED.

===

Recommended post-import rust-sig tasks:

- set up package on release-monitoring.org:
  project: $crate
  homepage: https://crates.io/crates/$crate
  backend: crates.io
  version scheme: semantic
  version filter: alpha;beta;rc;pre
  distro: Fedora
  Package: rust-$crate

- add @rust-sig with "commit" access as package co-maintainer
  (should happen automatically)

- set bugzilla assignee overrides to @rust-sig (optional)

- track package in koschei for all built branches
  (should happen automatically once rust-sig is co-maintainer)

Comment 10 Cristian Le 2024-09-12 16:57:11 UTC
> submit PR to bump prost* from 0.11 to 0.13 upstream

They already have it from dependabot, but haven't responded to it in a year. Guess I can ping them about it.

> exclude some extraneous files from being installed (Cross.toml, release.toml, rust-toolchain.toml)

Iirc last time I did that by adding a `scripts.install.pre` to `rm` those files?

Comment 11 Cristian Le 2024-09-12 16:59:04 UTC
Thank you for the review, Fabio

Comment 12 Fedora Admin user for bugzilla script actions 2024-09-12 16:59:16 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-quanta

Comment 14 Fedora Update System 2024-09-12 17:23:23 UTC
FEDORA-2024-4e8e2736b6 (rust-quanta-0.12.3-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4e8e2736b6

Comment 15 Fedora Update System 2024-09-12 17:26:46 UTC
FEDORA-2024-4e8e2736b6 (rust-quanta-0.12.3-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-10-08 08:42:42 UTC
FEDORA-2024-a66aee315d (rust-quanta-0.12.3-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a66aee315d

Comment 17 Fedora Update System 2024-10-08 08:42:43 UTC
FEDORA-2024-4c3e716b20 (rust-quanta-0.12.3-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4c3e716b20

Comment 18 Fedora Update System 2024-10-08 08:42:43 UTC
FEDORA-2024-9ffba44e1e (rust-quanta-0.12.3-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-9ffba44e1e

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

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

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

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

Comment 21 Fedora Update System 2024-10-09 02:38:23 UTC
FEDORA-2024-9ffba44e1e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-9ffba44e1e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9ffba44e1e

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

Comment 22 Fedora Update System 2024-10-10 21:27:19 UTC
FEDORA-2024-4c3e716b20 (rust-quanta-0.12.3-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2024-10-10 21:28:44 UTC
FEDORA-2024-a66aee315d (rust-quanta-0.12.3-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-11 01:31:23 UTC
FEDORA-2024-9ffba44e1e (rust-quanta-0.12.3-1.fc41) has been pushed to the Fedora 41 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.