Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

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