123 Commits

Author SHA1 Message Date
manuroe
2ae96617e8 Update bug.yml
Mentionning iPhone X looks old those days.
2024-12-25 21:01:56 +02:00
Stefan Ceriu
e5da7ebd2d Various danger swift rule tweaks
* remove the ticket number check, it's noisy
* remove signoff now that we have cla checks
* fix description image attachments check
2024-12-13 17:43:25 +02:00
ElementRobot
ba8edc31c7
Translations update (#3552)
* Translations update

* Run the workflow at 3am instead.

---------

Co-authored-by: Velin92 <34335419+Velin92@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2024-11-25 12:20:34 +00:00
Doug
4e880f1924
Fix incorrect analytics mapping for UTDs. (#3497)
* Fix incorrect analytics mapping for UTDs.

* Upgrade GitHub workflows to use macOS 15.
2024-11-08 08:36:15 +00:00
Doug
5d35a74fb6
Switch UI tests back to the perf-only runner. (#3349) 2024-09-30 11:13:14 +01:00
Stefan Ceriu
bd3f80143b Switch codecov-Action@v3 to v0.7.3 so it runs on Intel macs 2024-09-30 11:59:08 +03:00
Stefan Ceriu
be09f77ae2 Switch the integration tests to the perf-only runner 2024-09-30 11:59:08 +03:00
Stefan Ceriu
9d23dec2e9
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`
2024-09-27 15:08:47 +03:00
Doug
4d7d687954
Start fixing flakey tests ❄️ (#3329)
* Wait longer on authentication flow tests.

* Move default perceptualPrecision value into the snapshot preferences.

* Delay snapshots *before* setting up the test.

* Reset the simulators on GitHub before running?

* Remove a test that is now handled by Rust.

* Fix a test that was yielding.
2024-09-26 16:09:01 +01:00
Stefan Ceriu
dc6d7f2985
Integration test improvements (#3330)
* Send a message from integration tests and check that it doesn't show up in the app logs
* Increase photo library timeout

* Wait for image tapping to process

* Send a message using the rich text editor too

* Wait for the various pickers to finish loading

* Set all logs to `trace` in integration tests

* Close formatting options after sending the second message

* Make sure logs are actually sent to tracing and get redirected to the right file

* Switch from using a custom `trace` log configuration to the lowest level `TracingConfiguration` we support
2024-09-26 10:15:09 +03:00
Stefan Ceriu
5acfb5dd87 Try to stop random codecov test result action failures from failing the whole test run. 2024-09-18 15:22:34 +03:00
Doug
022cc59d56
Try uploading test results to Codecov. (#3266) 2024-09-12 07:09:15 +01:00
Stefan Ceriu
f264c2559c Free up CI runner disk space before running UI tests. 2024-09-10 18:23:13 +03:00
Stefan Ceriu
c8cb65c92b Update bug.yml 2024-09-10 15:18:11 +03:00
Stefan Ceriu
f6c8aae09e Switch codecov-action back to v3 as 4 significantly decreases coverage
- previously seen in https://github.com/element-hq/element-x-ios/pull/2727
2024-09-10 11:55:18 +03:00
Stefan Ceriu
dc85cb10ed Stop running and publishing performance metrics to gh-pages 2024-09-05 13:49:56 +03:00
renovate[bot]
c132f67913 Update GitHub Actions 2024-09-03 18:21:22 +03:00
Stefan Ceriu
c73a60dca7 Revert "Update GitHub Actions"
This reverts commit a6cdbc3329d68021849342c059cc928a503c20b1.
2024-09-03 18:14:28 +03:00
renovate[bot]
a6cdbc3329 Update GitHub Actions 2024-09-03 15:50:57 +03:00
Doug
aa71f10b40
Run the integration tests on GitHub again. (#3052) 2024-07-17 10:16:43 +01:00
Doug
c92c6a28ae
Upgrade the project to use Xcode 15.4 (#3027)
* Update snapshots for Xcode 15.4

* Update CI.

* Fix crashing UI test.

* Fix compile error in Integration Tests.

* Try putting UI tests on GH runners again.
2024-07-11 17:38:32 +01:00
Doug
1178561853
Setup unit tests for Enterprise. (#2984)
* Fix Analytics on Enterprise.
2024-07-01 12:34:47 +01:00
Doug
5b58ea30f6
Add changelog labels to PRs from Localazy and Renovate. (#2981) 2024-06-27 15:50:41 +01:00
Doug
152ecc6f9c
Trigger a Danger run when labelling a PR too. (#2972) 2024-06-27 11:33:47 +01:00
Doug
82823c94ce
Replace Towncrier with GitHub releases + labels. (#2966)
* Set up GitHub generated release notes.

* Remove Towncrier from the release script.

* Add changelog failures for Labels with Danger and stop requesting a changelog file.

* Update changelog documentation.
2024-06-25 11:07:01 +00:00
renovate[bot]
8c68968e5b Update apple-actions/import-codesign-certs action to v3 2024-05-20 14:34:00 +01:00
renovate[bot]
3b82ce8def Update NejcZdovc/comment-pr action to v2 2024-05-20 12:48:15 +01:00
renovate[bot]
00f04df6c1 Update dependency macos to v14 2024-05-20 12:21:42 +01:00
renovate[bot]
19a8f60976 Update actions/upload-artifact action to v4 2024-05-20 11:19:12 +01:00
renovate[bot]
1ef3cbc5b9 Update peter-evans/create-pull-request action to v6 2024-05-20 11:16:59 +01:00
renovate[bot]
f197368dba Update actions/checkout action to v4 2024-05-20 11:14:18 +01:00
renovate[bot]
7d5d150d26 Update actions/cache action to v4 2024-05-20 11:11:46 +01:00
manuroe
a3ec0b8505
Codecov: Add token for codecov-action@v3 to fix coverage report (#2727)
Moving to v4 is blocked because of a fundamental issue with https://github.com/codecov/codecov-action/issues/1279 on our mac runners and because the reported coverage is [decreasing with v4](https://app.codecov.io/gh/element-hq/element-x-ios/pull/2719/flags)
2024-04-22 14:59:51 +02:00
Stefan Ceriu
48b06519f9 Replace deprecated danger-swift-with-swiftlint docker image 2024-04-15 10:43:17 +03:00
Stefan Ceriu
0fc0ad101e Remove the unit tests derived data caching step 2024-04-09 18:18:11 +03:00
Stefan Ceriu
98af0ae169
UI test shenanigans (#2611)
* Hardcode Xcode 15.2 as there are multiple versions available on the performance runner

* Remove the derived data caching step as it's not necessary on the performance runner.
2024-03-27 14:10:20 +02:00
Stefan Ceriu
92eaa7075a
UI test cleanup (#2598)
* Stop running the UI tests on the double localized pseudolanguage

* Fix UI tests signalling comms problem because the json key ordering wasn't defined and the messages wouldn't match.

* Remove UI tests that are now the same as preview tests (i.e. non flow based, only screen based), fixed the rest so they run on iOS 17.2, the iPhone 15 and iPad 10th gen simulators.

* Remove unnecessary gitignore instructions, change UI test snapshot naming convention to be more similar to the unit test ones

* Enable derived data and spm checkout caching for UI tests

* Switch UI tests back to the perf-only runner, moved the integration tests to the iPhone 15 Pro simulator.

* Address PR comments
2024-03-25 17:34:11 +02:00
Stefan Ceriu
bc869e7a40 Remove unnecessary ref from lfs checkout, switch to only using the major version 2024-03-25 12:30:10 +02:00
Stefan Ceriu
d65199a614 Cache Xcode derived data and SPM packages for unit tests 2024-03-25 12:30:10 +02:00
Stefan Ceriu
a64631270a Revert "Revert "Switch the UI tests to the github macos-14 runner""
This reverts commit 7903472e9b898c0eb652b7d7936339494fcac122.
2024-03-25 10:58:26 +02:00
Stefan Ceriu
83f5ae9192
Prefire multiple devices (#2543)
* Update Prefire, setup multiple snapshot devices and languages
Squashed commits:
[28cb4ae6d] Switch to macos-14, iOS 17 and the iPhone 15 simulator
[080fc82cb] Update snapshots
[c874ca9c7] Bump Compound and Prefire, reduce perceptual precission to 0.98
[a59b8a54c] Update snapshots after adding iPad and pseudolanguage snapshotting
[f30cc3277] Setup multi-language snapshotting
[aeb11c7e7] Update prefire template, setup multiple snapshot devices

* Update ruby dependencies and fastlane plugins

* Bump Compound, switch back to the original prefire - version 2.0.4

* Remove preview test simulator version specifiers
2024-03-12 13:08:54 +02:00
Doug
b0f109a023 Only install imagemagick when needed.
Workaround for issues installing python from brew on a runner right now.
2024-03-11 12:16:09 +00:00
Doug
b54d87efd5
Zip results from Unit Test failures (#2542)
* Zip uploaded unit test results on failure.

Add a failure to test.

Revert "Add a failure to test."
2024-03-07 18:55:02 +00:00
Doug
5f0c782ce2
Use xcresultparser in all workflows. (#2510)
* Fix integration tests.
2024-02-28 18:01:20 +00:00
Doug
a3b3aa8517
Move PreviewTests into their own scheme. (#2492)
* Use xcresultparser for coverage as there are 2 schemes now.
2024-02-22 15:13:52 +00:00
Mauro
6f0dd83b1e
improved workflow (#2488) 2024-02-20 13:05:31 +01:00
Doug
a64ad5ddf6
Add issue template for a new Task. 2024-01-19 11:37:45 +00:00
Stefan Ceriu
756b96f7ff
Translation workflow fix (#2271)
* Setup the translations workflow through ci_scripts
2023-12-19 19:50:04 +02:00
Doug
09b276d94b
Update most references of vector-im to element-hq (#2231)
Sonarcloud and codecov will follow in a later PR when confirmed working. Changelog ignored as it isn't particularly important with the redirect.
2023-12-12 14:34:44 +00:00
Doug
d03c97a02a
Switch to Xcode 15 (with the iOS 16.4 Simulator for tests still) (#2113)
* Use Xcode 15 in GitHub actions.

Use iOS 16.4 simulators from Xcode 14 as iOS 17.0.1 simulators are **super** slow.

* Fix failing preview snapshots.

Snapshot fix.

* Improve setup

* Regenerate snapshots that had a conflict.

---------

Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
2023-11-21 16:25:18 +00:00