fix: [100] make flaky system tests more patient on slow CI grids #174

Merged
forgejo-bot merged 2 commits from bug/flaky_system_tests into main 2026-11-01 09:43:41 +00:00
Contributor

Follow-up zu ebb2bf0 (#106): Run 1294 brauchte 6 Versuche auf dem Tests/System-Job — jeweils ein anderer flakiger Test, alles Timing-Races, die der frühere Fix (#106) bereits adressiert hatte. Die Retry-/Wait-Werte reichten auf dem langsamen Runner nur nicht aus.

Fehlerverteilung (Versuch 1–5):

Versuch Test Fehler
1 PasswordChangeTest#test_the_strength_meter_reacts_to_the_chosen_password strength meter did not react to "abc"
2–3 PasswordChangeTest#test_changing_the_password_terminates_all_sessions_and_requires_a_new_sign-in .alert-success nicht gefunden
4–5 SessionsTest#test_signing_in_and_out_through_the_navbar_menu user menu did not open

Fix (mehr Geduld, keine Logikänderungen):

  • open_user_menu (navbar_test_helper): 3→5 Versuche, Wait 2s→5s
  • fill_password_and_wait_for_meter (password_change_test): ebenso 3→5 / 2s→5s
  • .alert-success nach Passwortwechsel: explizites wait: 15 (Flash-Toast kommt asynchron über den Cable-Stream)

Lokal grün: PasswordChangeTest, SessionsTest; RuboCop ohne Befunde.

Follow-up zu ebb2bf0 (#106): Run 1294 brauchte **6 Versuche** auf dem Tests/System-Job — jeweils ein anderer flakiger Test, alles Timing-Races, die der frühere Fix (#106) bereits adressiert hatte. Die Retry-/Wait-Werte reichten auf dem langsamen Runner nur nicht aus. **Fehlerverteilung (Versuch 1–5):** | Versuch | Test | Fehler | |---|---|---| | 1 | `PasswordChangeTest#test_the_strength_meter_reacts_to_the_chosen_password` | strength meter did not react to \"abc\" | | 2–3 | `PasswordChangeTest#test_changing_the_password_terminates_all_sessions_and_requires_a_new_sign-in` | `.alert-success` nicht gefunden | | 4–5 | `SessionsTest#test_signing_in_and_out_through_the_navbar_menu` | user menu did not open | **Fix (mehr Geduld, keine Logikänderungen):** - `open_user_menu` (navbar_test_helper): 3→5 Versuche, Wait 2s→5s - `fill_password_and_wait_for_meter` (password_change_test): ebenso 3→5 / 2s→5s - `.alert-success` nach Passwortwechsel: explizites `wait: 15` (Flash-Toast kommt asynchron über den Cable-Stream) Lokal grün: `PasswordChangeTest`, `SessionsTest`; RuboCop ohne Befunde.
fix: make flaky system tests more patient on slow CI grids
Some checks failed
CI / Quality / Brakeman (pull_request) Successful in 2m21s
CI / Quality / Bundler Audit (pull_request) Successful in 2m23s
CI / Quality / RuboCop (pull_request) Successful in 2m18s
CI / Quality (pull_request) Successful in 0s
CI / Tests / Unit (pull_request) Successful in 2m38s
CI / Tests / System (pull_request) Failing after 3m12s
CI / Tests / Coverage (pull_request) Has been skipped
CI / Tests (pull_request) Failing after 0s
CI / Container / Build and push (pull_request) Has been skipped
CI / Container (pull_request) Failing after 0s
CI / Deploy (pull_request) Has been skipped
PR Triage / Triage pull request-1 (pull_request) Successful in 4s
PR Triage / Triage pull request (pull_request) Successful in 0s
87eaf5b998
All three flakes in run 1294 were timing races on JS-dependent UI:
the password strength meter, the flash toast after a password change
(arrives asynchronously over the cable stream), and the user menu
popover. Raise retry counts (3 -> 5) and waits (2s -> 5s) in the two
helpers and wait 15s for the success toast instead of the 5s default.

---------

Co-Authored-By: opencode (Mistral GLM) <opencode-agent[bot]@hoppe-dev.eu>
forgejo-actions changed title from [100] fix: make flaky system tests more patient on slow CI grids to fix: [100] fix: make flaky system tests more patient on slow CI grids 2026-11-01 09:15:52 +00:00
OpenCode changed title from fix: [100] fix: make flaky system tests more patient on slow CI grids to [100] fix: make flaky system tests more patient on slow CI grids 2026-11-01 09:18:43 +00:00
forgejo-actions changed title from [100] fix: make flaky system tests more patient on slow CI grids to fix: [100] fix: make flaky system tests more patient on slow CI grids 2026-11-01 09:18:47 +00:00
OpenCode changed title from fix: [100] fix: make flaky system tests more patient on slow CI grids to [100] fix: make flaky system tests more patient on slow CI grids 2026-11-01 09:19:11 +00:00
forgejo-actions changed title from [100] fix: make flaky system tests more patient on slow CI grids to fix: [100] fix: make flaky system tests more patient on slow CI grids 2026-11-01 09:19:20 +00:00
OpenCode changed title from fix: [100] fix: make flaky system tests more patient on slow CI grids to fix: [100] make flaky system tests more patient on slow CI grids 2026-11-01 09:19:39 +00:00
forgejo-bot scheduled this pull request to auto merge when all checks succeed 2026-11-01 09:21:15 +00:00
fix: stop toast container from intercepting clicks on UI below it
All checks were successful
PR Triage / Triage pull request-1 (pull_request) Successful in 7s
PR Triage / Triage pull request (pull_request) Successful in 0s
CI / Quality / Bundler Audit (pull_request) Successful in 2m9s
CI / Quality / Brakeman (pull_request) Successful in 2m21s
CI / Quality / RuboCop (pull_request) Successful in 2m24s
CI / Quality (pull_request) Successful in 0s
CI / Tests / Unit (pull_request) Successful in 2m39s
CI / Tests / System (pull_request) Successful in 2m45s
CI / Tests / Coverage (pull_request) Successful in 29s
CI / Tests (pull_request) Successful in 0s
CI / Container / Build and push (pull_request) Successful in 6s
CI / Container (pull_request) Successful in 0s
CI / Deploy (pull_request) Has been skipped
755e360739
The empty #notifications container is position:fixed in the top-right
corner with z-50 — exactly over the navbar avatar button — and ate
mouse clicks there even when no toast was visible, making the user
menu flaky to open in system tests and for real users. The container
now sets pointer-events: none while each toast re-enables it, keeping
close button and hover behaviour working.
forgejo-bot canceled auto merging this pull request when all checks succeed 2026-11-01 09:40:30 +00:00
forgejo-bot scheduled this pull request to auto merge when all checks succeed 2026-11-01 09:40:31 +00:00

📊 Coverage

Metrik Abdeckung
Zeilen 98.04% (2695/2749)
Branches 82.67% (668/808)
Methoden 98.65% (438/444)

Patch-Coverage: 100.0% (2/2 geänderte Zeilen)

Geänderte Dateien (schwach zuerst)

Datei Patch-Coverage Fehlende Zeilen
app/components/layout/notification.rb 100.0% (1/1)
app/components/layout/notifications.rb 100.0% (1/1)

Schwächste Dateien im Projekt

Datei Abdeckung
app/components/form/select.rb 72.41%
app/components/layout/notification.rb 80.95%
app/components/concerns/actionable.rb 86.67%
app/components/layout/sidebar.rb 89.47%
app/components/concerns/inferrable.rb 90.63%
app/models/concerns/has_uuid_v7.rb 90.91%
app/components/users/avatar.rb 91.23%
app/controllers/settings/security/otps_controller.rb 91.67%
app/components/base.rb 92.16%
app/controllers/settings/security/passkeys_controller.rb 92.31%

🔍 Report im Browser ansehen · 📄 Run-Artifact „coverage-report“

<!-- coverage-report --> ## 📊 Coverage | Metrik | Abdeckung | |---|---| | Zeilen | 98.04% (2695/2749) | | Branches | 82.67% (668/808) | | Methoden | 98.65% (438/444) | **Patch-Coverage**: 100.0% (2/2 geänderte Zeilen) **Geänderte Dateien (schwach zuerst)** | Datei | Patch-Coverage | Fehlende Zeilen | |---|---|---| | app/components/layout/notification.rb | 100.0% (1/1) | | | app/components/layout/notifications.rb | 100.0% (1/1) | | **Schwächste Dateien im Projekt** | Datei | Abdeckung | |---|---| | app/components/form/select.rb | 72.41% | | app/components/layout/notification.rb | 80.95% | | app/components/concerns/actionable.rb | 86.67% | | app/components/layout/sidebar.rb | 89.47% | | app/components/concerns/inferrable.rb | 90.63% | | app/models/concerns/has_uuid_v7.rb | 90.91% | | app/components/users/avatar.rb | 91.23% | | app/controllers/settings/security/otps_controller.rb | 91.67% | | app/components/base.rb | 92.16% | | app/controllers/settings/security/passkeys_controller.rb | 92.31% | [🔍 Report im Browser ansehen](https://pages.hoppe-dev.eu/hobbypunk-rails-base_app/pr-174/coverage) · [📄 Run-Artifact „coverage-report“](https://code.hoppe-dev.eu/hobbypunk/rails-base_app/actions/runs/3835/artifacts/coverage-report)
forgejo-bot deleted branch bug/flaky_system_tests 2026-11-01 09:43:41 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hobbypunk/rails-base_app!174
No description provided.