8000 fix(live): keep pages open through a transient refresh error by mwoods79 · Pull Request #766 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(live): keep pages open through a transient refresh error - #766

Merged
mwoods79 merged 3 commits into
mainfrom
t3/transient-reload-errors
Dec 1, 2026
Merged

mwoods79 merged 3 commits into
mainfrom
t3/transient-reload-errors

Conversation

@mwoods79
@mwoods79 mwoods79 commented Dec 1, 2026 •
Copy link
Copy Markdown
Contributor

Summary

Keep open huddl, group, and organizer pages in place when their refresh read fails. Confirmed loss of visibility still redirects the visitor, and a renamed group updates the huddl URL. Invitation and saved-location rechecks also distinguish a failed read from a missing record.

Close the unused simulated browser before confirming in another one, wait for the sitemap refresh lock in Cucumber, and inject invitation delivery failures at the Ash data layer.

Evidence

Check Before: After:
Mounted pages An injected connection failure redirected all four huddl, group, and organizer views. An invitation recheck also redirected, and a saved location was reported missing. All eight page checks passed in 13 consecutive runs, including real visibility loss.
Confirmation Three of ten scenarios failed in the first run alongside the full suite and the original invitation tests. All ten scenarios passed in 51 consecutive runs.
Sitemap All three scenarios failed with another connection holding the refresh lock. All three passed in nine consecutive runs with a competing lock holder.
Invitation delivery Run 29 under suite load deadlocked at DROP TRIGGER on notifications. Replaying the original binding test with an invitation reader that then writes showed the same lock upgrade on group_invitations. Seven delivery tests passed in 71 consecutive runs. The database deadlock counter stayed at 12 over that run. The repaired binding test also finished with the invitation reader still holding its lock.

After integrating current main, all 3,534 checks in the local test suite passed at six cases, and mix precommit passed. The merged storage test adapter now forwards the read/1 callback introduced by the picture-access changes. The 49 focused refresh, huddl detail, and picture-controller tests passed in three consecutive runs. An earlier cross-suite stress run also caught a separate deadlock during fixture mounting. PostgreSQL identified a concurrent migration test dropping the huddl template group foreign key.

Merge Danger

Door: Two-way
Blast Radius: Low

  • An open page can display its last successful read until the next refresh. Participation actions continue to check current access.
  • The reproduced invitation lock upgrade came from test DDL. The replacement exercises worker retries and transaction rollback without changing worker locking or the database schema.

@mwoods79
mwoods79 merged commit 0158745 into main Dec 1, 2026
5 checks passed
@mwoods79
mwoods79 deleted the t3/transient-reload-errors branch December 1, 2026 23:35
mwoods79 added a commit that referenced this pull request Dec 1, 2026
* origin/main:
  test: let the shared test storage read pictures (#767)
  fix(live): keep pages open through a transient refresh error (#766)
mwoods79 added a commit that referenced this pull request Dec 1, 2026
…r-leave

* origin/main:
  test: let the shared test storage read pictures (#767)
  fix(live): keep pages open through a transient refresh error (#766)

# Conflicts:
#	lib/huddlz_web/live/huddl_live/show.ex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0