NO-JIRA: isolate NewSession tests from ambient AWS env vars#8911
NO-JIRA: isolate NewSession tests from ambient AWS env vars#8911ironcladlou wants to merge 1 commit into
Conversation
Clear AWS_PROFILE and AWS_DEFAULT_PROFILE in test setup so config.LoadDefaultConfig does not pick up the host's profile and fail silently (the error is discarded, producing a zero-value config). Signed-off-by: Dan Mace <dmace@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@ironcladlou: This pull request explicitly references no 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. |
📝 WalkthroughWalkthroughThe change modifies a test file for AWS session creation. In ChangesCompact Metadata
Related Issues: None specified Related PRs: None specified Suggested Labels: test, aws Suggested Reviewers: None specified Poem 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ironcladlou 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 |
|
Without this, AWS environment variables interact with and break the test execution: |
|
/verified with manual testing |
|
@ironcladlou: The 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. |
|
/verified by manual testing |
|
@ironcladlou: 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. |
|
@ironcladlou: 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8911 +/- ##
==========================================
+ Coverage 26.56% 35.92% +9.36%
==========================================
Files 1087 1137 +50
Lines 105042 115488 +10446
==========================================
+ Hits 27902 41489 +13587
+ Misses 74731 71101 -3630
- Partials 2409 2898 +489
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThese two Konflux Enterprise Contract (EC) failures are not caused by the PR's code change and are not reproducible across other PRs. The PR only modifies Root CauseThe root cause is a transient Konflux Enterprise Contract verification failure affecting only snapshot
The most likely mechanism is that Tekton Chains did not complete SLSA provenance attestation for this specific build before the EC verification tasks attempted to validate it, or there was a transient registry/storage issue accessing the attestation artifacts for this snapshot. This is a known class of Konflux transient failures. Recommendations
Evidence
|
Summary
AWS_PROFILEandAWS_DEFAULT_PROFILEinTestNewSessionsetup soconfig.LoadDefaultConfigdoesn't pick up the host's profile and fail silently (the error is discarded onutil.go:116, producing a zero-value config with empty Region and nil Credentials)Test plan
go test ./cmd/infra/aws/util/ -run TestNewSession -vpasses withAWS_PROFILEsetSummary by CodeRabbit