-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(ci): get correct previous release version for release notes (#19443) #20315
Conversation
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20315 +/- ##
=======================================
Coverage 55.95% 55.96%
=======================================
Files 322 322
Lines 44704 44704
=======================================
+ Hits 25014 25017 +3
+ Misses 17090 17087 -3
Partials 2600 2600 ☔ View full report in Codecov by Sentry. |
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.
@crenshaw-dev Can you please confirm if the hack/get-previous-release/get-previous-version-for-release-notes_test.go
gets executed during make test-local
?
@leoluz it doesn't. I think I'm okay with that? If anyone is monkeying with that file, I feel like they'll be aware enough to run the tests. |
@crenshaw-dev sorry for the Ping. I'm curious to know how do you test the github actions workflow locally? Do you incorporate those changes to origin first and then raise a PR to upstream? |
@nitishfy I don't run them locally, I run them in my fork. I just remove any conditions that limit actions to running on argoproj/argo-cd, and generally that's enough to get it to run. In this case I also commented out a bunch of irrelevant steps so that I only had to run the one I cared about. It always depends on precisely what you're running. Probably the easiest way to work is to pretend the argoproj/argo-cd repo doesn't exist and just make whatever changes are necessary to get things working on your fork. Then when it's time to put up a PR, just revert those changes one at a time, making sure they all make sense for argoproj/argo-cd. |
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.
Approving for now. Maybe the test could be executed automatically as a small improvement.
/cherry-pick release-2.13 |
Cherry-pick failed with |
Meh, will wait for 2.14. |
Fixes #19443
The script is overcomplicated, but the tests are simple.
I tested on my fork, and the code ran and got the correct tag for the test tag. I've probably missed edge cases, but at least this gives us something to iterate.