-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into techievivek_workspace_chat_for_first_time_user
- Loading branch information
Showing
141 changed files
with
3,877 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Run e2e performance regression tests | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
|
||
jobs: | ||
e2e-tests: | ||
if: ${{ github.event.label.name == 'e2e' }} | ||
name: "Run e2e performance regression tests" | ||
# Although the tests will run on an android emulator, using macOS as its more performant | ||
runs-on: macos-11 | ||
steps: | ||
- uses: Expensify/App/.github/actions/composite/setupNode@main | ||
|
||
- uses: ruby/setup-ruby@08245253a76fa4d1e459b7809579c62bd9eb718a | ||
with: | ||
ruby-version: '2.7' | ||
bundler-cache: true | ||
|
||
# Improve emulator startup time, see https://github.com/marketplace/actions/android-emulator-runner | ||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: AVD cache | ||
uses: actions/cache@v3 | ||
id: avd-cache | ||
with: | ||
path: | | ||
~/.android/avd/* | ||
~/.android/adb* | ||
key: avd-28 | ||
|
||
- name: Create AVD and generate snapshot for caching | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 28 | ||
ram-size: 3072M | ||
heap-size: 512M | ||
force-avd-creation: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: false | ||
script: echo "Generated AVD snapshot for caching." | ||
|
||
# Note: if the android build fails the logs can be incomplete. It can help to run the build once manually to get a full log | ||
- name: Preheat build system | ||
env: | ||
JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }} | ||
run: | | ||
npm run android-build-e2e | ||
- name: Start emulator and run tests | ||
id: tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
env: | ||
JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }} | ||
INTERACTION_TIMEOUT: 120000 # 2 minutes | ||
# when logging progresses only refresh the _log_ every 30 seconds | ||
LOGGER_PROGRESS_REFRESH_RATE: 30000 | ||
# TODO: remove this once implementation done. | ||
baseline: dev/ci-e2e-tests | ||
with: | ||
api-level: 28 | ||
ram-size: 3072M | ||
heap-size: 512M | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: npm run test:e2e | ||
|
||
- name: If tests failed, upload logs and video | ||
if: ${{ failure() && steps.tests.conclusion == 'failure' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-failure-logs | ||
path: e2e/.results | ||
retention-days: 5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,8 @@ storybook-static | |
# Jest coverage report | ||
/coverage.data | ||
/coverage/ | ||
|
||
.jest-cache | ||
|
||
# E2E test reports | ||
e2e/.results/ |
Oops, something went wrong.