-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix flaky test due to localization #1734
fix flaky test due to localization #1734
Conversation
Signed-off-by: Hailong Cui <[email protected]>
0657a90
to
094a4d6
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## feature/agent_framework_dev #1734 +/- ##
=================================================================
+ Coverage 68.60% 68.96% +0.36%
- Complexity 2591 2608 +17
=================================================================
Files 239 241 +2
Lines 12757 12815 +58
Branches 1284 1288 +4
=================================================================
+ Hits 8752 8838 +86
+ Misses 3404 3373 -31
- Partials 601 604 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@ylwu-amzn @Zhangxunmt please help to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, found this bug on flow framework and have submitted an issue and PR fix upstream.
@@ -68,7 +68,8 @@ public String encrypt(String plainText) { | |||
initMasterKey(); | |||
final AwsCrypto crypto = AwsCrypto.builder().withCommitmentPolicy(CommitmentPolicy.RequireEncryptRequireDecrypt).build(); | |||
byte[] bytes = Base64.getDecoder().decode(masterKey); | |||
JceMasterKey jceMasterKey = JceMasterKey.getInstance(new SecretKeySpec(bytes, "AES"), "Custom", "", "AES/GCM/NoPadding"); | |||
// https://github.com/aws/aws-encryption-sdk-java/issues/1879 | |||
JceMasterKey jceMasterKey = JceMasterKey.getInstance(new SecretKeySpec(bytes, "AES"), "Custom", "", "AES/GCM/NOPADDING"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this break BWC ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this break BWC ?
No, the string is uppercased by the method being called. We are just preemptively uppercasing to avoid the wrong uppercase I in Turkish locale.
2299969
into
opensearch-project:feature/agent_framework_dev
Description
CI run with locale
-Dtests.locale=tr -Dtests.timezone=Cuba
https://github.com/opensearch-project/ml-commons/actions/runs/7097212068/job/19316954587?pr=1733related to aws/aws-encryption-sdk-java#1879
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.