OCPCLOUD-3287: Update to k8s 1.35.1 dependencies#439
Conversation
|
@RadekManak: This pull request references OCPCLOUD-3287 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughUpdates build tooling to golangci-lint v2, bumps Go to 1.25.0 and performs broad dependency upgrades across Kubernetes/OpenShift modules; adjusts Makefile HOME assignment and several test cleanup/assert patterns. One public function signature was changed in resource apply logic. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
|
/jira refresh |
|
@RadekManak: This pull request references OCPCLOUD-3287 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@RadekManak: This pull request references OCPCLOUD-3287 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@go.mod`:
- Line 295: Update the vulnerable module go.opentelemetry.io/otel/sdk from
v1.39.0 to v1.40.0 in go.mod (replace the existing go.opentelemetry.io/otel/sdk
v1.39.0 // indirect entry), then run the Go module commands to fetch and lock
the patched version (e.g., go get go.opentelemetry.io/otel/sdk@v1.40.0; go mod
tidy) and refresh vendoring (e.g., go mod vendor) so the patched v1.40.0 is
recorded and vendored.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b4b689fb-58d9-4915-a790-c98be70e8ecb
⛔ Files ignored due to path filters (297)
go.sumis excluded by!**/*.sumvendor/4d63.com/gocheckcompilerdirectives/checkcompilerdirectives/checkcompilerdirectives.gois excluded by!vendor/**,!**/vendor/**vendor/4d63.com/gochecknoglobals/checknoglobals/check_no_globals.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/.gitignoreis excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/README.mdis excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/constructors.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/decorators.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/doc.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/enums.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/io.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/chavacava/garif/models.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/polyfloyd/go-errorlint/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/polyfloyd/go-errorlint/errorlint/allowed.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/polyfloyd/go-errorlint/errorlint/analysis.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/polyfloyd/go-errorlint/errorlint/lint.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/polyfloyd/go-errorlint/errorlint/options.gois excluded by!vendor/**,!**/vendor/**vendor/codeberg.org/polyfloyd/go-errorlint/errorlint/printf.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/analyzer/config.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/internal/comment/cache.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/internal/comment/directive.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/internal/pattern/list.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/internal/structure/fields-cache.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/exhaustruct/v4/internal/structure/fields.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/e/doc.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/e/err.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/e/log.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/fields/dict.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/fields/doc.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/fields/field.gois excluded by!vendor/**,!**/vendor/**vendor/dev.gaijin.team/go/golib/fields/list.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/4meepo/tagalign/.gitignoreis excluded by!vendor/**,!**/vendor/**vendor/github.com/4meepo/tagalign/.goreleaser.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/4meepo/tagalign/options.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/4meepo/tagalign/tagalign.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Abirdcfly/dupword/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Abirdcfly/dupword/dupword.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AdminBenni/iota-mixing/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/github.com/AdminBenni/iota-mixing/pkg/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AdminBenni/iota-mixing/pkg/analyzer/flags/flags.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AlwxSin/noinlineerr/.gitignoreis excluded by!vendor/**,!**/vendor/**vendor/github.com/AlwxSin/noinlineerr/.golangci.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/AlwxSin/noinlineerr/.goreleaser.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/AlwxSin/noinlineerr/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/github.com/AlwxSin/noinlineerr/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/AlwxSin/noinlineerr/noinlineerr.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/errname/pkg/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/nilnil/pkg/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/analyzer/checkers_factory.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/bool_compare.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/call_meta.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/checker.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/checkers_registry.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/empty.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/equal_values.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/error_is_as.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/error_nil.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/expected_actual.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/formatter.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/go_require.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_basic_type.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_bool.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_comparison.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_context.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_diagnostic.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_http.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/helpers_len.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/len.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/negative_positive.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/require_error.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/suite_method_signature.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/suite_thelper.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/checkers/useless_assert.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Antonboom/testifylint/internal/config/config.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/CHANGELOG.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/internal/resource/resource_identifier.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported/exported.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared/constants.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/pager.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/poller.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/CHANGELOG.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TOKEN_CACHING.MDis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/TROUBLESHOOTING.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/assets.jsonis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_cli_credential.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_developer_cli_credential.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/azure_powershell_credential.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/ci.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/default_azure_credential.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/developer_credential_util.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/developer_credential_util_nonwindows.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/developer_credential_util_windows.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/errors.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed-identity-matrix.jsonis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/test-resources-post.ps1is excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/test-resources.bicepis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/CHANGELOG.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/autorest.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/models.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/CHANGELOG.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/LICENSE.txtis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/accounts_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/assets.jsonis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/autorest.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/blobcontainers_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/blobinventorypolicies_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/blobservices_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/build.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/ci.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/client_factory.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/constants.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/deletedaccounts_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/encryptionscopes_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/fileservices_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/fileshares_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/localusers_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/managementpolicies_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/models.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/models_serde.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/networksecurityperimeterconfigurations_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/objectreplicationpolicies_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/operations_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/options.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/privateendpointconnections_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/privatelinkresources_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/queue_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/queueservices_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/responses.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/skus_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/table_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/tableservices_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/taskassignmentinstancesreport_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/taskassignments_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/taskassignmentsinstancesreport_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/time_rfc1123.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/time_rfc3339.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/usages_client.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage/v2/version.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/confidential/confidential.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/base.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/items.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/base/storage/storage.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/accesstokens/accesstokens.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/oauth/ops/authority/authority.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/public/public.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/decode.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/encode.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/error.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/lex.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/meta.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/BurntSushi/toml/parse.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Crocmagnon/fatcontext/pkg/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Djarvur/go-err113/.travis.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/Djarvur/go-err113/comparison.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/Djarvur/go-err113/err113.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/GaijinEntertainment/go-exhaustruct/v3/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/GaijinEntertainment/go-exhaustruct/v3/internal/pattern/list.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/.gitignoreis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/.golangci.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/.unqueryvet.example.yamlis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/CONTRIBUTING.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/Dockerfileis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/LICENSEis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/RELEASE.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/Taskfile.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/action.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/config.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/analyzer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/concat.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/filter.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/fixes.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/format.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/n1detector.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/bun.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/ent.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/goqu.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/gorm.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/interface.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/jet.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/pgx.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/reform.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/rel.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/sqlboiler.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/sqlc.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/sqlx.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqlbuilders/squirrel.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/sqli_scanner.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/internal/analyzer/tx_leak_detector.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/pkg/config/config.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/MirrexOne/unqueryvet/schema.jsonis excluded by!vendor/**,!**/vendor/**vendor/github.com/OpenPeeDeeP/depguard/v2/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/OpenPeeDeeP/depguard/v2/depguard.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/OpenPeeDeeP/depguard/v2/settings.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/.editorconfigis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/.gitignoreis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/.golangci.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/.goreleaser.ymlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/AGENTS.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/Bitfileis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/COPYINGis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/Dockerfileis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/Justfileis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/biome.jsonis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/chroma.jpgis excluded by!**/*.jpg,!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/coalesce.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/colour.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/delegate.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/doc.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/emitters.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatter.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/api.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/html/html.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/json.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/svg/font_liberation_mono.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/svg/svg.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/tokens.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/tty_indexed.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/formatters/tty_truecolour.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/iterator.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexer.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/README.mdis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/caddyfile.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/cl.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/dns.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/emacs.gois excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/abap.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/abnf.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/actionscript.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/actionscript_3.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ada.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/agda.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/al.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/alloy.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/angular2.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/antlr.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/apacheconf.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/apl.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/applescript.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/arangodb_aql.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/arduino.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/armasm.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/atl.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/autohotkey.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/autoit.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/awk.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ballerina.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bash.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bash_session.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/batchfile.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/beef.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bibtex.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bicep.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/blitzbasic.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bqn.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/brainfuck.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c#.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c++.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/c3.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cap_n_proto.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cassandra_cql.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/ceylon.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cfengine3.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cfstatement.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/chaiscript.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/chapel.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cheetah.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/clojure.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cmake.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cobol.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/coffeescript.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/common_lisp.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/coq.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/core.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/crystal.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/css.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/csv.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cue.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/cython.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/d.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dart.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/dax.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/desktop_entry.xmlis excluded by!vendor/**,!**/vendor/**vendor/github.com/alecthomas/chroma/v2/lexers/embedded/devicetree.xmlis excluded by!vendor/**,!**/vendor/**
📒 Files selected for processing (3)
Makefilego.modtools/tools.go
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@cmd/azure-config-credentials-injector/credentials_injector_test.go`:
- Around line 38-40: The temp files created as inputFile and outputFile in
credentials_injector_test.go are not closed before the deferred os.Remove, which
can cause deletion to fail on some platforms; after each os.CreateTemp call
(i.e., immediately after inputFile is created and after outputFile is created)
call inputFile.Close() and outputFile.Close() respectively so the defer that
removes the files succeeds; ensure you still defer os.Remove for cleanup and
only close the file handles (not remove) at those points.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a10025fb-fac8-4e05-bdb2-ef977921c49a
📒 Files selected for processing (7)
.golangci.yamlcmd/azure-config-credentials-injector/credentials_injector_test.gocmd/cluster-cloud-controller-manager-operator/main.gocmd/config-sync-controllers/main.gopkg/config/config_test.gopkg/controllers/resourceapply/resourceapply.gopkg/controllers/status_test.go
✅ Files skipped from review due to trivial changes (1)
- cmd/config-sync-controllers/main.go
| defer func() { | ||
| require.NoError(t, os.Remove(inputFile.Name())) | ||
| }() |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
FILE="cmd/azure-config-credentials-injector/credentials_injector_test.go"
echo "Inspect temp file creation and cleanup calls:"
nl -ba "$FILE" | sed -n '29,55p'
rg -nP 'CreateTemp|\.Close\(|os\.Remove\(|os\.RemoveAll\(' "$FILE"Repository: openshift/cluster-cloud-controller-manager-operator
Length of output: 200
🏁 Script executed:
#!/bin/bash
set -euo pipefail
FILE="cmd/azure-config-credentials-injector/credentials_injector_test.go"
# Check if file exists and show its relevant lines
if [ -f "$FILE" ]; then
echo "=== Lines 29-55 of the file ==="
sed -n '29,55p' "$FILE"
echo ""
echo "=== All CreateTemp, Close, and Remove calls ==="
rg -n 'CreateTemp|\.Close\(|os\.Remove\(|os\.RemoveAll\(' "$FILE"
else
echo "File not found: $FILE"
fiRepository: openshift/cluster-cloud-controller-manager-operator
Length of output: 1239
🏁 Script executed:
#!/bin/bash
FILE="cmd/azure-config-credentials-injector/credentials_injector_test.go"
# Check the full file for all CreateTemp usages
echo "=== All CreateTemp calls in file ==="
rg -n 'CreateTemp' "$FILE"
# Get file size to see if we should review the whole thing
wc -l "$FILE"Repository: openshift/cluster-cloud-controller-manager-operator
Length of output: 330
Close temp file handles before deferred os.Remove cleanup.
inputFile and outputFile are not closed after os.CreateTemp (lines 36, 42). On platforms with strict file handling (Windows, etc.), attempting to delete open files will fail, causing the deferred cleanup to fail and tests to become flaky.
Add inputFile.Close() after line 37 and outputFile.Close() after line 43.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@cmd/azure-config-credentials-injector/credentials_injector_test.go` around
lines 38 - 40, The temp files created as inputFile and outputFile in
credentials_injector_test.go are not closed before the deferred os.Remove, which
can cause deletion to fail on some platforms; after each os.CreateTemp call
(i.e., immediately after inputFile is created and after outputFile is created)
call inputFile.Close() and outputFile.Close() respectively so the defer that
removes the files succeeds; ensure you still defer os.Remove for cleanup and
only close the file handles (not remove) at those points.
|
@RadekManak: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/jira refresh |
|
@RadekManak: This pull request references OCPCLOUD-3287 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
No description provided.