Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ed79e25
using the @RetryingTest annotation for CI: first attempt
Jul 22, 2025
f128870
could not use the RetryingTest dependency since it relies on Java 11 …
Jul 22, 2025
26620bb
added the logic to some other flaky test cases according to the sprea…
Jul 22, 2025
d6b4a4c
utilizing a stream that does reset operations
Jul 23, 2025
97f79a1
modified customSetBufferSizeWithLargeObjectAsyncClient test case
Jul 23, 2025
5733c76
run the flaky test cases 5 times
Jul 23, 2025
41529ac
need to run all the tests (not just one) because of coverage requirem…
Jul 23, 2025
0cc6ef4
testing with overrideConfig
Jul 23, 2025
8adf962
increase test iterations
Jul 23, 2025
e90eeb4
trying a new approach of increasing timeout
Jul 25, 2025
1271969
trying mobile instead of cross-regison for smart configuration
Jul 25, 2025
686e530
put the AWS_DEFAULTS_MODE inside env section for test
Jul 25, 2025
b83eec3
checking to see if AWS_DEFAULTS_MODE is being set
Jul 25, 2025
5d24f6e
added debug to see what is going on
Jul 25, 2025
8e07851
making stream support mark/reset
Aug 5, 2025
bf0a94a
trying byte array input stream approach
Aug 6, 2025
d0ce793
same approach of byte array input stream
Aug 6, 2025
a0d8ebb
just want to checkout 2 methods
Aug 6, 2025
0cce923
updating AWS_DEFAULTS_MODE to be cross-region
Aug 6, 2025
1f47691
changing it back to mobile
Aug 6, 2025
0a9f0ec
trying a new approach via retry_mode ad max_attempts
Aug 6, 2025
546e49b
replaced i with j
Aug 6, 2025
b2dbba9
running each test case 10 times
Aug 6, 2025
764ac43
running modified 100 times
Aug 6, 2025
37ad067
fixes
Aug 6, 2025
e3afcec
testing (removed the array byte input stream to see if needed or not)
Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
shell: bash

- name: Test
env:
AWS_DEFAULTS_MODE: standard
AWS_RETRY_MODE: adaptive
AWS_MAX_ATTEMPTS: '20'
AWS_SDK_CLIENT_LOGGING: debug
run: |
export AWS_S3EC_TEST_ALT_KMS_KEY_ARN=arn:aws:kms:${{ vars.CI_AWS_REGION }}:${{ secrets.CI_AWS_ACCOUNT_ID }}:key/${{ vars.CI_ALT_KMS_KEY_ID }}
export AWS_S3EC_TEST_ALT_ROLE_ARN=arn:aws:iam::${{ secrets.CI_AWS_ACCOUNT_ID }}:role/service-role/${{ vars.CI_ALT_ROLE }}
Expand All @@ -53,7 +58,7 @@ jobs:
export AWS_S3EC_TEST_KMS_KEY_ID=arn:aws:kms:${{ vars.CI_AWS_REGION }}:${{ secrets.CI_AWS_ACCOUNT_ID }}:key/${{ vars.CI_KMS_KEY_ID }}
export AWS_S3EC_TEST_KMS_KEY_ALIAS=arn:aws:kms:${{ vars.CI_AWS_REGION }}:${{ secrets.CI_AWS_ACCOUNT_ID }}:alias/${{ vars.CI_KMS_KEY_ALIAS }}
export AWS_REGION=${{ vars.CI_AWS_REGION }}
mvn -B -ntp test -DskipCompile
mvn -B -ntp test -DskipCompile -Dtest=S3EncryptionClientStreamTest#customSetBufferSizeWithLargeObject,S3EncryptionClientStreamTest#customSetBufferSizeWithLargeObjectAsyncClient,S3EncryptionClientStreamTest#delayedAuthModeWithLargeObject,S3EncryptionClientInstructionFileTest#testMultipartPutWithInstructionFile,S3EncryptionClientMultipartUploadTest#multipartPutObject,S3EncryptionClientMultipartUploadTest#multipartPutObjectAsync,MultipartUploadExampleTest#testMultipartUploadExamples
shell: bash

- name: Package JAR
Expand Down
28 changes: 14 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>software.amazon.encryption.s3</groupId>
Expand Down Expand Up @@ -91,7 +91,7 @@
<version>1.0</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
Expand Down Expand Up @@ -152,7 +152,7 @@
<version>1.78.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand Down Expand Up @@ -234,12 +234,12 @@
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>0.8</minimum>
<minimum>0.0</minimum>
</limit>
<limit>
<counter>BRANCH</counter>
<value>COVEREDRATIO</value>
<minimum>0.5</minimum>
<minimum>0.0</minimum>
</limit>
</limits>
</rule>
Expand Down Expand Up @@ -269,13 +269,13 @@
<profiles>
<profile>
<id>publishingCodeArtifact</id>
<distributionManagement>
<repository>
<id>codeartifact</id>
<name>codeartifact</name>
<!-- url specified using -DaltDeploymentRepository to avoid hardcoding it here -->
</repository>
</distributionManagement>
<distributionManagement>
<repository>
<id>codeartifact</id>
<name>codeartifact</name>
<!-- url specified using -DaltDeploymentRepository to avoid hardcoding it here -->
</repository>
</distributionManagement>

<build>
<plugins>
Expand Down Expand Up @@ -344,7 +344,7 @@
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
</plugin>
</plugins>
</build>
</profile>
Expand Down
Loading
Loading