Skip to content

Commit

Permalink
add tracking for other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle committed Sep 18, 2023
1 parent 40bc191 commit 97b9909
Show file tree
Hide file tree
Showing 12 changed files with 217 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dart_dart2js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,23 @@ jobs:
if: "always() && steps.bootstrap.conclusion == 'success'"
run: dart run build_runner test --release --delete-conflicting-outputs -- -p ${{ matrix.browser }}
working-directory: ${{ inputs.working-directory }}

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.sdk }} ${{ matrix.browser }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: dart_dart2js
framework: dart
flutterDartChannel: ${{ matrix.sdk }}
dartCompiler: dart2js
platform: web
platformVersion: ${{ matrix.browser }}
20 changes: 20 additions & 0 deletions .github/workflows/dart_ddc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,23 @@ jobs:
if: "always() && steps.bootstrap.conclusion == 'success'"
run: dart run build_runner test --delete-conflicting-outputs -- -p ${{ matrix.browser }}
working-directory: ${{ inputs.working-directory }}

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.sdk }} ${{ matrix.browser }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: dart_ddc
framework: dart
flutterDartChannel: ${{ matrix.sdk }}
dartCompiler: ddc
platform: web
platformVersion: ${{ matrix.browser }}
19 changes: 19 additions & 0 deletions .github/workflows/dart_native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,22 @@ jobs:
if: "always() && steps.bootstrap.conclusion == 'success'"
run: dart test --exclude-tags=build
working-directory: ${{ inputs.working-directory }}

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.os }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: dart_native
framework: dart
flutterDartChannel: ${{ matrix.sdk }}
dartCompiler: native
platform-version: ${{ matrix.os }}
18 changes: 18 additions & 0 deletions .github/workflows/dart_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,21 @@ jobs:
if: "always() && steps.bootstrap.conclusion == 'success' && steps.testCheck.outputs.hasTests == 'true' && matrix.sdk != 'stable'"
run: dart test --exclude-tags=build
working-directory: ${{ inputs.working-directory }}

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.sdk }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: dart_vm
framework: dart
flutterDartChannel: ${{ matrix.sdk }}
dartCompiler: vm
18 changes: 18 additions & 0 deletions .github/workflows/e2e_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,21 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
script: aft exec --include=${{ inputs.package-name }} -- small=true "<AFT_ROOT>/build-support/integ_test.sh" -d emulator-5554 --retries 1

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: e2e-test (${{ matrix.api-level }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: integration
category: ${{ inputs.package_name }}
workflow-name: e2e_android
framework: flutter
platform: android
platform-version: ${{ matrix.api-level }}
17 changes: 17 additions & 0 deletions .github/workflows/e2e_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ jobs:
- name: Run integration tests
timeout-minutes: 60
run: aft exec --include=${{ inputs.package-name }} -- small=true "<AFT_ROOT>/build-support/integ_test_ios.sh" -d test

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: e2e-test
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: integration
category: ${{ inputs.package_name }}
workflow-name: e2e_ios
framework: flutter
platform: ios
17 changes: 17 additions & 0 deletions .github/workflows/e2e_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,20 @@ jobs:
run: |
flutter config --enable-linux-desktop
aft exec --include=${{ inputs.package-name }} -- "<AFT_ROOT>/build-support/integ_test.sh" -d linux
- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: e2e-test
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: integration
category: ${{ inputs.package_name }}
workflow-name: e2e_linux
framework: flutter
platform: linux
17 changes: 17 additions & 0 deletions .github/workflows/e2e_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,20 @@ jobs:
run: |
chromedriver --port=4444 &
aft exec --include=${{ inputs.package-name }} -- "<AFT_ROOT>/build-support/integ_test.sh" -d web-server
- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: e2e-test
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: integration
category: ${{ inputs.package_name }}
workflow-name: e2e_web
framework: flutter
platform: web
17 changes: 17 additions & 0 deletions .github/workflows/e2e_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,20 @@ jobs:
run: |
flutter config --enable-windows-desktop
dart pub global run aft exec --include=${{ inputs.package-name }} -- flutter test integration_test/main_test.dart -d windows
- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: e2e-test
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: integration
category: ${{ inputs.package_name }}
workflow-name: e2e_windows
framework: flutter
platform: windows
18 changes: 18 additions & 0 deletions .github/workflows/flutter_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,21 @@ jobs:
if: inputs.has-native-tests
run: ./gradlew :"${{ inputs.package-name }}":testDebugUnitTest --stacktrace
working-directory: ${{ inputs.example-directory }}/android

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.channel }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: flutter_android
framework: flutter
flutterDartChanne: ${{ matrix.channel }}
platform: android
18 changes: 18 additions & 0 deletions .github/workflows/flutter_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,21 @@ jobs:
-scheme Runner \
-destination "$XCODEBUILD_DESTINATION" | xcpretty
working-directory: ${{ inputs.example-directory }}/ios

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.channel }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: flutter_ios
framework: flutter
flutterDartChanne: ${{ matrix.channel }}
platform: ios
18 changes: 18 additions & 0 deletions .github/workflows/flutter_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,21 @@ jobs:
with:
name: golden-failures-${{ matrix.channel }}-${{ matrix.flutter-version }}
path: ${{ inputs.working-directory }}/test/ui/failures/

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
job-identifier: test (${{ matrix.channel }}, ${{ matrix.flutter-version }})
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
category: ${{ inputs.package_name }}
workflow-name: flutter_vm
framework: flutter
flutterDartChanne: ${{ matrix.channel }}
flutterVersion: ${{ matrix.flutter-version }}

0 comments on commit 97b9909

Please sign in to comment.