Bug 2189420 - Review Request: awscli2 - Universal Command Line Environment for AWS, version 2
Summary: Review Request: awscli2 - Universal Command Line Environment for AWS, version 2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/aws/aws-cli/tree/v2
Whiteboard:
: 2049808 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-25 07:27 UTC by Nikola Forró
Modified: 2023-05-11 01:56 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-11 01:53:03 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 5847629 to 5851296 (746 bytes, patch)
2023-04-26 10:23 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 5851296 to 5852118 (370 bytes, patch)
2023-04-26 14:35 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 5852118 to 5866524 (577 bytes, patch)
2023-05-02 09:01 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 5866524 to 5870259 (988 bytes, patch)
2023-05-03 15:08 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 5870259 to 5872293 (332 bytes, patch)
2023-05-04 07:17 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 5872293 to 5872722 (249 bytes, patch)
2023-05-04 11:24 UTC, Fedora Review Service
no flags Details | Diff

Description Nikola Forró 2023-04-25 07:27:25 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/awscli2/fedora-rawhide-x86_64/05847510-awscli2/awscli2.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/awscli2/fedora-rawhide-x86_64/05847510-awscli2/awscli2-2.11.15-1.fc39.src.rpm
Description: This package provides version 2 of the unified command line interface to Amazon Web Services.
Fedora Account System Username: nforro

