test: add integration tests and troubleshooting guide for helm_aws_profile_pattern#2211
test: add integration tests and troubleshooting guide for helm_aws_profile_pattern#2211
Conversation
…ws_profile_pattern configured Co-authored-by: osterman <52489+osterman@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2211 +/- ##
==========================================
+ Coverage 77.40% 77.41% +0.01%
==========================================
Files 962 962
Lines 91284 91288 +4
==========================================
+ Hits 70657 70674 +17
+ Misses 16550 16542 -8
+ Partials 4077 4072 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@copilot Test ReportEnvironment:
Result: Observation: This is not a fresh regression — the deprecated path still works when the SSO session is active. However, since the deprecation warning now tells users to switch to |
|
@copilot |
|
@osterman The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@copilot |
Correct! The issue description mentioned a "hardcoded default" but that appears to be a misunderstanding - the pattern The fix ensures:
Commit: 89dbe62 |
…avior Co-authored-by: osterman <52489+osterman@users.noreply.github.com>
…ation Co-authored-by: osterman <52489+osterman@users.noreply.github.com>
Users reported
helm_aws_profile_patternstill being used after commenting it out inatmos.yaml. Investigation revealed the pattern can come from multiple sources beyond the config file, causing confusion.Changes
internal/exec/helmfile_auth_integration_test.go— 5 integration tests covering:--identityflag takes precedence over pattern--identity=falsebehavior with and without patternTROUBLESHOOTING_HELM_AWS_PROFILE_PATTERN.md— Troubleshooting guide documenting:Root Cause
The pattern is not hardcoded. Default is empty string (
""). Pattern comes from:ATMOS_COMPONENTS_HELMFILE_HELM_AWS_PROFILE_PATTERNenv var (highest priority)components.helmfile.helm_aws_profile_patternin atmos.yaml files (project/home/system paths)""(falls back to ambient credentials)Users seeing the pattern after "commenting it out" likely have:
atmos.yamlfiles (editing the wrong one)All tests pass, confirming the code correctly handles empty patterns by falling back to ambient credentials.
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.