Commit Graph

66 Commits

Author SHA1 Message Date
joel.poyet 1cf01cdc62 Add member directory tab to home navigation (#3)
* feat(healthchat): add member directory tab to home navigation

Third bottom-nav tab backed by the HealthChat API: searchable member
cards with native start-chat, approval-pending banner, retry on
failure and navigation into the native profile screens.

* fix(healthchat): stop tab back handler swallowing back presses

While a screen is pushed on top of Home, the still-composed tab
BackHandler intercepted back presses during the transition and
invisibly switched to the Chats tab. Gate it on the node's target
visibility in both the parent and Home's own backstack.

* fix(healthchat): satisfy detekt, ktlint and konsist rules

Import alias order, composable parameter order in HomeView, and konsist presenter helper shape.

* ci: pass the real repository name to the screenshot recorder

recordScreenshots.yml set GITHUB_REPOSITORY from `secrets.GITHUB_REPOSITORY`.
No such secret exists on this fork, so the expression expands to an empty
string and overrides the built-in environment variable of the same name.
recordScreenshots.sh checks it up front and exits 1 with "No repo specified",
so the workflow could never record anything here.

Use the `github.repository` context instead, which is always populated.

Claude-Session: https://claude.ai/code/session_01MQbp1EPM4TSXq8P8Pyq44F

* Update screenshots

* Revert "Update screenshots"

This reverts commit b99e0d643f.

* Reapply "Update screenshots"

This reverts commit 85bceb6d67.

* test(screenshots): stop a LayoutLib teardown crash failing the shard tests

Paparazzi 2.0.0-alpha05 / LayoutLib 16.2.1 races on HandlerThread startup:
HandlerThread_Delegate.run calls Process.setThreadPriority, which throws
NoSuchMethodError for Thread.setPosixNicenessInternal and kills the
"android.bg" thread. If the test thread reaches getLooper() after that, it
gets null, BackgroundThread.ensureThreadReady() NPEs, and the static
initialiser of LatencyTracker fails. The JVM then marks that class erroneous
for the lifetime of the fork, so every later preview showing the soft
keyboard dies with NoClassDefFoundError.

LayoutLibErrorFilterStatement already swallowed the bare NoSuchMethodError,
but PaparazziLogger re-throws collected background errors from teardown()
wrapped in a MultipleFailuresException when there is more than one, and that
wrapper slipped through. A recent run reported 17 failures with zero image
comparisons failing and zero delta images written.

Unwrap the wrapper by reflection and swallow it only when every collected
cause matches the known-bug list; anything unrecognised, and anything that
cannot be decomposed, is rethrown.

Also close a hole this filter had from the start. Paparazzi runs the test as
`try { body } finally { teardown() }`, so a teardown error discards whatever
the body threw — including a genuine snapshot mismatch. renderFailureCapture
is registered inside the Paparazzi rule to record the body's exception so it
wins over any teardown error, and the filter refuses to swallow anything if
that rule is not registered. Two HorizontalFloatingToolbar previews have been
mismatching silently behind this, and may now surface as real failures.

Claude-Session: https://claude.ai/code/session_01MQbp1EPM4TSXq8P8Pyq44F

---------

Co-authored-by: ElementBot <android@element.io>
2026-10-19 08:56:59 +02:00
Sedat Qaja 708535469e ci: run the fork's pipelines on the self-hosted runners
Squash of ten CI commits from 2026-08-04 (all part of HealthChat release 26.08.0):

- ci(release): move releases to the persistent self-hosted runners
- ci: grant contents:read so checkout works on this private fork
- ci: disable the Label Community PRs job on this fork
- ci: run the heavy Gradle jobs on the self-hosted runners
- ci: rely on the runner image for the Android SDK
- ci: size the Gradle heap for the self-hosted containers
- ci: report runner capacity on the self-hosted jobs
- ci: record why the Gradle heap is reduced
- ci: cap Gradle workers so test JVMs fit the container
- ci: skip the codecov upload when no token is configured

The danger.yml hunk from the contents:read commit is omitted: upstream
replaced Danger with a github-script workflow in v26.09.
2026-10-19 08:47:32 +02:00
renovate[bot] 7be369a5da Update gradle/actions action to v6.4.0 2026-10-06 06:37:04 +00:00
renovate[bot] ca753ee600 Update actions/setup-java action to v6.0.1 2026-09-17 12:54:12 +00:00
renovate[bot] dd8877e6cd Update actions/setup-java action to v6 (#7614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-03 09:27:24 +02:00
renovate[bot] 9a5aab2d73 Merge pull request #7384 from element-hq/renovate/gradle-actions-6.x
Update gradle/actions action to v6.3.0
2026-08-11 11:52:02 +02:00
renovate[bot] 481407329f Update actions/setup-java action to v5.7.0 (#7339)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-10 16:03:45 +02:00
renovate[bot] bce559dc1b Update actions/setup-java action to v5.6.0 2026-07-23 16:52:37 +00:00
renovate[bot] eddac3eaaa Update actions/setup-java action to v5.5.0 2026-07-21 08:21:05 +00:00
renovate[bot] 31d4ba3793 Update actions/setup-java action to v5.4.0 (#7143)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-06 09:06:24 +02:00
renovate[bot] 03fb97ce6e Update actions/setup-java action to v5.3.0 2026-06-23 19:14:52 +00:00
renovate[bot] 0cb04c714a Update gradle/actions action to v6.2.0 (#7063)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-22 08:25:40 +02:00
renovate[bot] 8e616f5268 Merge pull request #7037 from element-hq/renovate/gradle-actions-6.x
Update gradle/actions action to v6.1.1
2026-06-17 14:01:38 +02:00
Jorge Martin Espinosa 90ed385745 Fix record screenshots action permissions (#6679) 2026-04-28 11:17:57 +00:00
renovate[bot] 67c0e4c140 Update nschloe/action-cached-lfs-checkout action to v1.2.5 (#6600)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-16 15:26:20 +02:00
renovate[bot] bf1948185e Update gradle/actions action to v6.1.0 2026-04-10 18:15:06 +00:00
renovate[bot] a44cf4335b chore(deps): update gradle/actions action to v6 (#6489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 15:13:07 +02:00
renovate[bot] 5b241555d5 chore(deps): update nschloe/action-cached-lfs-checkout action to v1.2.4 2026-03-23 13:40:04 +00:00
Benoit Marty 2ee5b6a4f0 Fix permissions issue. 2026-03-16 15:34:09 +01:00
Benoit Marty a7e3c0a754 Remove all permission by default. 2026-03-05 15:39:55 +01:00
Benoit Marty 9a59c06f6a Use commit instead of version for github actions. 2026-03-05 15:39:54 +01:00
Jorge Martin Espinosa 8aed1c2ab8 Fix nightly CI issues (#6263)
* Reduce max heap size from 9GB to 8GB for all CI jobs using gradle
2026-02-27 09:31:50 +00:00
Jorge Martin Espinosa 7a7a473c82 Add free disk space action to CI actions (#6212)
* Add free disk space action

* Remove 'upload APK for Maestro' step since it's no longer used

* Re-enable tool-cache removal

* Add the free disk space step to other gradle-related jobs

* Use commit SHA

* Disable removing `large-packages`
2026-02-18 22:55:50 +01:00
renovate[bot] d2dfc04248 chore(deps): update gradle/actions action to v5 (#5444)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 16:49:43 +02:00
renovate[bot] 00ae3a9968 Update actions/setup-java action to v5 (#5196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-21 08:35:01 +02:00
Benoit Marty 04083cab31 Pin commit sha on GitHub actions (#4653)
* Use Git SHA instead of version.

* Use version instead of main branch.
2025-04-29 09:08:06 +02:00
renovate[bot] f130df15d1 Update nschloe/action-cached-lfs-checkout action to v1.2.3 2024-12-10 15:01:25 +00:00
Jorge Martín eb78f32e8c Fix screenshot recording in CI 2024-10-04 15:53:14 +02:00
Jorge Martin Espinosa f9cdb5af70 Disable configuration cache in the CI by default (#3601) 2024-10-04 13:57:46 +02:00
Jorge Martin Espinosa f8fa218146 Upgrade the used JDK in the project to v21 (#3582)
* Upgrade the used JDK in the project to v21

* Use it for CI too

* Centralise java language version

* Fix deprecations, tests and lint issues

* Fix coverage taking into account `@Preview` annotated code.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-03 09:38:03 +00:00
Jorge Martin Espinosa 79c17f714f Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Jorge Martin Espinosa 7e37bf4a36 Try adding a memory limit for the kotlin compiler (#3377)
* Try adding a memory limit for the kotlin compiler

* Tweak values for all flows
2024-09-04 19:33:50 +00:00
renovate[bot] 250f0706fb Update gradle/actions action to v4 (#3265)
* Update gradle/actions action to v4

* Remove unnecessary gradle validation after action update to v4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-08-09 15:03:14 +02:00
Jorge Martin Espinosa c9e0db26d8 Try to workaround OOM errors and the runners dying (#3013)
* Try to workaround OOM errors and the runner dying

* Some more tweaks:

- Add `-XX:MaxMetaspaceSize` (https://github.com/gradle/gradle/issues/19750)
- Remove `-PpreDexEnable` as it's deprecated and no longer used.
- Remove `--max-workers` as gradle will automatically use the optimal amount.

* Remove `--max-workers` in recording screenshots too
2024-06-12 15:35:51 +02:00
Jorge Martin Espinosa 58c05ade65 Try fixing OOM by changing GC and adding RAM to the kotlin compiler (#2965)
* Try fixing OOM by changing GC and adding RAM to the kotlin compiler

* Add gradle cache to build apk job in maestro flow.

- Remove unnecessary dependency in `:features:call` module.

* Fix sonar in nightly reports

* Bump heap size of nightly reports
2024-06-03 11:28:51 +02:00
Jorge Martin Espinosa bb672d3bc7 Bump max heap size for building the debug APK for Maestro (#2960)
* Bump max heap size for building the debug APK for Maestro
* Enable `sonar.gradle.skipCompile`
* Fix sonar job
* Bump the MaxMetaspaceSize
* Don't try to upload failed test results to codecov, it doesn't work
2024-05-31 14:44:33 +00:00
Jorge Martin Espinosa edf01cf8a7 Bump CI max JVM heap size and CPU usage (#2444)
* Bump CI max JVM heap size and CPU usage

* Bump Heap size a bit more for `build`

* Bump Heap size for tests too
2024-02-27 11:26:56 +01:00
Benoit Marty eba1571ad0 Migrate form gradle/gradle-build-action to gradle/actions/setup-gradle
https://github.com/gradle/gradle-build-action
2024-02-01 14:53:28 +01:00
renovate[bot] 6a96bcb07a Update gradle/gradle-build-action action to v3 2024-01-31 11:34:52 +00:00
renovate[bot] a98749bad7 Update gradle/gradle-build-action action to v2.12.0 2024-01-24 22:25:02 +00:00
Jorge Martin Espinosa 0381027dae Restore Github PAT in record screenshots, disable Maestro for forks (#2147)
* Restore PAT for `recoverScreenshots.yml` flow.

This is needed to trigger CI jobs automatically. In the case where this is not possible (forks) a message will be added to ask the user to add an empty commit to trigger the CI.

* Add community PR notice

* Disable Maestro steps for fork PRs
2024-01-03 12:26:46 +01:00
Jorge Martín 8daf5150af Fix record screenshots workflow and script 2024-01-02 10:43:57 +01:00
renovate[bot] 275e56b39e Update gradle/gradle-build-action action to v2.11.1 2023-12-20 06:42:17 +00:00
renovate[bot] 7ccfb810d6 Update gradle/gradle-build-action action to v2.11.0 2023-12-13 07:34:48 +00:00
renovate[bot] 2ea79709d1 Update actions/setup-java action to v4 2023-11-29 16:04:07 +00:00
renovate[bot] 2ba771dcb7 Update gradle/gradle-build-action action to v2.10.0 2023-11-27 09:30:38 +00:00
Jorge Martin Espinosa e13b204f4b Run 'record screenshots' flow if label is present (#1860)
* Run 'record screenshots' flow if label is present

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-23 08:25:33 +01:00
renovate[bot] 9e66180d20 Update kotlin (#1697)
* Update kotlin

* Lower Sonar RAM usage, remove redundant `Dkotlin.daemon.jvm.options`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-08 12:58:14 +00:00
Jorge Martin Espinosa b57fddf19c Lower max RAM usage for gradle to avoid CI issues (#1766) 2023-11-08 09:45:55 +00:00
Jorge Martin Espinosa 1f5a135072 Use Parallel GC and bump RAM usage (#1734)
* Use Parallel GC and bump RAM usage

* Build only `app` project in `Build APKs (debug)` flow.

* Remove redundant JNA dependency
2023-11-03 10:34:49 +01:00