-
Notifications
You must be signed in to change notification settings - Fork 6.1k
fix(snyk-report): Improve calculation of latest patch release #23223
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
Conversation
This one does not choke on 3.0 Signed-off-by: Oliver Gondža <ogondza@gmail.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
This was verified manually - up to a point of actual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions here:
- Did you try testing this on your fork?
- I'm a little confused about why the reports were not available although you mentioned the reason. Would you mind providing a better explanation for why the report was failing?
Sure, before any report generation, it calculates recent 3-4 argo versions - latest patch of every minor "stream". To do so, it used to separate the New impl takes latest tags from sorted lists, thus being agnostic to problems like that. |
I did test that it produces the desirable version numbers to run the report against. What I did not test is the snyk service integration (code i did not touch) as I do not have the credentials / snyk account. |
Yep! That's the problem. Testing that thing on the fork is difficult due to lack of credentials. I'll let some other maintainer touch this PR. cc @rumstead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manual tinkering looks okay.... gonna YOLO this, the report can't get any more broken. :-) Thanks for the PR!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #23223 +/- ##
==========================================
+ Coverage 60.09% 60.11% +0.02%
==========================================
Files 342 342
Lines 57845 57845
==========================================
+ Hits 34760 34775 +15
+ Misses 20314 20311 -3
+ Partials 2771 2759 -12 ☔ View full report in Codecov by Sentry. |
Huge improvement! https://github.com/argoproj/argo-cd/pull/23245/files @olivergondza do you have time for a follow-up PR? A couple things to fix would be:
|
@crenshaw-dev, yeah, let me take a look |
…oj#23223) Signed-off-by: Oliver Gondža <ogondza@gmail.com>
…oj#23223) Signed-off-by: Oliver Gondža <ogondza@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…oj#23223) Signed-off-by: Oliver Gondža <ogondza@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
The script is used by https://github.com/argoproj/argo-cd/actions/workflows/update-snyk.yaml
Last successful run is from March 16, on March 17 there was commit tagged with
v3.0.0-rc1
breaking the calculation. The calculation used to rely on the fact that the minor version can be correctly decremented to get to the previous version.Checklist: