Commit Graph
59 Commits
Author SHA1 Message Date
Dat H. Pham ce211a0354 ci: upload gym log artifact on iOS build failure 2026-05-22 17:56:47 +07:00
dab246 6443ef80b1 Update CI cache key to hash single workspace pubspec.lock 2026-05-21 13:25:43 +07:00
Dat Dang 3851df15c6 Patrol isolate Android tests (#4469)
* Patrol POC replace Firebase Test Lab with local Android emulator

Replace GCloud auth, Firebase Test Lab, and ngrok with a local Android AVD via
reactivecircus/android-emulator-runner on CI. The backend runs in Docker and is
reachable from the emulator at the QEMU host alias 10.0.2.2.

CI / scripts:
- Remove Google Cloud auth, Firebase run step, and ngrok tunnel
- Add KVM, Gradle, and AVD cache setup; shard tests across 4 parallel runners
- Scripts: drop ngrok, point jmap.properties to 10.0.2.2, manage cleanup via trap
- prebuild.sh: parallelize module builds, suppress noisy output
- provisioning.sh: parallelize james-cli/curl calls, fix hardcoded container IP

Backend reset for test isolation:
- Add backend-reset-server.py: HTTP server that restarts tmail-backend and
  re-runs provisioning on POST /reset, so each test starts with a clean state
- Add BackendResetClient.dart: Dart client called in patrolTearDown
- Reduce visibleTimeout 30s → 10s; allow insecure connections in debug mode

* Patrol POC fix flaky tests

Replace fixed pumpAndSettle delays with waitUntilVisible/waitUntilExists so
tests react to actual UI state rather than arbitrary timeouts.

- Add PatrolFileExtensions.toFileInfo() and use it in composer robot/scenario utils
- Guard MobileEditorWidget.dispose() under isIntegrationTesting to prevent teardown crash
- Fix scroll direction (AxisDirection.down) in calendar attendee button scroll
- Add scrollTo() before tap in label modal robot and edit-tag scenario
- Wait on EmailTileBuilder (not label name) after email provisioning — more reliable
- Inline image: wait for HtmlContentViewer to contain base64 data before asserting
- Use native platform wait for inline image in upload scenario
- Remove unnecessary Future.delayed and extra pumpAndSettle calls
- Pre-select English before switching language to ensure deterministic starting state
- Fix app_grid back-press sequence
2026-05-11 08:09:31 +07:00
Dat Dang a3e8fdb5af HOTFIX iOS 26 release build (#4501) 2026-05-08 09:51:12 +07:00
Dat H. Pham 1f29e96c21 Upgrade xcode to version 26 2026-05-05 16:24:25 +07:00
dab246 60381b36ba TF-4269 Fix misleading comments and add NSE breadcrumb for background push
- Add breadcrumb after foreground check so it only fires on background processing
- Fix ADR and CI/Fastfile comments: pubspec is always X.Y.Z, no -rc suffix
2026-04-22 15:41:28 +07:00
dab246 85f2e6546c TF-4269 Apply PR review: breadcrumbs, log error details, and code cleanup for NSE Sentry integration
- Replace capture(message:) with addBreadcrumb(level: .warning) in NotificationService for non-error diagnostic checkpoints
- Add addBreadcrumb method to SentryManager with category/level support
- Include error details in KeychainController SentryConfig decode failure log
- Split combined guard into two separate guards to distinguish nil state vs unchanged state
- Remove dead do-catch block in onComplete closure; use errors.forEach to capture real errors
- Translate Vietnamese doc comment to English in SentryManager
2026-04-22 15:41:28 +07:00
dab246 0ec37d998c TF-4269 Fix Sentry
release version: keep full version including -rc suffix

      Use full pubspec version (e.g. 0.28.3-rc08) as SENTRY_RELEASE for both
      Android and iOS, matching the version the app reports at runtime.
      Validation still compares base versions only (strips -rc suffix) to
      allow rc tags to match the base version in pubspec.
2026-04-22 15:41:28 +07:00
dab246 cdedbf4e6b TF-4269 Fix Sentry dSYM upload: find xcarchive via find instead of gym_archive_path.txt
lane_context[XCODEBUILD_ARCHIVE] was unreliable — replace with find on
~/Library/Developer/Xcode/Archives to locate the Runner xcarchive directly.
2026-04-22 15:41:28 +07:00
dab246 230cbf647f TF-4269 Integrate Sentry into iOS NSE and automate dSYM upload in CI 2026-04-22 15:41:28 +07:00
Dat Dang b18813a096 Patrol web POC (#4450)
* Patrol POC add UIKeys to production widgets for web testability

Add semantic UIKeys to composer widgets, login controller, mailbox
dashboard, thread view, and web finger extension to enable reliable
widget targeting in Patrol web integration tests.

* Patrol POC add web login and send email Patrol integration test scenarios

Add web-specific test scenarios (login with basic auth, send email),
a new web_send_email_test entry point, and a web tag in TestTags.
Update test_base, requires_login_mixin, composer_robot, and
thread_robot to support web platform.

* Patrol POC add Patrol web integration test workflow and scripts

Add GitHub Actions workflow for running Patrol web integration tests.
Add patrol-web-integration-test-with-docker.sh and
patrol-web-local-integration-test-with-docker.sh scripts.
Minor fix to patrol-local-integration-test-with-docker.sh.

* Patrol POC update gitignore and web/index.html for Patrol web support

* poc: implement cross-platform robot factory architecture

Introduces Abstract Factory + conditional export infrastructure from
ADR-0081. Platform selection resolved at compile time via dart.library.html
— no if/else in any logic class.

New structure:
- factories/: RobotFactory, Mobile/WebRobotFactory, conditional provider
- robots/abstract/: AbstractLogin/Thread/ComposerRobot interfaces
- robots/mobile/: thin wrappers over existing robots
- robots/web/: WebComposerRobot overrides addContent for web
2026-04-21 14:34:47 +07:00
Dat Dang 77e2381ca9 Upgrade Flutter to 3.38.9 (#4455) 2026-04-17 17:39:29 +07:00
Dat Vu 1d594804b5 TF-4268 Automate Sentry symbol upload for Android release builds (#4442) 2026-04-14 12:32:03 +07:00
dungphampt a91cd8f86f sentry intergration & upload source map (#4311) 2026-02-06 23:11:17 +07:00
dab246 d686b66f75 TF-4058 Update E2E test to compatible with flutter version 3.32.8 2025-10-15 13:54:34 +07:00
dab246 bac16e3c29 TF-4058 Upgrade flutter version to 3.32.8 for CI and Dockerfile 2025-10-15 13:54:34 +07:00
dab246 c15353ccad fix(ci): prevent "No space left on device" by cleaning up and using release build 2025-09-29 21:22:23 +07:00
DatDang 4fd0931c9e TF-3586: Upgrade Flutter to 3.27.4 2025-07-30 15:24:57 +07:00
Dat Dang 78cb93ef1c Update Android API 35 (#3874) 2025-07-18 10:15:25 +07:00
dab246 2d002e3067 TF-3696 Upgrade XCODE version to 16.0 on CI
Signed-off-by: dab246 <tdvu@linagora.com>
2025-05-05 21:05:02 -07:00
Dat H. Pham 89d032aad8 Update new check_list in release 2025-03-19 20:06:21 -07:00
DatDang 69fa8d2dce Upgrade Twake Mail Flutter to v3.24.5
Revert "fixup! Upgrade Twake Mail Flutter to v3.24.5"

This reverts commit 0a597753a9.
2025-02-10 19:34:37 -08:00
Dat PHAM HOANG 5de6bb3819 Downgrade to ruby 3.3 to fix release workflow 2025-02-05 03:00:08 -08:00
Dat PHAM HOANG 23b08758a5 [CI] Fix Ruby conflict version 2025-02-05 03:00:08 -08:00
DatDang 8fe9f2ece0 TF-2953 Set up test environment for Patrol tests
Made sure only 1 test using ngrok is running at a time
2024-11-01 10:01:18 +07:00
Dat H. Pham 8a317b996e Create release_ticket.md
(cherry picked from commit a9f6521ac0)
2024-09-18 18:49:03 +07:00
DatDang fefccae638 TF-2988 Update Flutter setup in analyze test ci 2024-08-07 06:32:45 +02:00
Nguyen Thai e27a696886 Bumped action versions to their latest stable 2024-08-07 06:32:45 +02:00
Nguyen Thai 0e57da59e1 Bumped versions of deprecated actions 2024-06-06 09:19:17 +07:00
Nguyen Thai a877f2bd3a Switch runners to macos-latest 2024-06-04 11:59:55 +07:00
dab246 93fbf2c265 Hotfix: Build release ios failed
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 9f98b734ea)
(cherry picked from commit 18f503d445)
2024-05-03 15:35:31 +07:00
dab246 cb75677e28 Hotfix: Build app ios failed on CI/CD
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 4dafebe684)
(cherry picked from commit 121a88d5ea)
2024-05-03 15:35:31 +07:00
DatDang 2d14ff0e51 TF-2677 Update prebuild script with new module 2024-03-13 17:18:25 +07:00
Nguyen Thai 3c7c7249d7 Move scripts to a dedicated directory
(cherry picked from commit df59d6ca54)
2024-01-12 05:13:30 +01:00
hieubt 409742e6ab TF-2100 Add email_recovery module in dependencies of app
(cherry picked from commit 55757848cc)
2024-01-08 14:25:26 +01:00
Aryan More 1302d4fb8a Upgrade flutter version to 3.16.0 for Workflows
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 4a555a8b04)
2024-01-08 14:25:26 +01:00
Nguyen Thai 662a0f33f2 Schedule build to run on workday end (11:00 UTC)
(cherry picked from commit 3628b65972)
2024-01-08 14:25:26 +01:00
Nguyen Thai a744e45777 Only make 1 PR deployment run at the time
(cherry picked from commit 807308321f)
2023-10-27 11:18:29 +07:00
Nguyen Thai c9e74bd575 Added support for arm64 builds
(cherry picked from commit aa688c5d93)
2023-10-13 10:17:52 +07:00
dab246 f709bcb4d7 Change SERVER_URL to deployment PR success
(cherry picked from commit cf1ec9d3f9)
2023-08-18 21:29:50 +07:00
dab246 9a237ec86e Upgrade flutter to v3.10.6 for Dockerfile
(cherry picked from commit b17c3a19c2)
2023-08-18 21:29:50 +07:00
Nguyen Thai 146b208631 Splited the test report job for forks
Refactored fastlane for both ios and android

Refactored github workflows

(cherry picked from commit c3ff622af0)
2023-06-05 11:02:20 +07:00
Nguyen Thai 50fad3a228 Added workflow to create a deployment on PR
(cherry picked from commit e1535c06c4)
2023-04-24 17:03:39 +07:00
Nguyen Thai a6c40efdd2 Added Docker image build to CI
Added Docker metadata steps
Properly login to Docker Hub
Added pushing to GitHub Container Registry

(cherry picked from commit 15e8891a02)
2023-04-14 17:12:34 +07:00
dab246 c51de39e01 TF-1487 Upgrade flutter version to v3.7.5 for CI
(cherry picked from commit 981ab4e82f387aa8521fcd5d06fd993593265473)
2023-03-10 21:10:36 +07:00
Nguyen Thai 9abbf7a0be Added firebase setup for release builds 2022-12-13 18:44:04 +07:00
Nguyen Thai 8276f5b041 Added firebase setup to workflows 2022-12-01 19:44:36 +07:00
Nguyen Thai 430171de53 Removed unsupported input 2022-11-29 11:46:46 +07:00
dab246 3a812fb4fe TF-1204 Add pub run build_runner build for fcm in CI 2022-11-17 14:40:28 +07:00
Nguyen Thai e88d806370 Do not cancel other job in the matrix 2022-11-07 17:22:03 +07:00