Skip to content

Mitigate core/index_compile_test timeouts - #2308

Merged
Ford544 merged 1 commit into
mainfrom
test-timeout-fix
Sep 14, 2026
Merged

Ford544 merged 1 commit into
mainfrom
test-timeout-fix

Conversation

@Ford544

@Ford544 Ford544 commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Some of the tests in core/index_compile_test often timeout when running ./scripts/run_tests

  • Wrap the four suites in core/index_compile_test.ts in a single top level suite. This ensure that the suites will be executed sequentially and won't compete for resources
  • Increase timeout for the tests that utillize npm from 30s to 60s

@Ford544
Ford544 requested a review from a team as a code owner September 14, 2026 08:06
Comment thread cli/index_compile_test.ts Outdated

["package.json", "package-lock.json", "node_modules"].forEach(npmFile => {
test(`compile throws an error when dataformCoreVersion in workflow_settings.yaml and ${npmFile} is present`, async () => {
test("compile rejects @dataform/core with incompatible version", { timeout : 60000 }, async () => {

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.

The space after timeout should not be there, but linter should have done that.

Can you take a quick look at a linter, and why it didn't fix it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes I'll take a look

Comment thread cli/index_compile_test.ts Outdated
expect(stderr).contains("Set `dataformCoreVersion:");
});

test("compile succeeds with @dataform/core <= 3.0.56 via caller-file shim", { timeout : 60000 }, async () => {

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.

Same here (as below).

@apilaskowski apilaskowski 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.

Only nits

@Ford544
Ford544 merged commit 6b406e7 into main Sep 14, 2026
11 checks passed
@Ford544
Ford544 deleted the test-timeout-fix branch September 14, 2026 11:57
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.

2 participants