Commit Graph
60 Commits
Author SHA1 Message Date
Dang Dat 0496273e5f Keep the web app logs of the memory check and serve CanvasKit locally 2026-11-06 17:20:49 +07:00
Dang Dat 167777ce86 Raise bob's mailbox quota in the memory check so four heavy sends fit
Codex review of the equal warm-up change (no PR comment)
2026-11-06 16:54:54 +07:00
Dang Dat 22be71b707 Summarize the memory report with MB, limit share and near-limit warnings
Addresses: 6681179386
https://github.com/linagora/tmail-flutter/pull/5113#issuecomment-6681179386
2026-11-06 16:45:13 +07:00
Dang Dat a7d5bb32e0 Run the Android memory tests with the app's draining instrumentation runner
Addresses: memory check run 42189453944
https://github.com/linagora/tmail-flutter/actions/runs/42189453944
2026-11-06 16:43:05 +07:00
Dang Dat e0d8c1b5fa Lease pool backends in the memory check like the other Patrol suites
Addresses: memory check run 42189453944
https://github.com/linagora/tmail-flutter/actions/runs/42189453944
2026-11-06 16:42:58 +07:00
Dang Dat 34baaa55a7 ci: refuse the Android memory check on Bash older than 4
Addresses: 4478802715
https://github.com/linagora/tmail-flutter/pull/5113#discussion_r4478802715
2026-11-06 15:40:29 +07:00
Dang Dat 45e0667da5 ci(memory): build Android memory tests once and run them with am instrument
Per-test patrol runs rebuilt the app each time. Build and install once, pre-grant
contacts (patrol misses the dialog on this emulator) and drop the orchestrator.
2026-11-06 15:40:29 +07:00
Dang Dat 8d1f611864 ci: run each Android memory test on its own and retry a died instrumentation
Run 41989655011 lost the third test again: the orchestrator killed the new
app process ('remove task') right after starting it, so the instrumentation
crashed. One patrol run per test avoids the task switch, and a run that
died is retried once.
2026-11-06 15:40:29 +07:00
Dang Dat 281bc510e3 ci: stop a hung Android memory check on silence and keep logcat
The first Android run hung for 39 min between two tests and was only
cancelled by the 60 min job limit. Kill patrol after 4 min without output
once the tests start (10 min during the Gradle build), print Flutter logs
and save logcat on failure. Android job limit is 35 min.
2026-11-06 15:40:29 +07:00
Dang Dat 2bc85d5d99 ci: run the memory leak check on release tags and memory-check PRs
Run the check on web and Android in profile mode against a local backend, in
parallel with the security scan on tags. Add the Android profile build type
and the docs.

Refs #4365
2026-11-06 15:40:29 +07:00
Dang Dat 4707aa7188 ci: add memory sidecar and leak report
The sidecar takes heap snapshots over CDP on web. The report applies rules
R1-R5 to the before and after samples and always renders a summary.

Refs #4365
2026-11-06 15:40:29 +07:00
Dang Dat 7af4869bed test: add memory test tag, heavy image and memory probe
Add the memory tag (excluded from the normal Patrol runs), a per-test timeout,
a generated 5 MB PNG, inline-image provisioning and a probe that samples the
Dart heap on Android and the sidecar on web.

