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

fix(ci): get correct previous release version for release notes (#19443) #20315

Merged
merged 8 commits into from
Oct 11, 2024

Conversation

crenshaw-dev
Copy link
Member

@crenshaw-dev crenshaw-dev commented Oct 9, 2024

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.

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>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev crenshaw-dev requested review from a team as code owners October 9, 2024 16:26
Copy link

bunnyshell bot commented Oct 9, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.96%. Comparing base (4722a7f) to head (7ad5388).
Report is 18 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@leoluz leoluz left a 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?

@crenshaw-dev
Copy link
Member Author

@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.

@nitishfy
Copy link
Contributor

@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?

@crenshaw-dev
Copy link
Member Author

@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.

Copy link
Collaborator

@leoluz leoluz left a 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.

@crenshaw-dev crenshaw-dev merged commit b8f85c9 into argoproj:master Oct 11, 2024
27 checks passed
@crenshaw-dev crenshaw-dev deleted the release-notes branch October 11, 2024 15:51
@crenshaw-dev
Copy link
Member Author

/cherry-pick release-2.13

Copy link

Cherry-pick failed with Merge error b8f85c95006e638dce3eb9a87dc178c8370f393d into temp-cherry-pick-38c0dc-release-2.13

@crenshaw-dev
Copy link
Member Author

Meh, will wait for 2.14.

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.

Release notes for 2.12.0 only showing changes since 2.12.0-rc5, not since 2.11.x
4 participants