Bug 2313237

Summary: Review Request: rust-x509-parser - Parser for the X.509 v3 format (RFC 5280 certificates)
Product: [Fedora] Fedora Reporter: Davide Cavalca <davide>
Component: Package ReviewAssignee: Fabio Valentini <decathorpe>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, package-review, tfanelli
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---Flags: decathorpe: fedora-review+
Hardware: Unspecified   
OS: Unspecified   
URL: https://crates.io/crates/x509-parser
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-19 18:34:58 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: 2312638, 2312640, 2330124    
Bug Blocks:    
Attachments:
Description Flags
The .spec file difference from Copr build 8491609 to 8546983 none

Description Davide Cavalca 2024-09-18 11:25:22 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/rust-x509-parser/rust-x509-parser.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/rust-x509-parser/rust-x509-parser-0.16.0-1.fc42.src.rpm

Description:
Parser for the X.509 v3 format (RFC 5280 certificates).

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2024-09-18 11:25:59 UTC
$ cat rust2rpm.toml 
[tests]
run = ["none"]
comments = ["Tests fail to build due to missing artifacts"]

Comment 2 Fedora Review Service 2024-09-18 11:27:38 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8030619
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2313237-rust-x509-parser/fedora-rawhide-x86_64/08030619-rust-x509-parser/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 Fabio Valentini 2024-12-13 13:50:31 UTC
*** Bug 2332216 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Review Service 2025-01-07 17:06:42 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8481939
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2313237-rust-x509-parser/fedora-rawhide-x86_64/08481939-rust-x509-parser/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 6 Tyler Fanelli 2025-01-07 19:51:48 UTC
Missing rust-der-parser, but it seems that's been pushed to F42: https://bugzilla.redhat.com/show_bug.cgi?id=2312638#c6

Comment 7 Davide Cavalca 2025-01-09 01:34:53 UTC
[fedora-review-service-build]

Comment 8 Fedora Review Service 2025-01-09 01:46:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8491609
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2313237-rust-x509-parser/fedora-rawhide-x86_64/08491609-rust-x509-parser/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 2025-01-09 15:39:28 UTC
Package looks almost good to me.

The package.include setting in Cargo.toml is very strange though:
I'm quite sure that `.gitignore` and `.travis.yml` should just be dropped from that list.
`Cargo.toml` is always included in published crates, so there's no need to list it explicitly.

And I'm a bit confused why the tests fail with missing files, when there's a lot of stuff in "assets" that *does* look like test data.
Are the paths in test code just wrong?

Can the "assets" directory be excluded from packaged files, if it's indeed just test input files?

Comment 10 Tyler Fanelli 2025-01-17 03:41:40 UTC
Polite ping -- is there any update here? This dependency is preventing me from packaging one of my projects.

Comment 11 Davide Cavalca 2025-01-19 17:11:50 UTC
> And I'm a bit confused why the tests fail with missing files, when there's a lot of stuff in "assets" that *does* look like test data.
> Are the paths in test code just wrong?

It looks like some of the tests are looking for certs that aren't included in the packaged crate :(

Comment 13 Davide Cavalca 2025-01-19 17:18:17 UTC
$ cat rust2rpm.toml 
[package]
cargo-toml-patch-comments = ["Drop unnecessary files"]

[tests]
run = ["none"]
comments = ["Tests fail to build due to missing artifacts"]

Comment 14 Fedora Review Service 2025-01-19 17:28:47 UTC
Created attachment 2066702 [details]
The .spec file difference from Copr build 8491609 to 8546983

Comment 15 Fedora Review Service 2025-01-19 17:28:50 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8546983
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2313237-rust-x509-parser/fedora-rawhide-x86_64/08546983-rust-x509-parser/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 16 Fabio Valentini 2025-01-19 17:40:34 UTC
Thanks for checking, looks good to me!

===

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 (disabled with justification)
✅ latest version of the crate is packaged
✅ license matches upstream specification and is acceptable for Fedora
✅ license files are 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 (*NOT* pre-release 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 17 Fedora Admin user for bugzilla script actions 2025-01-19 17:53:49 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-x509-parser

Comment 18 Fedora Update System 2025-01-19 18:02:45 UTC
FEDORA-2025-70013f4e40 (rust-x509-parser-0.16.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-70013f4e40

Comment 19 Fedora Update System 2025-01-19 18:34:58 UTC
FEDORA-2025-70013f4e40 (rust-x509-parser-0.16.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.