-
Notifications
You must be signed in to change notification settings - Fork 53
PTS improvements #566
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
PTS improvements #566
Changes from all commits
f5b2cc8
68ac58e
15af1aa
4929580
277464d
c2239b6
21ffe45
7d2bc51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ on: | |
| push: | ||
| branches: [ main, citest ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
|
|
@@ -16,7 +15,7 @@ jobs: | |
| - id: setup-matrix | ||
| run: echo "matrix=$(jq -cM '.supportedVersions | keys' src/main/resources/versions.json | sed -e 's/\./_/g' -e 's/-/_/g')" >> $GITHUB_OUTPUT | ||
| - name: debug | ||
| run: echo ${{ steps.setup-matrix.outputs.matrix }} | ||
| run: echo "matrix=${{ steps.setup-matrix.outputs.matrix }}" | ||
| outputs: | ||
| matrix: ${{ steps.setup-matrix.outputs.matrix }} | ||
|
|
||
|
|
@@ -48,10 +47,15 @@ jobs: | |
| - name: Set up Gradle | ||
| uses: gradle/gradle-build-action@v2 | ||
| - name: Run unit tests | ||
| run: ./gradlew test -x signPluginMavenPublication -x signAndroidCacheFixPluginPluginMarkerMavenPublication -Porg.gradle.java.installations.auto-download=false | ||
| run: >- | ||
| ./gradlew test | ||
| -x signPluginMavenPublication | ||
| -x signAndroidCacheFixPluginPluginMarkerMavenPublication | ||
| -Porg.gradle.java.installations.auto-download=false | ||
| -Dpts.mode=$PTS_MODE | ||
| env: | ||
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }} | ||
| ORG_GRADLE_PROJECT_isPTSEnabled: ${{ github.ref_name != 'main' }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to use variable here to set the remaining tests mode inline instead of having an action to set it? something like
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for looking in to this. While there is some duplication in this solution, i prefer the simplicity of it. It also makes it easier to use as an example for customers. |
||
| PTS_MODE: "${{ github.ref_name == 'main' && 'REMAINING_TESTS' || 'RELEVANT_TESTS' }}" | ||
|
|
||
| android_version_tests: | ||
| name: Android version tests | ||
|
|
@@ -99,7 +103,12 @@ jobs: | |
| - name: Set up Gradle | ||
| uses: gradle/gradle-build-action@v2 | ||
| - name: Run integration tests | ||
| run: ./gradlew testAndroid${{ matrix.versions }} -x signPluginMavenPublication -x signAndroidCacheFixPluginPluginMarkerMavenPublication -Porg.gradle.java.installations.auto-download=false | ||
| run: >- | ||
| ./gradlew testAndroid${{ matrix.versions }} | ||
| -x signPluginMavenPublication | ||
| -x signAndroidCacheFixPluginPluginMarkerMavenPublication | ||
| -Porg.gradle.java.installations.auto-download=false | ||
| -Dpts.mode=$PTS_MODE | ||
| env: | ||
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }} | ||
| ORG_GRADLE_PROJECT_isPTSEnabled: ${{ github.ref_name != 'main' }} | ||
| PTS_MODE: "${{ github.ref_name == 'main' && 'REMAINING_TESTS' || 'RELEVANT_TESTS' }}" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| - [NEW] Run tests against AGP 8.3.0-alpha01 | ||
| - [NEW] Run tests against AGP 8.2.0-beta01 | ||
| - [NEW] Run tests against AGP 8.1.1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this showing a diff? is there a whitespace change?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think it was without the newline at the end before. It's weird though, as I resolved it to the main branch variant of it when merging.. |
||
| - [NEW] Run tests against AGP 8.1.1 | ||
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.
just curious, why this change?
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.
Oh, it's still left from the first variant where I set the PTS mode in that job, but I still left it in as it's more verbose when looking at logs. I can remove this change if wanted.
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.
let's leave it how it originally was to simplify and reduce the changeset.