openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
130 stars 80 forks source link

Updates sort package to latest #1636

Closed sm43 closed 6 months ago

sm43 commented 6 months ago

Changes

we use sort code from k8s repo, this updates the code to the latest master https://github.com/kubernetes/kubernetes/blob/20d0ab7ae808aaddb1556c3c38ca0607663c50ac/staging/src/k8s.io/kubectl/pkg/cmd/get/sorter.go#L150 but keeps using integer.IntMin to continue using golang 1.20

Submitter Checklist

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 41.66667% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 64.04%. Comparing base (8bfeac7) to head (8e5b6f1). Report is 5 commits behind head on main.

Files Patch % Lines
pkg/sort/runtime_sort.go 0.00% 4 Missing :warning:
pkg/pipelineascode/concurrency.go 62.50% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1636 +/- ## ========================================== - Coverage 64.19% 64.04% -0.16% ========================================== Files 140 140 Lines 10878 10888 +10 ========================================== - Hits 6983 6973 -10 - Misses 3363 3382 +19 - Partials 532 533 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

chmouel commented 6 months ago

I think the k8s update is unreleated but we may as well since i'll be doing a go mod update soon!

thanks!