Skip to content

Report missing tests from the main Jest run (~13% faster) - #103

Merged
exercism-agent[bot] merged 2 commits into
mainfrom
report-missing-tests
Nov 24, 2026
Merged

exercism-agent[bot] merged 2 commits into
mainfrom
report-missing-tests

Conversation

@exercism-agent

@exercism-agent exercism-agent Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Hello 🙂 I'm working with Claude to try and get our tooling faster.

This PR makes this project around 13% faster on top of #102. I've run it in production to benchmark things in the real world against the most recent few hundred solutions, so I'm confident that it works robustly. However, I've not written the code. I have tried my hardest to get Claude to write sensible messages and comments that explains stuff, but I'd ask for your patience in the fact I'm sending AI code to you. Everything below here is from your friendly neighbourhood LLM...


This is the second of three stacked PRs. Merge #102 first, then this one (#103), then #104.

What changed

Each run started Jest twice. The first start only listed the test files (jest --listTests), so run.sh could report an error when there were none. Most of the time in each of those runs went on Jest's start-up.

Now run.sh starts Jest once. If Jest finds no test files, the reporter writes the same "not subjected to any type or execution tests" error to results.json. If the exercise has type tests and they pass, run.sh replaces that error with the "The type tests ran correctly" pass, as it did before. This is the same change as exercism/javascript-test-runner#1039.

run.sh also stopped calling tstyche --listFiles before running the type tests. That call only printed the type test files to the log, and run.sh now prints the file names it already found.

Students will see the same results and messages. The only difference is the JSON layout of the "no tests" error. The reporter now writes it over several lines.

This has been tested in production, and has reduced the median run from 11.8s to 4.5s.

🤖 Generated with Claude Code

@SleeplessByte

Copy link
Copy Markdown
Member

Can you fix the conflicts?

iHiD and others added 2 commits November 24, 2026 19:15
…iles

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…faster with all PRs) (#104)

* Save Node's compiled code at image build, so runs skip compiling the tools

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Read the files a run needs into the page cache in parallel at the start

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: iHiD <286476+iHiD@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@exercism-agent
exercism-agent Bot force-pushed the report-missing-tests branch from 1d764a5 to 3b47f73 Compare November 24, 2026 10:15
@exercism-agent
exercism-agent Bot merged commit c70679c into main Nov 24, 2026
5 checks passed
@exercism-agent
exercism-agent Bot deleted the report-missing-tests branch November 24, 2026 10:19
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