Refs #4365
2026-11-06 15:40:29 +07:00
Dat Dang cab851c4fe Speed up the Patrol integration suites with a backend per test, web workers and FTL shards (#5068) 2026-11-06 15:32:36 +07:00
Dat Dang 8be9171f41 Keep CI logs to diagnose flaky Patrol tests (#5029) 2026-10-28 15:31:59 +07:00
Dat H. Pham fe148f2f81 Test HTML email display rules on every viewer and pane width (#4966) 2026-10-21 05:01:30 +07:00
Dat H. Pham 73b2c207fa Match test platform metadata as whole names, not inside identifiers 2026-10-20 10:03:55 +07:00
Dat Dang c936325076 2509 Add release security scan workflow (#4958) 2026-10-19 11:15:28 +07:00
Benoit TELLIER 52b864ad82 Adapt QA scripts to support web and mobile 2026-10-15 17:36:45 +07:00
Dat Dang c317bae063 TF-4827 Read dropped files lazily (#4908) 2026-10-13 13:59:00 +07:00
Dat H. Pham e7f287473c [MCP Marionette] Use MCP to drive the UI (#4916) 2026-10-07 11:37:30 +07:00
Benoit TELLIER 3536f9fe42 [QA] Add a twake-qa compatible QA environment 2026-10-04 11:43:24 +07:00
Dat Dang 5f6b55867f 2509 Pin pica/dotlottie at build time, serve CanvasKit locally, add nginx baseline hardening (#4912) 2026-10-02 06:58:42 +07:00
Dat Vu 585b1083f8 Run every test in CI without registration (#4903) 2026-09-28 17:19:54 +07:00
Dang Dat 9dcc5702b2 Expose error in prebuild script 2026-09-14 15:20:42 +07:00
Dat H. Pham a405777be7 fix: write flutter test report to a file instead of stdout 2026-08-27 15:32:53 +07:00
Rene Cordier 2a30ab80de [Build] Firebase policy changes: upload to specific bucket name 2026-08-26 12:46:31 +07:00
Rene Cordier c0e66a4a28 [E2E] Mobile test with firebase test lab (#4602) 2026-07-01 15:49:07 +07:00
Dat H. Pham dffe0e19ce fix: prebuild failed 2026-06-04 10:58:09 +07:00
Rene Cordier 5ca54862e9 E2E mobile tests with Jenkins 2026-06-01 16:25:25 +07:00
Rene Cordier 527eceae9a Jenkinsfile for running patrol web e2e tests on Jenkins 2026-05-27 13:02:28 +07:00
Rene Cordier 03a2967f5f [Patrol] sed command that works for both linux and macos 2026-05-27 13:02:28 +07:00
Dat Dang 7534f369cb Patrol Web enable reset server (#4557) 2026-05-26 15:41:29 +07:00
Rene Cordier 33538c6c50 Patrol E2E integration tests: webadmin provisioning 2026-05-25 14:58:16 +07:00
Dat H. Pham f3c536c99a Fix iOS build with pod repo update 2026-05-22 15:54:01 +07:00
dab246 9ee1ba7fc5 Fix silent failure and stale adapter guard reset 2026-05-21 13:25:43 +07:00
dab246 3d3981a5a0 Configure workspace root, consolidate overrides, and upgrade dependencies 2026-05-21 13:25:43 +07:00
Dat Vu 54ffff4e1d Hotfix: Second Save as Draft Fails for Draft Emails with Attachments or Inline Images (#4505) 2026-05-14 17:11:45 +07:00
Dang Dat 89f0a77a83 Patrol Delete user data instead of restart docker 2026-05-12 14:24:32 +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 H. Pham 5e1348f261 Fix sentry minified (#4481) 2026-05-05 14:19: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 e3dfadce34 Upgrade Patrol to 4.5.0 (#4446) 2026-04-17 20:50:22 +07:00
dab246 fae12ced76 TF-4169 Add Labels module in prebuild.sh for CI 2026-01-19 11:34:43 +07:00
dab246 6e09d853fd feat(ai-scribe): Fix the English locale file `(intl_en.arb)` is missing all three AI Scribe keys
feat(ai-scribe): Fix async function declared without proper return type annotation.

feat(ai-scribe): Fix Async operations not properly awaited.

feat(ai-scribe): Fix inconsistent capitalization between button labels.

feat(ai-scribe): Fix GenerateAITextFailure check will never match.

feat(ai-scribe): Fix consider validating text input for predefined actions.

feat(ai-scribe): Using a subshell for directory isolation.

feat(ai-scribe): Fix verify the mock usage or document intent.

feat(ai-scribe): Using a more conventional import for Offset.

feat(ai-scribe): Adding error handling for consistency

feat(ai-scribe): Remove `fromJson` and `toJson` of AIResponse

feat(ai-scribe): Using constants for role values.

feat(ai-scribe): Using a more specific import.

feat(ai-scribe): Using Timer for cleaner lifecycle management

feat(ai-scribe): Adding error handling to fromMap() for consistency.

feat(ai-scribe): Disposing the ValueNotifier

feat(ai-scribe): Redundant null check after assignment

feat(ai-scribe): Fix calling `registerSelectionChangeListener` multiple times may be inefficient.

feat(ai-scribe): Safer type handling for JavaScript callback args

feat(ai-scribe): Fix async callbacks not awaited in switch statement.

feat(ai-scribe): Fix binding lifecycle mismatch for GetAIScribeConfigInteractor

feat(ai-scribe): Fix ai prompts

feat(ai-scribe): Fix unawaited async call to `_setupSelectionListener`

feat(ai-scribe): Fix switch cases use top-origin coordinates while `PositionedDirectional(bottom:)`` expects bottom-origin coordinates.

feat(ai-scribe): Adding error handling for selection listener setup.
2025-12-19 19:03:39 +07:00
Théo Poizat c858ac40f5 Add translations for scribe module
Added a separated ScribeLocalizations to keep it separated from main app.
2025-12-19 19:03:39 +07:00
Théo Poizat 7e0c98b080 Add scribe module 2025-12-19 19:03:39 +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
Dat Dang e26e0be51d HOTFIX Integration test v0.18.2 (#3980) 2025-08-27 14:41:50 +07:00
Dat Dang 1c04825367 Update Cozy integration doc (#3905) 2025-08-11 09:30:09 +07:00
DatDang 8e500a2ac5 HOTFIX Fix integration tests 2025-07-16 10:26:26 +07:00