fix: set max for max cookie number to math.MaxInt#16388
Merged
gdsoumya merged 3 commits intoargoproj:masterfrom Nov 20, 2023
Merged
fix: set max for max cookie number to math.MaxInt#16388gdsoumya merged 3 commits intoargoproj:masterfrom
math.MaxInt#16388gdsoumya merged 3 commits intoargoproj:masterfrom
Conversation
Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16388 +/- ##
=======================================
Coverage 49.55% 49.55%
=======================================
Files 269 269
Lines 47046 47046
=======================================
Hits 23313 23313
Misses 21445 21445
Partials 2288 2288 ☔ View full report in Codecov by Sentry. |
blakepettersson
approved these changes
Nov 20, 2023
gdsoumya
requested changes
Nov 20, 2023
Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
math.MaxInt32math.MaxInt
gdsoumya
approved these changes
Nov 20, 2023
Contributor
Author
|
Thanks for the quick review folks. @gdsoumya are you able to cherry pick this across to the |
Member
|
@onematchfox I think we can do that but I'll still check with other maintainers and see before doing that. |
Member
|
/cherry-pick release-2.9 |
gcp-cherry-pick-bot bot
pushed a commit
that referenced
this pull request
Nov 20, 2023
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com>
Member
|
/cherry-pick release-2.8 |
gcp-cherry-pick-bot bot
pushed a commit
that referenced
this pull request
Nov 20, 2023
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com>
ishitasequeira
pushed a commit
that referenced
this pull request
Nov 20, 2023
ishitasequeira
pushed a commit
that referenced
this pull request
Nov 20, 2023
Member
|
@onematchfox the commit has been cherry picked to release branches. |
Contributor
Author
|
Thanks! |
alexymantha
pushed a commit
to alexymantha/argo-cd
that referenced
this pull request
Nov 22, 2023
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com>
vladfr
pushed a commit
to vladfr/argo-cd
that referenced
this pull request
Dec 13, 2023
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com>
tesla59
pushed a commit
to tesla59/argo-cd
that referenced
this pull request
Dec 16, 2023
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com>
lyda
pushed a commit
to lyda/argo-cd
that referenced
this pull request
Mar 28, 2024
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Kevin Lyda <kevin@lyda.ie>
Hariharasuthan99
pushed a commit
to AmadeusITGroup/argo-cd
that referenced
this pull request
Jun 16, 2024
* fix: set max for max cookie number to `math.MaxInt32` Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> * refactor: set max for max cookie number to `math.MaxInt` Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> --------- Signed-off-by: OneMatchFox <878612+onematchfox@users.noreply.github.com> Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com> Co-authored-by: gdsoumya <44349253+gdsoumya@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
goreleaser-based release build for terraform-provider-argocd is currently failing with the following error:The affected code in this project was introduced in #14979, which, set the max value of
common.EnvMaxCookieNumbertomath.MaxInt64. This, asgoreleasercorrectly identifies, results in an overflow since themaxparameter inParseNumFromEnvis anint(notint64). Seeargo-cd/util/env/env.go
Line 20 in 6fa9b17
Why
goreleaseris failing because of an issue initialising code in this project is a bit of a mystery to me, but regardless, this PR addresses the issue (assuming, of course, thatintis big enough and the code should not be updated to useenv.ParseInt64FromEnv).Related: argoproj-labs/terraform-provider-argocd#354
Checklist: