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

include advisories for amazon linux extras #268

Closed
wants to merge 2 commits into from

Conversation

piax93
Copy link

@piax93 piax93 commented Feb 12, 2024

This fixes #267.

The implementation is not terribly fast, as it iterates through a bunch of URLs. On a very standard home internet connection it still completes in just about under a minute, which seems reasonable for something which is going to run just a few times a day. I can work on parallelizing it if you are aiming for a bit higher performance target.

@CLAassistant
Copy link

CLAassistant commented Feb 12, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@DmitriyLewen DmitriyLewen left a comment

Choose a reason for hiding this comment

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

Hello @piax93
Thanks for your work.

Look good.
I left small comments. Take a look, please.

amazon/amazon.go Outdated Show resolved Hide resolved
amazon/amazon.go Outdated Show resolved Hide resolved
amazon/amazon.go Outdated Show resolved Hide resolved
amazon/amazon.go Show resolved Hide resolved
amazon/amazon.go Outdated Show resolved Hide resolved
* more expressive variable name for "extras flag"
* avoid overwriting `url` variable
* add a couple more comments
@piax93 piax93 requested a review from DmitriyLewen February 15, 2024 10:21
Copy link
Contributor

@DmitriyLewen DmitriyLewen left a comment

Choose a reason for hiding this comment

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

Thanks for your work @piax93
LGTM.

@knqyf263 I approved this PR. Take a look, when you have time, please.

@knqyf263
Copy link
Collaborator

How do we distinguish between regular packages and extras packages? I think we need to apply the extras advisories only to extras packages.

@piax93
Copy link
Author

piax93 commented Feb 20, 2024

@knqyf263 mmm, that's a good point, as many package names will be the same of what's available via the main channel. In terms of distinguishing the advisories, that's pretty easy, as they have a different numbering format, i.e. ALAS2<pkgname>-<year>-<number> compared to just ALAS2-<year>-<number>. On the other hand, I think packages will pretty much look the same when enumerated out of the rpm database, so the best bet is likely looking at the packages' major version, and just compare with advisories that have the same, although it's a bit of a heuristic.

@knqyf263
Copy link
Collaborator

so the best bet is likely looking at the packages' major version, and just compare with advisories that have the same, although it's a bit of a heuristic.

For example, Golang has the same major version for standard and extras packages, right?

@piax93
Copy link
Author

piax93 commented Feb 20, 2024

That's true as well, instead of "major version" I should have probably said "non-patch version", although that may make things even more complicated... Maybe the least terrible option is just to keep the comparison as is, and give the option to users to include the extras advisories through some parameter.

@knqyf263
Copy link
Collaborator

knqyf263 commented Feb 21, 2024

Ideally, we'd want to identify the extras packages somehow, but we don't know of a good way to do it yet.

An option for extras sounds interesting.

@piax93
Copy link
Author

piax93 commented Jul 5, 2024

I'll close this as it's pretty much lost in the sands of time.

@piax93 piax93 closed this Jul 5, 2024
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.

advisories for amazonlinux extras are missing
4 participants