Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: drop awscli, install awscli2 on x86_64 only #3657

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 16, 2023

The package is noarch, but one of its dep isn't available on s390x.[1]
What's new in Fedora 39 is the AwsCli[2] change in which the awscli
was retired in favour of awscli2.

In fact, it turns out even on f38 we were pulling in awscli2 on all
arches except s390x, where we still pulled awscli.

Anyway, cosa itself doesn't use the aws CLI but the Python/Go API
libraries directly, which are available on all arches.

The pipeline does use it in one spot[3], but that's only ever run from
the Jenkins controller, which is x86_64.

So let's just move the dep to be x86_64-specific and make it clear it's
not for cosa itself but for the pipeline and developer convenience.

@dustymabe
Copy link
Member

I'm not super confident this won't break something but there is only one way to find out!

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustymabe
Copy link
Member

rebase this to pick up #3654 and hopefully it will then pass CI

The package is noarch, but one of its dep isn't available on s390x.[[1]]
What's new in Fedora 39 is the AwsCli[[2]] change in which the `awscli`
was retired in favour of `awscli2`.

In fact, it turns out even on f38 we were pulling in `awscli2` on all
arches except s390x, where we still pulled `awscli`.

Anyway, cosa itself doesn't use the `aws` CLI but the Python/Go API
libraries directly, which *are* available on all arches.

The pipeline does use it in one spot[[3]], but that's only ever run from
the Jenkins controller, which is x86_64.

So let's just move the dep to be x86_64-specific and make it clear it's
not for cosa itself but for the pipeline and developer convenience.

[1]: https://src.fedoraproject.org/rpms/awscli2/blob/62f260a00a87/f/awscli2.spec#_41
[2]: https://fedoraproject.org/wiki/Changes/AwsCli
[3]: https://github.com/coreos/fedora-coreos-pipeline/blob/b2dc3c8a1c02e3838b933e09ed6bfc8d8dfe9153/utils.groovy#L214
@jlebon
Copy link
Member Author

jlebon commented Nov 16, 2023

I'm not super confident this won't break something but there is only one way to find out!

I did scan both cosa and the pipeline so I'm somewhat confident, but it's definitely possible I missed something. I could imagine something outside of those two that uses the cosa image and does AWS stuff, but on s390x... seems unlikely.

@jlebon jlebon enabled auto-merge (rebase) November 16, 2023 19:11
@jlebon jlebon merged commit 2c3ed95 into coreos:main Nov 16, 2023
2 checks passed
@jlebon jlebon deleted the pr/awscli-s390x branch November 16, 2023 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants