Skip to content

flake: Use custom name, message and set it as active when publishing #1369

Closed

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/22449685899
Job: https://github.com/coder/coder/actions/runs/22449685899/job/65014256079
Commit: ab28ecde88ddcb907fb44c634d2721ef3318030a (Kacper Sawicki)

Failure

  • Test file: site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx
  • Test name: "Use custom name, message and set it as active when publishing"
  • Error: Test timed out in 5000ms
  • Context warnings (React state updates not wrapped in act)

Log excerpt

FAIL src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx > Use custom name, message and set it as active when publishing
Error: Test timed out in 5000ms.

An update to PublishTemplateVersionDialog inside a test was not wrapped in act(...).
An update to Tooltip inside a test was not wrapped in act(...).
An update to ForwardRef(FormControl) inside a test was not wrapped in act(...).

Root cause assessment

  • Flaky UI test timing out waiting for async publish dialog interactions. The repeated act() warnings indicate state updates not awaited, which can cause sporadic timeouts.

Assignment analysis

  • git log --oneline -10 --follow site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx
  • Latest meaningful change affecting this test: 77006f241b (Jeremy Ruppel) "fix: save empty template files (#22202)" (vitest migration + test edits)

Duplicate search (coder/internal)

  • "TemplateVersionEditorPage.test.tsx"
  • "Use custom name, message and set it as active when publishing"
  • "TemplateVersionEditorPage" + "Test timed out"
  • "PublishTemplateVersionDialog"

Reproduction

  • pnpm test:ci --filter TemplateVersionEditorPage.test.tsx
  • pnpm vitest src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx

Activity

  1. added 2 commits that reference this issue on Feb 26, 2026
    01bad88
    148c6ae
  2. added a commit that references this issue on Feb 27, 2026
    1ef3a7d
  3. added a commit that references this issue on Feb 27, 2026
    dea451d
  4. flake-investigator commented on Feb 27, 2026

    @flake-investigator
    Author

    Reoccurrence in main CI.

    CI Run: https://github.com/coder/coder/actions/runs/22500453881
    Job: https://github.com/coder/coder/actions/runs/22500453881/job/65186125326
    Commit: 344d11fa220ba524362fe282922397d2ee16fd49 (Kyle Carberry)

    Failure

    • Test file: site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx
    • Test name: "Use custom name, message and set it as active when publishing"
    • Error: Test timed out in 5000ms
    • Context warnings: React state updates not wrapped in act(...)

    Log excerpt

    FAIL src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx > Use custom name, message and set it as active when publishing
    Error: Test timed out in 5000ms.
    
    An update to PublishTemplateVersionDialog inside a test was not wrapped in act(...).
    An update to Tooltip inside a test was not wrapped in act(...).
    An update to Toast inside a test was not wrapped in act(...).
    An update to ForwardRef(FormControl) inside a test was not wrapped in act(...).
    An update to ForwardRef(Toaster) inside a test was not wrapped in act(...).
    

    Notes

    • This failure happened after dea451de ("fix(site): await dialog close after publish to prevent act() warnings"), so the fix appears incomplete or there is another async path still racing.
  5. added a commit that references this issue on Feb 28, 2026
    816d99e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions