Fix open PRs #384

Closed
opened 2026-06-03 22:28:00 +00:00 by guettli · 1 comment
guettli commented 2026-06-03 22:28:00 +00:00 (Migrated from codeberg.org)

Fix open PRs. CI failed

Fix open PRs. CI failed
guettlibot commented 2026-06-03 22:50:01 +00:00 (Migrated from codeberg.org)

CI runs are now queued/in-progress for all the fixed PR branches. Here's a summary of what was done:


What I did

All three open PRs (#378, #379, #381) were failing CI because dart format was not run before committing. CI enforces dart format --set-exit-if-changed and dart analyze --fatal-infos, which are fatal for any formatting or lint issues.

Root causes found:

  • PR #381 (issue-367-prefetch-next-email): lib/di.dart — chained method call wrapped incorrectly
  • PR #378 (issue-377-remember-show-images): test/unit/migration_test.dart — chained method call wrapped incorrectly
  • PR #379 (issue-376-combined-inbox): Three issues:
    1. lib/data/repositories/email_repository_impl.dart — formatting
    2. lib/ui/router.dartcombined_inbox_screen.dart import out of alphabetical order (triggers directives_ordering info, fatal with --fatal-infos)
    3. test/unit/account_sync_manager_test.mocks.dart — mock formatting differed from what build_runner generates

Fixes applied:

CI runs are now queued/in-progress for all the fixed PR branches. Here's a summary of what was done: --- ## What I did All three open PRs (#378, #379, #381) were failing CI because `dart format` was not run before committing. CI enforces `dart format --set-exit-if-changed` and `dart analyze --fatal-infos`, which are fatal for any formatting or lint issues. **Root causes found:** - **PR #381** (`issue-367-prefetch-next-email`): `lib/di.dart` — chained method call wrapped incorrectly - **PR #378** (`issue-377-remember-show-images`): `test/unit/migration_test.dart` — chained method call wrapped incorrectly - **PR #379** (`issue-376-combined-inbox`): Three issues: 1. `lib/data/repositories/email_repository_impl.dart` — formatting 2. `lib/ui/router.dart` — `combined_inbox_screen.dart` import out of alphabetical order (triggers `directives_ordering` info, fatal with `--fatal-infos`) 3. `test/unit/account_sync_manager_test.mocks.dart` — mock formatting differed from what `build_runner` generates **Fixes applied:** - Pushed `fix: apply dart format to fix CI` commits directly to each failing PR branch — CI is now re-running on each - PR #384: https://codeberg.org/guettli/sharedinbox/pulls/385 — adds `dart format` and sorted imports requirements to `AGENTS.md` to prevent recurrence
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: guettli/sharedinbox#384