Skip to content

Store discovered tests in .ty#2636

Merged
plajjan merged 2 commits into
mainfrom
test-in-ty
Feb 13, 2026
Merged

Store discovered tests in .ty#2636
plajjan merged 2 commits into
mainfrom
test-in-ty

Conversation

@plajjan

@plajjan plajjan commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

We now store discovered test in .ty files so that it becomes much much
cheaper to later retrieve the list of tests.

For example, on our own test/stdlib_tests project, before it took
upwards of 5 seconds to just list the tests (M4 Pro):

acton test list 0.99s user 2.84s system 80% cpu 4.734 total

Whereas now it takes a fraction of a second:

acton test list 0.06s user 0.10s system 84% cpu 0.182 total

182ms - not bad.

Fixes #2599

Kristian Larsson added 2 commits February 13, 2026 18:47
We already used random ports for some tests, which is a good idea since
it reduces intermittent issues and makes the testing more robust
overall. However, some tests used static ports - this aligns it such
that all tests behave the same.
We now store discovered test in .ty files so that it becomes much much
cheaper to later retrieve the list of tests.

For example, on our own test/stdlib_tests project, before it took
upwards of 5 seconds to just list the tests (M4 Pro):

  acton test list  0.99s user 2.84s system 80% cpu 4.734 total

Whereas now it takes a fraction of a second:

  acton test list  0.06s user 0.10s system 84% cpu 0.182 total

182ms - not bad.
@plajjan plajjan merged commit 0b2e2ac into main Feb 13, 2026
73 of 76 checks passed
@plajjan plajjan deleted the test-in-ty branch February 13, 2026 19:33
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.

actonc test list should use compiler test discovery + cache in .ty

1 participant