Skip to content

flake: increase test timeout for TemplateVersionEditorPage tests - #22412

Merged
jeremyruppel merged 1 commit into
mainfrom
flake/template-version-editor-page
Feb 28, 2026
Merged

jeremyruppel merged 1 commit into
mainfrom
flake/template-version-editor-page

Conversation

@jeremyruppel

@jeremyruppel jeremyruppel commented Feb 27, 2026 •

Copy link
Copy Markdown
Collaborator

TemplateVersionEditorPage tests have been flaking since I ported them to vitest in 99a4ecd. Turns out our test timeout on jest is 20s (presumably for these sorts of page-level journey tests). I kinda like the current 5s timeout as it forces us to write speedy tests, but I think in this case it's unavoidable and makes sense to lengthen the timeout just for these tests.

Hopefully fixes coder/internal#1369

You may want the whitespaceless diff here: https://github.com/coder/coder/pull/22412/changes?w=1

@jeremyruppel
jeremyruppel marked this pull request as ready for review February 27, 2026 21:25

@DanielleMaywood DanielleMaywood left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what these tests are doing, it feels odd that we're exceeding 5 seconds. It would be good to know what is causing them to be so slow.

Either there is something wrong with the tests (at a glance they look fine?) or CI is just slow on the actions runners.

@jeremyruppel
jeremyruppel force-pushed the flake/template-version-editor-page branch from 4c439a4 to 7c77f08 Compare February 27, 2026 23:52
@jeremyruppel

Copy link
Copy Markdown
Collaborator Author

For what these tests are doing, it feels odd that we're exceeding 5 seconds. It would be good to know what is causing them to be so slow.

@DanielleMaywood very fair point– I'm going to scope this down to just the one test that's failing to hopefully fix this flake, but you're totally right it would be good to get to the bottom of this.

From what I can tell from previous builds where this was written in jest (heh), it regularly takes upwards of 10s for the TemplateVersionsEditorPage tests to run. I'm pretty confident increasing the timeout is necessary to get the test to pass as-is, and probably will be for a few more of these page-level sort of tests.

@jeremyruppel
jeremyruppel force-pushed the flake/template-version-editor-page branch from 7c77f08 to 7b64e04 Compare February 28, 2026 00:06
@jeremyruppel
jeremyruppel merged commit 816d99e into main Feb 28, 2026
23 checks passed
@jeremyruppel
jeremyruppel deleted the flake/template-version-editor-page branch February 28, 2026 00:16
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants