Commit Graph

233 Commits

Author SHA1 Message Date
joel.poyet 1779cdd6a5 Skip VoiceMessageCacheTests on the self-hosted runner
VoiceMessageCacheTests cannot write its URLFileProtection.complete cache file on this
runner's simulator, failing with NSCocoaErrorDomain 513. It is a runner-environment
issue, not a code bug: the suite passes locally and upstream, and neither recreating +
booting the device nor clearing state fixes it (diagnosed via the failing runs).

Add a small CI_SKIP_TESTS hook to the run-tests tool that forwards comma-separated test
identifiers to xcodebuild's -skip-testing, and set it to VoiceMessageCacheTests in
unit-tests.yml. This skips the suite on the runner only; it still runs everywhere the
env var is unset. Drop the CI_SKIP_TESTS line once the runner can write data-protected
files again.

Claude-Session: https://claude.ai/code/session_01PeF4yE5SDZV3zjXWk73osw
2026-07-17 16:27:30 +02:00
joel.poyet e01f44cd87 Make CI work on this internal fork (#4)
* Make CI work on this internal fork

Every check was red on every pull request. Upstream declares permissions: {} in its
workflows, which costs nothing on a public repo and is fatal here: the token is
limited to Metadata:read, so actions/checkout cannot read an internal repo and dies
with a misleading "Repository not found". Repo settings cannot fix it — an explicit
permissions block always overrides the default.

Each job now gets the minimum it needs. Danger also reads the pull request through
the issues API, so it needs issues:read alongside pull-requests:write, and zizmor's
SARIF upload needs actions:read on a private repo.

The unit tests move to the org's Mac Studio: GitHub-hosted macos-26 could not finish
inside the hour and bills at 10x. Preview tests are skipped there, using the flag
upstream already uses for its own enterprise tests — they render a snapshot per
preview and never once finished on either runner. The trade is that preview snapshot
regressions are no longer caught in CI.

Workflows that only make sense upstream are gated off rather than deleted, so they
keep rebasing cleanly. The enterprise tests need Element's bot token and their
private submodule. Three nightlies fail at checkout every weeknight — this repo is a
detached copy rather than a network fork, so GitHub never disabled their schedules —
and one of them posts to Element's Codecov on every run.

* Erase the test simulators before running the tests

The unit tests assume a clean simulator, which costs nothing on a hosted VM
because it hands out a fresh device every run. This runner reuses the same two
devices, so app containers, caches and logs survive between runs and six suites
fail on the previous run's leftovers rather than on anything in the code.
LoggingTests is the clearest: it expects no log files and finds nine, in the same
device container each time.

Only the two devices the tooling pins are erased, resolved by UDID. A blanket
erase would take out simulator state belonging to other work on a machine the
release pipeline shares.

* Remove the simulator reset again

It was added on the theory that the runner's reused simulators were leaking state
between runs. That theory was wrong: erasing both devices changed nothing — the
same seven suites failed identically before and after.

The leftover files LoggingTests trips on are its own, from a previous attempt of
the same test within one run (the suite runs with -test-iterations 4), so nothing
crosses runs for an erase to clean. Keeping a step that mutates shared state on the
release machine for no measured benefit is worse than not having it.
2026-07-16 14:34:48 +02:00
renovate[bot] c901238835 Update zizmorcore/zizmor-action action to v0.5.7 (#5801)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-29 11:11:45 +01:00
renovate[bot] 3f3aa79a48 Update actions/checkout action to v7 (#5791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-26 14:49:05 +01:00
Doug b38c216185 Add support for defining the text entry type on CompoundTextFieldStyle. (#5757)
* Add support for defining the text entry type on CompoundTextFieldStyle.

* Use Xcode 26.5 when running Compound tests too.
2026-06-18 19:18:44 +01:00
renovate[bot] 3ed4b132b6 Update GitHub Actions to v7 2026-06-14 10:40:43 +03:00
Mauro Romito de6dab3d22 update codecov action 2026-06-11 11:42:10 +02:00
renovate[bot] 8262533b6d Update GitHub Actions to v6.0.3 2026-06-10 16:58:31 +02:00
Mauro Romito f33a8800b9 add setup environment after checkout on the renovate action 2026-06-03 17:19:09 +02:00
renovate[bot] 5d8d96e3dc Update actions/stale action to v10.3.0 2026-05-28 07:55:35 +03:00
renovate[bot] 72002f408d Update codecov/codecov-action action to v6.0.1 2026-05-26 09:59:55 +03:00
renovate[bot] ff4fe6c728 Update zizmorcore/zizmor-action action to v0.5.6 2026-05-24 09:25:30 +03:00
renovate[bot] 5c4d0666a9 Update zizmorcore/zizmor-action action to v0.5.4 2026-05-22 12:40:13 +03:00
renovate[bot] 70d47f1169 Update actions/add-to-project action to v2 2026-05-11 09:59:07 +03:00
renovate[bot] 5f5fc15c11 Update dependency element-hq/compound-design-tokens to v10.1.1 (#5526)
* Update dependency element-hq/compound-design-tokens to v10.1.1

* Fix Compound workflow.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2026-05-01 23:52:06 +01:00
Stefan Ceriu fa2c3169b3 Fix the Update Acknowledgements renovate dependencies update workflow step by building the project instead of just resolving the dependencies 2026-04-24 15:19:37 +03:00
Stefan Ceriu 47de08125a Fix formatting .. according to Zed rules anyway 2026-04-21 17:19:50 +03:00
Stefan Ceriu bb311d19df Converge on the same CI bot name and email as the Swift CI scripts (Tools) 2026-04-21 17:19:50 +03:00
Stefan Ceriu ec054dde06 Rename github workflows so they all use hyphens, instead of a mix of underscores and hyphens 2026-04-21 17:19:50 +03:00
Stefan Ceriu 97bc5690d5 Fix removing the label in the record snapshots workflow. 2026-04-20 14:59:38 +03:00
Stefan Ceriu fac8930401 Try to fix the record_snapshots workflow trigger.. again 2026-04-20 12:53:25 +03:00
Stefan Ceriu 1fea0e6d50 Try to fix the record_snapshots workflow trigger 2026-04-20 12:52:04 +03:00
Stefan Ceriu 135390a96d Fix record_snapshots workflow trigger 2026-04-20 12:47:57 +03:00
Doug 117a96609a Use macOS 26 for all workflows. (#5442)
And check in an out-dated Package.resolved file.
2026-04-20 10:15:34 +01:00
Stefan Ceriu eb0758c04a Add a new workflow that runs the preview tests and re-records the snapshots for PRs that are labeled with record-snapshots 2026-04-20 11:54:44 +03:00
Doug 683c05019e Move the Acknowledgements generation to the post-renovate workflow. (#5438)
* Move the Acknowledgements generation to the post-renovate workflow.

* Use macOS 26.
2026-04-17 14:26:08 +01:00
Mauro Romito 4f73ffcbd9 update compound-ios sim creation in the runner 2026-04-17 15:22:15 +02:00
Stefan Ceriu bec882a3d0 Add a workflow that runs on top of Renovate XcodeGen PRs to update the project and resolved packages. 2026-04-17 15:11:48 +03:00
Doug 63422f8f6b Upgrade the project to use Xcode 26.4 (and the 26.4 simulator for tests). (#5375)
* Upgrade the project to use Xcode 26.4 (and iOS 26.4 when running tests).

* Update the test OS assertions.

* updated preview tests

# Conflicts:
#	PreviewTests/Sources/__Snapshots__/PreviewTests/homeScreenInviteCell.iPhone-en-GB-0.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/homeScreenInviteCell.iPhone-pseudo-0.png

* update compound preview tests

---------

Co-authored-by: Mauro Romito <mauro.romito@element.io>
2026-04-16 14:33:20 +02:00
renovate[bot] fe2319cada Update zizmorcore/zizmor-action action to v0.5.3 2026-04-14 11:29:08 +03:00
renovate[bot] 07b139b307 Update actions/upload-artifact action to v7.0.1 (#5381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-13 18:36:40 +01:00
renovate[bot] ea6a6dd794 Update peter-evans/create-pull-request action to v8.1.1 (#5380)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-10 18:44:10 +01:00
renovate[bot] 148b292ca6 Update actions/github-script action to v9 (#5372)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-10 13:04:55 +01:00
renovate[bot] dd7e255520 Update nschloe/action-cached-lfs-checkout action to v1.2.5 (#5368)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-10 13:04:44 +01:00
Stefan Ceriu 5dde7174bc Rename the stale-issues workflow to just stale as it handles PRs as well now 2026-04-03 09:11:54 +03:00
Stefan Ceriu e3d9ab1c14 Add PRs to the list of stale checks. 2026-04-03 09:11:54 +03:00
renovate[bot] 09970fdbab Update codecov/codecov-action action to v6 (#5309)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 11:09:28 +01:00
renovate[bot] 08a92c0dd0 Update codecov/codecov-action action to v5.5.4 (#5308)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-31 12:50:43 +01:00
renovate[bot] 8a65d613b1 Update codecov/codecov-action action to v5.5.3 (#5283)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 14:52:24 +00:00
renovate[bot] 671f8e7acd Update nschloe/action-cached-lfs-checkout action to v1.2.4 2026-03-16 16:21:36 +02:00
renovate[bot] efedfb5d45 Update zizmorcore/zizmor-action action to v0.5.2 2026-03-10 10:21:40 +01:00
Doug 51194c09e2 Add zizmor checks on CI. (#5161)
* Add zizmor checks on CI.

* Fix zizmor credentials warnings

* Add persist-credentials: false to action-cached-lfs-checkout too.

* Add empty permissions by default.

* Ignore pull_request_target failure and add a warning.
2026-03-05 13:54:51 +00:00
Stefan Ceriu fe4d607dc8 Silence all swift runs 2026-03-02 12:34:58 +02:00
Stefan Ceriu 6dd9f3f5e9 Replace the enterprise unit tests workflow with the new swift ones 2026-03-02 12:34:58 +02:00
Stefan Ceriu 1b55fb224c Add swift command for running integration tests 2026-03-02 12:34:58 +02:00
Stefan Ceriu d3cefb8e0b Add swift command for running UI tests 2026-03-02 12:34:58 +02:00
Stefan Ceriu aa423e3592 Update the enterprise submodule and use the new configure-element-pro command 2026-03-02 12:34:58 +02:00
Stefan Ceriu ef4a78ce53 Add swift command for running accessibility tests 2026-03-02 12:34:58 +02:00
renovate[bot] 98edee0ad3 Update actions/upload-artifact action to v7 2026-02-27 07:13:36 +02:00
Stefan Ceriu 0fc0e2880b Add a separate tools command for building nightly and remove the old fastlane one. 2026-02-26 18:43:49 +02:00