This replaces the original review request (bug #2049808) where the package name didn't comply with packaging guidelines.

Comment 1 Nikola Forró 2023-04-25 07:33:36 UTC
*** Bug 2049808 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Review Service 2023-04-25 08:00:12 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5847629
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05847629-awscli2/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 3 Neal Gompa 2023-04-25 11:49:08 UTC
Taking this review.

Comment 4 Neal Gompa 2023-04-25 12:04:11 UTC
> Provides:           awscli = %{version}-%{release}
> Obsoletes:          awscli < 2

Are we getting rid of awscli v1?

Comment 5 Nikola Forró 2023-04-25 12:36:11 UTC
> Taking this review.

Thanks.

> Are we getting rid of awscli v1?

In Fedora, yes, eventually, but not in EPEL, see bug #2049808 comment 2.

Comment 6 Stewart Smith 2023-04-25 22:37:33 UTC
We've shipped `awscli-2` in Amazon Linux 2023, it'd be great if there was a path forward without us having to patch the SPEC, perhaps a Provides?

Comment 8 Fedora Review Service 2023-04-26 10:23:08 UTC
Created attachment 1960074 [details]
The .spec file difference from Copr build 5847629 to 5851296

Comment 9 Fedora Review Service 2023-04-26 10:23:10 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5851296
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05851296-awscli2/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 10 Neal Gompa 2023-04-26 11:42:59 UTC
> # provide an upgrade path from awscli-2 (Amazon Linux)
> Provides:           awscli-2 = %{version}-%{release}

Obsoletes is needed here too, otherwise it's not an upgrade path.

Comment 11 Nikola Forró 2023-04-26 11:54:29 UTC
> Obsoletes is needed here too, otherwise it's not an upgrade path.

Hm, can I use dynamic version here?

Obsoletes:  awscli-2 < %{version}-%{release}

Comment 12 Neal Gompa 2023-04-26 12:32:35 UTC
(In reply to Nikola Forró from comment #11)
> > Obsoletes is needed here too, otherwise it's not an upgrade path.
> 
> Hm, can I use dynamic version here?
> 
> Obsoletes:  awscli-2 < %{version}-%{release}

Yes, that's fine. :)

Comment 14 Fedora Review Service 2023-04-26 14:35:18 UTC
Created attachment 1960150 [details]
The .spec file difference from Copr build 5851296 to 5852118

Comment 15 Fedora Review Service 2023-04-26 14:35:21 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5852118
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05852118-awscli2/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 David Duncan 2023-04-26 15:16:05 UTC
just adding my 2-cents to the move. This looks great and works with the new method that the upstream project put together. We would have needed a new review. If you would like a co-maintainer, I am happy to assist.

Comment 18 Fedora Review Service 2023-05-02 09:01:12 UTC
Created attachment 1961619 [details]
The .spec file difference from Copr build 5852118 to 5866524

Comment 19 Fedora Review Service 2023-05-02 09:01:14 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5866524
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05866524-awscli2/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 20 Neal Gompa 2023-05-02 12:52:58 UTC
A couple of things here:

> BuildRequires:      python%{python3_pkgversion}-mock

This package is deprecated and this needs to be migrated to unittest.mock: https://fedoraproject.org/wiki/Changes/DeprecatePythonMock

There's also a lot of duplicate files, which can be cleaned up with %fdupes by adding "BuildRequires: fdupes" and "%fdupes -s %{buildroot}%{python3_sitelib}" at the end of %install.

Comment 21 Nikola Forró 2023-05-02 14:20:16 UTC
Thanks, let me take care of that.

> There's also a lot of duplicate files, which can be cleaned up with %fdupes
> by adding "BuildRequires: fdupes" and "%fdupes -s
> %{buildroot}%{python3_sitelib}" at the end of %install.

This one will be a little tricky, doing this breaks some imports.

Comment 22 Neal Gompa 2023-05-02 21:49:50 UTC
(In reply to Nikola Forró from comment #21)
> Thanks, let me take care of that.
> 
> > There's also a lot of duplicate files, which can be cleaned up with %fdupes
> > by adding "BuildRequires: fdupes" and "%fdupes -s
> > %{buildroot}%{python3_sitelib}" at the end of %install.
> 
> This one will be a little tricky, doing this breaks some imports.

Then don't worry about this.

Comment 23 Nikola Forró 2023-05-03 14:31:57 UTC
Removed python3-mock:

Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/awscli2/fedora-rawhide-x86_64/05870070-awscli2/awscli2.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/awscli2/fedora-rawhide-x86_64/05870070-awscli2/awscli2-2.11.16-1.fc39.src.rpm


> This one will be a little tricky, doing this breaks some imports.

This happens because %fdupes -s replaces duplicate files with absolute symlinks that are invalid (don't point to buildroot) during %check.

Comment 24 Fedora Review Service 2023-05-03 15:08:09 UTC
Created attachment 1961974 [details]
The .spec file difference from Copr build 5866524 to 5870259

Comment 25 Fedora Review Service 2023-05-03 15:08:11 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5870259
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05870259-awscli2/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 27 Fedora Review Service 2023-05-04 07:17:48 UTC
Created attachment 1962118 [details]
The .spec file difference from Copr build 5870259 to 5872293

Comment 28 Fedora Review Service 2023-05-04 07:17:50 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5872293
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05872293-awscli2/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 29 Neal Gompa 2023-05-04 09:44:12 UTC
The remaining issue is that the license files aren't captured in the file list using %license.

Comment 30 Nikola Forró 2023-05-04 10:50:23 UTC
Thanks, I missed that as it's usually handled by %pyproject_save_files, but I guess it doesn't work with flit-core build backend.

Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/awscli2/fedora-rawhide-x86_64/05872685-awscli2/awscli2.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/awscli2/fedora-rawhide-x86_64/05872685-awscli2/awscli2-2.11.16-1.fc39.src.rpm

Comment 31 Fedora Review Service 2023-05-04 11:24:13 UTC
Created attachment 1962188 [details]
The .spec file difference from Copr build 5872293 to 5872722

Comment 32 Fedora Review Service 2023-05-04 11:24:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5872722
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2189420-awscli2/fedora-rawhide-x86_64/05872722-awscli2/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 33 Neal Gompa 2023-05-04 16:37:54 UTC
Review notes:

* Package is named per packaging guidelines
* Package licensing is accurate and license data is captured
* Package builds and installs
* No serious issues from rpmlint

PACKAGE APPROVED.

Comment 34 Nikola Forró 2023-05-04 16:40:56 UTC
Thanks!

Comment 35 Fedora Admin user for bugzilla script actions 2023-05-04 16:42:11 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/awscli2

Comment 36 Fedora Update System 2023-05-05 19:48:46 UTC
FEDORA-2023-dc0b65d976 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-dc0b65d976

Comment 37 Fedora Update System 2023-05-05 19:48:47 UTC
FEDORA-2023-88a95f3a92 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-88a95f3a92

Comment 38 Fedora Update System 2023-05-06 02:00:35 UTC
FEDORA-2023-88a95f3a92 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-88a95f3a92 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-88a95f3a92

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

Comment 39 Fedora Update System 2023-05-06 02:02:58 UTC
FEDORA-2023-dc0b65d976 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-dc0b65d976 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-dc0b65d976

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

Comment 40 Dagan McGregor 2023-05-06 05:22:42 UTC
What options are there to get this package available somewhere to install for RHEL8?

I understand EPEL already has the `awscli` version 1 package, but we already use the improvements made to awscli version 2.

Our only option up until I saw this package available was automating the downloading and check of the official zip file.

It would be of great help to make a RHEL package available.

Comment 41 Nikola Forró 2023-05-10 07:30:34 UTC
I don't think that's realistic, EL 8 doesn't support pyproject macros, so almost the entire spec file would have to be rewritten, not to mention outdated dependencies.

Comment 42 Igor Raits 2023-05-10 08:47:32 UTC
It seems that you are missing bunch of Provides: bundled(…)

Comment 43 Nikola Forró 2023-05-10 09:32:57 UTC
Ops, I will add:

Provides:  bundled(python3dist(botocore)) = 2.0.0
Provides:  bundled(python3dist(s3transfer)) = 0.5.1

I hope I didn't miss something else. Also, let me see if I can try unbundling s3transfer.

Comment 44 Fedora Update System 2023-05-11 01:53:03 UTC
FEDORA-2023-dc0b65d976 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 45 Fedora Update System 2023-05-11 01:56:38 UTC
FEDORA-2023-88a95f3a92 has been pushed to the Fedora 38 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.