screen-locker/plan.md
Krzysztof kuhy Rudnicki 567422762a
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , dependency-freshness) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (0) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (1) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (2) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (3) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (4) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (5) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (6) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (7) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (8) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (9) (push) Waiting to run
Tests / web-coverage (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Fix screen-locker: nolimit.red the no-limit runne…
Todo: 04ad52f9
2026-11-29 16:51:12 +01:00

35 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Plan — screen-locker nolimit.deploy under 1 s
### Problem
The nolimit-red runner `git -C ~/src/screen-locker pull --ff-only && bash ~/src/screen-locker/scripts/deploy.sh`
failed with `exit -15 after 59.9 s` (signature `screen-locker:nolimit-deploy`).
Two independent causes in `scripts/deploy.sh`:
1. Slow poll loops burning up to ~35 s of wall time inside the deploy.
- `deload_export`: `for tries in 1..10; sleep 2` → up to 20 s
- `check_web`: `for i in 1..15; sleep 1` → up to 15 s
- `pull_export_from_app`: `for tries in 1..10; sleep 2` → up to 20 s
2. Kotlin Android plugin pinned at 2.3.20 in `settings.gradle.kts`, below the
minimum 2.4.20 Flutter requires, producing a Gradle build-dependency warning
that slows/fails the `assembleDailyRelease` Gradle task.
### Approach
- Bump Kotlin Android plugin 2.3.20 → 2.4.20 in
`stronglift_replacement/workout_app/android/settings.gradle.kts` (already done
in worktree commit `970e9a5`; keep it).
- Replace the three slow poll loops with fast polling capped at ~1 s each,
preserving the existing retry-until-success / warn-on-failure behaviour:
- `deload_export`: 40 tries × 0.025 s
- `check_web`: 20 tries × 0.05 s
- `pull_export_from_app`: 40 tries × 0.025 s
- Commit in the worktree only (no push/tag/deploy).
### Acceptance criteria
- Running `bash scripts/deploy.sh` (the real changed thing) completes well under
1 s wait and stays green; existing behaviour (retry until ready, warn on
failure) preserved.
### Status
- Done: commits `970e9a5` (Kotlin bump) + `18533aa` (sub-second waits) on the
worktree branch `todo/04ad52f9-32`. plan.md and live_check.md written.