File tree Expand file tree Collapse file tree 5 files changed +61
-0
lines changed Expand file tree Collapse file tree 5 files changed +61
-0
lines changed Original file line number Diff line number Diff line change @@ -139,3 +139,17 @@ jobs:
139
139
uses : aws-actions/aws-codebuild-run-build@v1
140
140
with :
141
141
project-name : aws-sdk-java-v2-endpoints-test
142
+ migration-tests :
143
+ if : github.repository == 'aws/aws-sdk-java-v2'
144
+ runs-on : ubuntu-latest
145
+ steps :
146
+ - name : Configure AWS Credentials
147
+ uses : aws-actions/configure-aws-credentials@v1
148
+ with :
149
+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
150
+ aws-region : us-west-2
151
+ role-duration-seconds : 7200
152
+ - name : Run migration test
153
+ uses : aws-actions/aws-codebuild-run-build@v1
154
+ with :
155
+ project-name : aws-sdk-java-v2-migration-test
Original file line number Diff line number Diff line change
1
+ version : 0.2
2
+
3
+ phases :
4
+ install :
5
+ runtime-versions :
6
+ java : " $JAVA_RUNTIME"
7
+
8
+ build :
9
+ commands :
10
+ - mvn clean install -pl :v2-migration-tests,:bom-internal -am -P quick $MAVEN_OPTIONS
11
+ - mvn install -pl :v2-migration-tests -P migration-tests -T2C $MAVEN_OPTIONS
12
+ finally :
13
+ - mkdir -p codebuild-test-reports
14
+ - find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;
15
+ reports :
16
+ IntegTests :
17
+ files :
18
+ - ' codebuild-test-reports/**/*'
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ Resources:
57
57
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-native-image-test
58
58
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-sonar
59
59
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-endpoints-test
60
+ - !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-migration-test
60
61
- Effect : Allow
61
62
Action :
62
63
- logs:GetLogEvents
@@ -69,6 +70,7 @@ Resources:
69
70
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-native-image-test:*
70
71
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-sonar:*
71
72
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-endpoints-test:*
73
+ - !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-migration-test:*
72
74
73
75
GithubOidc :
74
76
Type : AWS::IAM::OIDCProvider
Original file line number Diff line number Diff line change 191
191
<s3accessgrants .version>2.1.0</s3accessgrants .version>
192
192
193
193
<skip .unit.tests>${skipTests} </skip .unit.tests>
194
+ <v2 .migration.tests.skip>true</v2 .migration.tests.skip>
194
195
<integTestSourceDirectory >${project.basedir}/src/it/java</integTestSourceDirectory >
195
196
<javadoc .resourcesDir>${session.executionRootDirectory} </javadoc .resourcesDir>
196
197
<scm .github.url>https://github.com/aws/aws-sdk-java-v2</scm .github.url>
827
828
</properties >
828
829
</profile >
829
830
831
+ <profile >
832
+ <id >migration-tests</id >
833
+ <activation >
834
+ <activeByDefault >false</activeByDefault >
835
+ </activation >
836
+ <properties >
837
+ <v2 .migration.tests.skip>false</v2 .migration.tests.skip>
838
+ <checkstyle .skip>true</checkstyle .skip>
839
+ <spotbugs .skip>true</spotbugs .skip>
840
+ <mdep .analyze.skip>true</mdep .analyze.skip>
841
+ <japicmp .skip>true</japicmp .skip>
842
+ <javadoc .skip>true</javadoc .skip>
843
+ </properties >
844
+ </profile >
845
+
830
846
<profile >
831
847
<id >integration-tests</id >
832
848
<activation >
Original file line number Diff line number Diff line change 163
163
<skip >true</skip >
164
164
</configuration >
165
165
</plugin >
166
+ <plugin >
167
+ <artifactId >maven-surefire-plugin</artifactId >
168
+ <configuration >
169
+ <!-- Separate Codebuild for migration tests -->
170
+ <skipTests >${v2.migration.tests.skip} </skipTests >
171
+ <!-- Sets the VM argument line used when migration tests are run. -->
172
+ <argLine >${argLine} </argLine >
173
+ <trimStackTrace >false</trimStackTrace >
174
+ <rerunFailingTestsCount >2</rerunFailingTestsCount >
175
+ </configuration >
176
+ </plugin >
166
177
</plugins >
167
178
</build >
168
179
You can’t perform that action at this time.
0 commit comments