Tracing and integration test tweaks (#3336)
* Disable image and document picker integration tests as they randomly fail to load and are flakey. * Delete any pre-existing log files * Various tracing tweaks and fixes: - delete the custom tracing log levels as we can't control their ouput - implement comparable on them - change default levels only if the new chosen level increases their verbosity * Make logging targets mandatory and fix their logging levels * Switch back to using the `run_tests` reset simulator flag as `fastlane snapshot reset_simulators` was too generic and slow * Switch all integration test taps to `tapCenter` (nee forceTap) after noticing missed taps on CI. * Make the logging file prefix explicit, let the main app not use one. * Rename tracing configuration `target` to `currentTarget`
This commit is contained in:
6
.github/workflows/integration-tests.yml
vendored
6
.github/workflows/integration-tests.yml
vendored
@@ -30,8 +30,8 @@ jobs:
|
||||
run:
|
||||
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||
|
||||
- name: Reset simulators
|
||||
run: SNAPSHOT_FORCE_DELETE=1 bundle exec fastlane snapshot reset_simulators
|
||||
- name: Delete old log files
|
||||
run: find '/Users/Shared' -name 'console*' -delete
|
||||
|
||||
- name: Run tests
|
||||
run: bundle exec fastlane integration_tests
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
run: (grep ' TRACE ' /Users/Shared -qR)
|
||||
|
||||
- name: Check logs don't contain private messages
|
||||
run: (! grep 'Go down in flames' /Users/Shared -qR)
|
||||
run: "! grep 'Go down in flames' /Users/Shared -R"
|
||||
|
||||
- name: Zip results # for faster upload
|
||||
if: failure()
|
||||
|
||||
3
.github/workflows/unit_tests.yml
vendored
3
.github/workflows/unit_tests.yml
vendored
@@ -35,9 +35,6 @@ jobs:
|
||||
- name: SwiftFormat
|
||||
run:
|
||||
swiftformat --lint .
|
||||
|
||||
- name: Reset simulators
|
||||
run: SNAPSHOT_FORCE_DELETE=1 bundle exec fastlane snapshot reset_simulators
|
||||
|
||||
- name: Run tests
|
||||
run: bundle exec fastlane unit_tests
|
||||
|
||||
3
.github/workflows/unit_tests_enterprise.yml
vendored
3
.github/workflows/unit_tests_enterprise.yml
vendored
@@ -45,9 +45,6 @@ jobs:
|
||||
- name: SwiftFormat
|
||||
run: swiftformat --lint .
|
||||
|
||||
- name: Reset simulators
|
||||
run: SNAPSHOT_FORCE_DELETE=1 bundle exec fastlane snapshot reset_simulators
|
||||
|
||||
- name: Run tests
|
||||
run: bundle exec fastlane unit_tests skip_previews:true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user