Update Flyte to Go 1.26#7240
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7240 +/- ##
=======================================
Coverage 56.95% 56.96%
=======================================
Files 931 931
Lines 58250 58247 -3
=======================================
+ Hits 33179 33180 +1
+ Misses 22017 22013 -4
Partials 3054 3054
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Jason Parraga <sovietaced@gmail.com>
| return verifyClaims(sets.NewString(append(r.allowedAudience, expectedAudience)...), t.Claims.(jwtgo.MapClaims)) | ||
| } | ||
|
|
||
| func doRequest(ctx context.Context, req *http.Request) (*http.Response, error) { |
There was a problem hiding this comment.
This I unused and was causing a gosec warning so I removed it
| }) | ||
| } | ||
|
|
||
| func Test_doRequest(t *testing.T) { |
There was a problem hiding this comment.
Test of unused method
| secretsData := make(map[string][]byte, 4) | ||
|
|
||
| err := filepath.Walk(localPath, func(path string, info os.FileInfo, err error) error { | ||
| fsys := os.DirFS(localPath) |
There was a problem hiding this comment.
Resolves a gosec warning about walking a filesystem and having the files switch to symlink underneath.
| return func(writer http.ResponseWriter, request *http.Request) { | ||
| // 1. Limit the request body to 1MB (1 << 20 bytes) | ||
| // This MUST be done before ParseForm() or FormValue() | ||
| request.Body = http.MaxBytesReader(writer, request.Body, 1048576) |
There was a problem hiding this comment.
This resolve a gosec warning about resource exhaustion when using an unbuffered reader.
Signed-off-by: Jason Parraga <sovietaced@gmail.com> Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
What changes were proposed in this pull request?
This pull request updates Flyte to use the latest version of Go. Consequently this also updates
golangci-lintwhich added the following new warnings.How was this patch tested?
Existing unit / integration tests
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link