-
Notifications
You must be signed in to change notification settings - Fork 72
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
Handle tags returned in an unexpected order #3405
Conversation
As the tag names appear to follow a naming convention that will allow for this, sorting the tags in descending order will ensure we don't try to increment to a tag that already exists
Passing run #2293 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #3405 +/- ##
=======================================
Coverage 87.13% 87.13%
=======================================
Files 312 312
Lines 18659 18659
Branches 2377 2377
=======================================
Hits 16259 16259
Misses 1980 1980
Partials 420 420 ☔ 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.
this looks great, thank you @SteveDMurphy for making this more robust!
i'm pretty surprised that you were getting the tags returned out of order - it does indeed look like the 2.14.1a0 tag was created after the 2.14.1a1 tag - i'm guessing someone must have re-published the tag.
i assumed tags would be published in the right order and that they were basically immutable, but it's certainly possible to delete and re-add a tag. i guess i didn't expect anyone to do that 😄. regardless, there's no benefit in assuming this, and doing the more defensive, explicit sorting you've put in here is a good safety measure (that we clearly need!). so thank you again for the catch/fix!
just some minor comments, the gist of this looks good to me 👍
oh also, i forgot to mention - we should make the same changes over on the |
Once we are good here I can pop a PR open over there as well, thanks for calling that out! |
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.
looks good on my end, thanks again for being proactive and making this fix!
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.
looks good on my end, thanks again for being proactive and making this fix!
Closes #3404
Code Changes
Steps to Confirm
2.14.1a*
) will show the two in tests as out of sequence. Reverting the last commit will show the test failing in that scenarioPre-Merge Checklist
CHANGELOG.md
Description Of Changes
I did this manually last night to force
2.14.1a2
to push, then created an issue and PR to see if this was the right path forward.