Skip to content

perf(runner): match source/pattern probes with case, drop 2 grep forks#804

Merged
Chemaclass merged 1 commit into
mainfrom
perf/source-error-case-match
Jul 15, 2026
Merged

perf(runner): match source/pattern probes with case, drop 2 grep forks#804
Chemaclass merged 1 commit into
mainfrom
perf/source-error-case-match

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

Continuing the fork reduction from #798/#802/#803, now on the per-file run path. Running a test file forked grep twice per sourced file.

💡 Changes

  • Runner: scan sourcing stderr for syntax error/unexpected EOF with a shell case instead of a grep fork.
  • Discovery: decide whether to also match the .bash pattern variant with a case instead of a grep fork.
  • 2 → 0 grep forks per sourced test file (matters across the acceptance suite's ~258 nested runs); regression test added. No behaviour change.

Two per-file grep forks in the run path became shell case matches:
- runner: scanning sourcing stderr for 'syntax error'/'unexpected EOF'
- discovery: deciding whether to also match the .bash pattern variant

2 -> 0 grep forks per sourced test file; matters across the acceptance
suite's ~258 nested runs. No behaviour change.
@Chemaclass Chemaclass added the enhancement New feature or request label Jul 15, 2026
@Chemaclass Chemaclass self-assigned this Jul 15, 2026
@Chemaclass Chemaclass merged commit f79911a into main Jul 15, 2026
37 checks passed
@Chemaclass Chemaclass deleted the perf/source-error-case-match branch July 15, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant