CNTRLPLANE-2076: remove v2 import aliases left from SDK migration#8063
CNTRLPLANE-2076: remove v2 import aliases left from SDK migration#8063LiangquanLi930 wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@LiangquanLi930: This pull request references CNTRLPLANE-2076 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 story 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
✅ Files skipped from review due to trivial changes (8)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe pull request removes aliased imports of AWS SDK v2 packages throughout the codebase and replaces them with direct package imports. Aliased imports such as ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@LiangquanLi930: This pull request references CNTRLPLANE-2076 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 story 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. |
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/infra/aws/util/util.go`:
- Around line 115-116: The NewSession function currently discards the error from
config.LoadDefaultConfig; change NewSession to return (*aws.Config, error),
capture and return the error from config.LoadDefaultConfig (do not ignore it),
and update the GetSession wrapper and all 19 call sites and tests to propagate
or handle the returned error accordingly so callers no longer receive a
seemingly valid config when loading fails; reference the NewSession function,
GetSession wrapper, and any call sites invoking NewSession to locate updates.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: e1e5336a-1a64-417e-8a22-cce05553b2a4
📒 Files selected for processing (13)
cmd/fix/dr_oidc_iam.gocmd/infra/aws/destroy_test.gocmd/infra/aws/util/errors.gocmd/infra/aws/util/sts.gocmd/infra/aws/util/sts_test.gocmd/infra/aws/util/util.gocmd/infra/aws/util/util_test.gocontrol-plane-operator/controllers/awsprivatelink/awsprivatelink_controller.gosupport/awsutil/sts.gotest/e2e/util/fixture.gotest/e2e/util/reqserving/setup.gotest/e2e/util/sharedoidc.gotest/e2e/util/util.go
|
/pipeline required |
|
Scheduling tests matching the |
|
/test e2e-azure-self-managed |
Test Resultse2e-aws
e2e-aks
|
sdminonne
left a comment
There was a problem hiding this comment.
A good follow-up fix would be changing NewSession to return (*aws.Config, error)
Stopping swallowing error and make the rabbit happy :)
|
Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jparrill, LiangquanLi930, sdminonne The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
/retest |
|
/verified by e2e |
|
@LiangquanLi930: This PR has been marked as verified by 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. |
|
/lgtm |
|
/retest |
|
/test e2e-aks |
|
@LiangquanLi930: This pull request references CNTRLPLANE-2076 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 story 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. |
4ce92a2 to
6208652
Compare
Drop awsv2, ec2v2, route53v2, stsv2, configv2 and other transitional aliases across 13 files; packages now use their idiomatic names. Signed-off-by: Liangquan Li <liangli@redhat.com>
6208652 to
696ea2e
Compare
|
/lgtm |
|
Scheduling tests matching the |
|
/verified by e2e |
|
@LiangquanLi930: This PR has been marked as verified by 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. |
|
@LiangquanLi930: This pull request references CNTRLPLANE-2076 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 story 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. |
|
@LiangquanLi930: all tests passed! 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. |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes
Special notes for your reviewer:
Checklist:
Summary by CodeRabbit
Refactor