Bug 2279010

Summary: Review Request: aws-c-http - C99 implementation of the HTTP/1.1 and HTTP/2 specifications
Product: [Fedora] Fedora Reporter: Dominik Wombacher <dominik>
Component: Package ReviewAssignee: Neal Gompa <ngompa13>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: davdunc, domwom, mhayden, ngompa13, package-review
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---Flags: ngompa13: fedora-review+
Hardware: All   
OS: Linux   
URL: https://github.com/awslabs/%{name}
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-23 15:24:29 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: 2279008, 2279009    
Bug Blocks: 2279012, 2279013    

Comment 1 Fedora Review Service 2024-05-03 22:36:02 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7403159
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2279010-aws-c-http/fedora-rawhide-x86_64/07403159-aws-c-http/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 Dominik Wombacher 2024-07-11 14:40:49 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/wombelix/aws-c-libs/fedora-rawhide-x86_64/07722282-aws-c-http/aws-c-http.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/wombelix/aws-c-libs/fedora-rawhide-x86_64/07722282-aws-c-http/aws-c-http-0.8.2-1.fc41.src.rpm

Builds fine on f39, f49, rawhide, epel8 and epel9.
Unit tests fail on f39, f40, rawhide on aarch64.
But are ok on f39, f40, rawhide, epel8 and epel9 x86_64 as well as epel8 and epel9 aarch64.

Issue raised in upstream project regarding the failing unit tests (f39, f40, rawhide on aarch64): https://github.com/awslabs/aws-c-http/issues/473

Comment 4 Fedora Review Service 2024-07-12 03:58:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7726875
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2279010-aws-c-http/fedora-rawhide-x86_64/07726875-aws-c-http/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 5 Neal Gompa 2024-07-22 22:11:04 UTC
I see one issue in your spec:

In the libs subpackage, you have:

> Requires:       %{name}%{?_isa} = %{version}-%{release}

This probably should be on the main subpackage instead to have it require the libs subpackage.

Comment 6 Dominik Wombacher 2024-07-23 09:12:08 UTC
(In reply to Neal Gompa from comment #5)
> I see one issue in your spec:
> 
> In the libs subpackage, you have:
> 
> > Requires:       %{name}%{?_isa} = %{version}-%{release}
> 
> This probably should be on the main subpackage instead to have it require
> the libs subpackage.

Moved it to the main package and dropped it from the libs sub-package.

```
diff --git a/aws-c-http.spec b/aws-c-http.spec
index 5922970..fa16495 100755
--- a/aws-c-http.spec
+++ b/aws-c-http.spec
@@ -19,6 +19,8 @@ BuildRequires:  numactl-devel
 BuildRequires:  aws-c-compression-devel
 BuildRequires:  aws-c-io-devel
 
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch:    %{ix86}
 # Dependencies like aws-c-common don't support and build on s390x
@@ -31,7 +33,6 @@ ExcludeArch: s390x
 
 %package libs
 Summary:        %{summary}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
```

local mockbuild and copr build successful: https://copr.fedorainfracloud.org/coprs/wombelix/aws-c-libs/build/7776067/

Spec URL: https://download.copr.fedorainfracloud.org/results/wombelix/aws-c-libs/fedora-rawhide-x86_64/07776067-aws-c-http/aws-c-http.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/wombelix/aws-c-libs/fedora-rawhide-x86_64/07776067-aws-c-http/aws-c-http-0.8.2-1.fc41.src.rpm

Comment 7 Neal Gompa 2024-07-23 13:27:21 UTC
Review notes:

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

PACKAGE APPROVED.

Comment 8 Fedora Admin user for bugzilla script actions 2024-07-23 14:20:00 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/aws-c-http