Repository navigation
Description
Summary
On main (ce0b047, after #624), one tsrs-lint headless request keeps the arena memory of every tsconfig project
until the request ends. oxlint sends one request for a whole workspace, so the helper's peak memory is the sum
over the projects instead of the largest one. #783 reported this against the PR head; main is unchanged, and #848
reduces it, but its peak still grows with the number of projects.
Reproduction
The generator from #783 (repeated below) writes N independent projects of 24 files each, with lib: ["es2022", "dom", "dom.iterable"], 12 type-aware rules and one no-floating-promises finding per file, plus a V2 payload:
node gen-many-projects.mjs /tmp/many 120 24
cd /tmp/many && /usr/bin/time -v tsrs-lint headless < payload.json > frames.binExpected: peak RSS stays about the size of one project as projects are added. Actual: it grows linearly.
Linux x86-64, 16 vCPUs (KVM), helper only. Every build uses the release profile with
CARGO_PROFILE_RELEASE_LTO=false CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16. Peak RSS, median of three runs:
| Projects | main (ce0b047) |
#848 (765f97d) |
Per-project regions (below) |
|---|---|---|---|
| 40 | 634 MiB | 458 MiB | 157 MiB |
| 120 | 1,812 MiB | 1,304 MiB | 218 MiB |
All three produce byte-identical frames (960 and 2,880 no-floating-promises findings).
gen-many-projects.mjs
#!/usr/bin/env node
// Generates a public repro for tsrs-lint's per-request memory growth: many independent tsconfig projects linted in
// one headless request (what oxlint sends for a monorepo). Every project includes the DOM lib, so each program parses,
// binds and type-checks a large declaration set of its own.
//
// Usage: node gen-many-projects.mjs <out-dir> [projects=40] [files-per-project=24]
// Writes <out-dir>/p<N>/{tsconfig.json,f<M>.ts} and <out-dir>/payload.json (V2), then prints the run command.
import { mkdirSync, writeFileSync } from 'node:fs';
import { join, resolve } from 'node:path';
const [outArg, projectsArg = '40', filesArg = '24'] = process.argv.slice(2);
if (!outArg) {
console.error('usage: node gen-many-projects.mjs <out-dir> [projects] [files-per-project]');
process.exit(64);
}
const out = resolve(outArg);
const projects = Number(projectsArg);
const files = Number(filesArg);
const rules = [
'await-thenable',
'no-floating-promises',
'no-misused-promises',
'no-unnecessary-type-assertion',
'no-unsafe-argument',
'no-unsafe-assignment',
'no-unsafe-call',
'no-unsafe-member-access',
'no-unsafe-return',
'restrict-template-expressions',
'strict-boolean-expressions',
'switch-exhaustiveness-check',
].map((name) => ({ name }));
// Each file asks the checker about DOM, promise and generic types, so every worker checker resolves a large part of
// the lib graph. One floating promise per file gives a positive control.
const source = (project, file) => `export interface Item${file} { id: number; label: string; tags: readonly string[] }
export async function load${file}(url: string): Promise<Item${file}[]> {
const response = await fetch(url, { headers: { accept: 'application/json' } });
const items = (await response.json()) as Item${file}[];
return items.filter((item) => item.tags.includes('p${project}'));
}
export function render${file}(root: HTMLElement, items: readonly Item${file}[]): void {
const list = document.createElement('ul');
for (const item of items) {
const entry = document.createElement('li');
entry.textContent = \`\${item.id}: \${item.label}\`;
entry.addEventListener('click', () => root.dispatchEvent(new CustomEvent('pick', { detail: item })));
list.append(entry);
}
root.replaceChildren(list);
load${file}('/items');
}
export const byId${file} = new Map<number, Item${file}>();
export function kind${file}(value: 'a' | 'b' | 'c'): number {
switch (value) {
case 'a': return 1;
case 'b': return 2;
case 'c': return 3;
}
}
`;
const configs = [];
for (let project = 0; project < projects; project++) {
const directory = join(out, `p${project}`);
mkdirSync(directory, { recursive: true });
writeFileSync(
join(directory, 'tsconfig.json'),
JSON.stringify({
compilerOptions: { strict: true, target: 'es2022', lib: ['es2022', 'dom', 'dom.iterable'], types: [], noEmit: true },
include: ['*.ts'],
}),
);
const paths = [];
for (let file = 0; file < files; file++) {
const path = join(directory, `f${file}.ts`);
writeFileSync(path, source(project, file));
paths.push(path);
}
configs.push({ file_paths: paths, rules });
}
writeFileSync(join(out, 'payload.json'), JSON.stringify({ version: 2, configs, report_syntactic: false, report_semantic: false }));
console.log(`${projects} projects x ${files} files -> ${out}`);
console.log(`cd ${out} && /usr/bin/time -v tsrs-lint headless < payload.json > frames.bin # macOS: /usr/bin/time -l`);Cause
crates/tsrs_lint/src/engine.rs allocates each project's program in regions that live as long as the request:
RequestRegions::loaders, oneProgramRegionsset shared by every program (the parsed and bound files);RequestRegions::workers, every lint worker's region (the worker checkers' types and links);- the main thread's request region, entered in
run.
ProgramOwner::drop frees the Program, but not what these regions hold. #848 moves the checkers' memory to
checker_regions, freed with the program, which explains its smaller numbers. The loader set and the main region
stay request-wide, so the parsed and bound files of every project, including each project's own lib files, still
add up.
With compressed pointers this also has a hard limit: every arena chunk comes from the one 32 GiB reservation, so a
large enough workspace aborts with "the arena address range is exhausted" (#783 has the numbers).
A fix
Branch: grmkris/tsrs lint-project-regions, one commit
on main (diff): engine.rs
+27 −6, a lifecycle test, a note and the capability-table cell.
- Each project gets
ProjectRegions: its lint workers' regions, a main-thread region entered for the project, and a
freshProgramRegionsset. They drop after the project's program, loaders last (as the watcher's
install_programfrees them). The request region keeps only project discovery. - Nothing that outlives a project points into them. The payload, timings, writer, config host and
cachedvfscaches
are on the heap. What escapes the scratch regions (arena::escape_scratch: program caches, diagnostics, lazily
filled shared data) goes to the thread arena, because the request region is the outermost scratch region. Every
project builds an unshared program. - This revisits the request-wide loader set from
notes/perf-tsgolint-parallel-load.md. Its reason, avoiding an arena
tail per worker per tsconfig, only holds while those tails are retained. Freed with their project, they do not add
up.
Instructions retired, single-threaded (RAYON_NUM_THREADS=1, perf stat -e instructions:u), 120 projects, three
runs each: 21.157 G on main, 21.069 G with the change (−0.4%), spread under 0.01%.
On a large private monorepo, through oxlint with its full configuration, the change on main reports the same
type-aware findings as the same patch on the 2026-10-25 PR head, apart from the tuple reports e720cf07e added to
require-array-sort-compare, at the same peak. On that head the helper's peak there fell from 18.5 GiB to 1.18 GiB
(#783).
Validation:
cargo test --locked --profile ci -p tsrs_lint: 118 passed, including the new lifecycle test (one request, six
projects, serial and parallel paths).- The same with
TSRS_ARENA_POISON=1: 118 passed. - The 40- and 120-project requests with
TSRS_ARENA_POISON=1: byte-identical frames. cargo clippy --locked -p tsrs_lint --all-targets --config 'build.warnings="deny"',cargo fmt --checkand
tools/lint/source.mjs: clean.
I know pull requests are closed (CONTRIBUTING.md), so the patch is on a fork branch for you to take, adapt or drop.
It conflicts with #848 in engine.rs. If #848 lands first, I can rebase it onto that.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
oxc-captain commentedon Oct 30, 2026
tsrs-lint headlessis the interface used by tools like oxlint for whole-workspace linting, and retaining every project's arena for the full request can drive the helper to out-of-memory or arena-exhaustion crashes on moderate-sized monorepos.The problem is in
crates/tsrs_lint/src/engine.rs:tsrs-lint headlessallocates each project's program data in the request-wideRequestRegions::loaders,RequestRegions::workers, and main thread request region. WhenProgramOwner::dropfrees theProgram, those underlying regions still hold every project's parsed/bound files and checker state until the entire request ends, so peak RSS grows roughly linearly with the number of projects.I wasn't able to find a fix, but I identified some areas that may be relevant. The likely place to change the allocation scope is
crates/tsrs_lint/src/engine.rs, particularly howRequestRegionsare created/entered around each project and howProgramOwner::dropinteracts with the loader set. The reporter's fork branchgrmkris/tsrs:lint-project-regionsproposes giving each project its ownProjectRegionsand dropping them after the project'sProgramis freed, which would keep only project-discovery data in the request region.Full Triage Report
Triage report: issue 855
Issue claim
tsrs-lint headlesskeeps the arena memory of every tsconfig project in a singleheadless request until the request ends. When a workspace contains many
independent tsconfig projects, peak RSS grows with the number of projects instead
of staying near the size of one project.
Reported on
maince0b047(Linux x86-64, helper only).Screening
gen-many-projects.mjs) and expected vs.actual behavior.
main(ce0b047).Continued with reproduction.
Build
Built
/home/runner/work/tsrs/tsrs/target/release/tsrs-lintat commitce0b047a3f6b0fb8d5a7713bb744273cb50b41fa.Minimal reproduction input
Copied the generator from the issue to
triage/gh-855/gen-many-projects.mjs.Generated independent projects with
lib: ["es2022", "dom", "dom.iterable"],12 type-aware rules, and one
no-floating-promisesfinding per file:Commands run
(Parallel runs used default worker count; a
RAYON_NUM_THREADS=1run for 120projects showed the same growth direction.)
Observed results
All runs exited with status 0 and produced
frames.bin.1 project -> 120 projectsscaling:(
~33 + 12 * Nfits the data well).Single-threaded (
RAYON_NUM_THREADS=1) 120-project run:Again, peak RSS is proportional to the number of projects, not to one project.
Note on TypeScript Go compiler reference
The pinned Go compiler (
workspace.metadata.typescript.commitinCargo.toml)was not compared because
tsrs-lint headlessis a tsrs-specific lintinginterface with no equivalent in
tsc. The issue being reproduced is tsrs's ownmemory behavior, not a parity difference in diagnostics or emit.
Conclusion
REPRODUCED: once0b047,tsrs-lint headlessallocates memory that scaleswith the number of projects in a single request instead of staying bounded near
the size of one project.
Diagnosis
DIAGNOSIS SKIPPED: no Go-versus-Rust differenceThis issue concerns
tsrs-lint headlessmemory lifetime and region allocationinside
crates/tsrs_lint/src/engine.rs. The pinned TypeScript Go compiler doesnot provide an equivalent headless linting request endpoint, so there is no
Go-versus-Rust output or behavior divergence to isolate using the normal parity
triage path.
Verification
Revisiting the issue claim:
tsrs-lint headlessshould release memory afterfinishing each independent tsconfig project, so peak RSS should stay near the
size of one project; instead it grows with the number of projects in the same
request.
The checked-out tsrs behavior was reproduced internally across 1, 4, 8, 40, and
120 independent projects, with peak RSS scaling from ~32 MiB to ~1,491 MiB
(default parallelism) and ~1,389 MiB (single-threaded). That is consistent with
the reporter's claim.
The pinned TypeScript Go compiler (
workspace.metadata.typescript.commitinCargo.toml) has no equivalenttsrs-lint headlesscommand or headless lintingrequest API, so there is no Go output, exit status, emitted file, or diagnostic
set to compare against.
docs/COMPATIBILITY.mdalso does not listtsrs-lintor headless linting as a supported or unsupported capability.
Therefore, this triage verification cannot apply the Go parity contract. The
internal reproduction is unambiguous, but the project contract that determines
bugversusintended-behavior(pinned Go compiler behavior) is not availablefor this tsrs-specific linting interface.
Verdict:
unclearunder the Go-parity contract due to the absence of a Gocomparator; the issue is reproducible as an internal tsrs-lint memory-lifetime
bug with
mediumconfidence.Fix
No fix was attempted.
The
fixstep is limited to reproduced parity bugs with a specific, medium- orhigh-confidence Go diagnosis. This issue was reproducible internally, but the
diagnosis step was skipped because the pinned TypeScript Go compiler does not
provide a headless linting API comparable to
tsrs-lint headless. Without aGo-defined expected behavior to port, implementing a fix from the triage path
would not be safe under the project contract.
A potential implementation is described in the issue body (branch
grmkris/tsrs:lint-project-regions), but it would need to be evaluated byproject maintainers independent of the Go-parity triage flow.
This report was made by an LLM. The analysis may be wrong, and the potential fix might not work, but is intended as a starting point for exploring the issue.
jasonkuhrt commentedon Nov 6, 2026
The change from this issue, rebased onto
mainafter #848. With #848'schecker_regions, the checkers' memory already goes back with each program, so what a request still keeps for every project is theRequestRegions::loadersset (each project's parsed and bound files, its lib files included) and the main thread's request region. Giving each project its own loader set and main region, freed after its program, keeps one project's regions at a time instead of every project's. The output is byte-identical.sequenceDiagram participant R as run() participant L as loader regions participant P as project N program Note over R,P: main (b8b21271) R->>L: one set for the request loop each tsconfig project R->>P: create_program(.., Arc::clone(®ions.loaders)) P->>L: parse and bind its files R->>P: run_program, then free_unshared_program Note over L: project N's files stay end Note over R,P: with the change loop each tsconfig project R->>L: ProjectRegions::new() R->>P: create_program(.., Arc::clone(®ions.loaders)) P->>L: parse and bind its files R->>P: run_program, then free_unshared_program R->>L: drop: project N's files go endResults
The generator from the issue body,
tsrs-lint headless < payload.json, built with--release,CARGO_PROFILE_RELEASE_LTO=false CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16as in the issue. macOS arm64, 10 cores,/usr/bin/time -l, median of three runs (one run for the--type-checkrow):main(b8b21271)report_semanticandreport_syntactic,TSRS_FAST=1Instructions retired on the 120-project request with
RAYON_NUM_THREADS=1, as/usr/bin/time -lreports them, three interleaved runs each: 22.32–23.10 G onmain(median 22.68 G), 22.07–22.24 G with the change (median 22.14 G).With one
TS2322added to each of three projects, the 40-project--type-checkrequest reports the same three errors on both builds, byte-identical. WithTSRS_ARENA_POISON=1, the 120-project--type-checkrequests (default andTSRS_FAST=1) are byte-identical as well.Through Oxlint on a large private monorepo (
vp lint --type-aware,TSRS_FAST=1,RAYON_NUM_THREADS=4), peak RSS of the published0.22.0-ts7.1.0-betaagainst v0.22.0 with the change. A request over one package maps its files to a few tsconfig projects; a pre-commit hook or a root lint sends files from many packages at once:The change
engine.rs+25 −6 onmain(b8b21271), the same lines on v0.22.0, and the lifecycle test from the issue's branch. The capability table's "request-owned allocation regions" becomes "per-project allocation regions".What outlives a project holds no pointer into its regions:
type_checked(perf(lint): let one lint pass replace a separate typecheck (opt-in) #897, feat(lint): make --type-check report what tsrs --noEmit does under --fast #902) holdstspath::Path, anArc<str>on the heap.Strings.ProgramOwner, before its regions drop.Diff
Validation on
mainwith the change:cargo test --locked --profile ci -p tsrs_lint: 125 passed, the lifecycle test above included.TSRS_ARENA_POISON=1: 125 passed.cargo clippy --locked -p tsrs_lint --all-targets --config 'build.warnings="deny"'andcargo fmt --check -p tsrs_lint: clean.fix(lint): free each program's loader regions with its program
christianvuerings commentedon Nov 9, 2026
Thanks for the write-up and the rebased change: I took its loader half, plus two more fixes for requests over many small composite projects that share the same libraries, in christianvuerings#12.
One
tsrs-lint headlessrequest over many tsconfig programs no longer keeps every program in memory, and stops parsing referenced tsconfigs and declaration files again for each program.mainfc384313Medians of 5 runs, helper only, quiet 64-CPU Linux x86-64 machine.
Reproduce our web monorepo numbers: https://github.com/christianvuerings/tsrs-lint-monorepo-repro generates a workspace with the same shape (175 overlapping programs, about 1,069 linted files) and gives numbers close to the monorepo rows above.
The three fixes
mainfc3843135245ecca4a440b37bbf1629f5245eccaFree each program's loader regions with the program (design by grmkris in tsrs-lint: a headless request still keeps every tsconfig project's arena memory until it ends (main after #624)Â #855, its loader half).4a440b37Parse a referenced project's tsconfig once per request, not once per program.bbf1629fParse and bind a declaration file once per request, astsc -bdoes.Still slower than tsgolint in wall time on the reproduction: 4% at 150 programs, 7% at 300 programs.
Same output
report_semanticandreport_syntactic(the--type-checkrequest; the reproduction has no type errors, so the frames are the lint findings)TSRS_FAST=1singleThreadedin its tsconfig (the sequential loader) and all 61 type-aware rulessingleThreadedprograms that share a declaration file with#privateclass members, all 61 rulesTSRS_FAST=1main, medians of 3 on a second, shared 192-CPU machine)How each fix works
oxlint sends such a request for a workspace of small composite projects that reference the same libraries: its files map to one tsconfig program per project. On
main,tsrs-lintbuilds every program of a request from nothing, keeps each one's files until the request ends, and parses the tsconfig of every referenced project and every declaration file again for each program. tsgolint 7.0.2006 builds the programs one after the other too, but keeps the files it parsed in a process-wide cache (sourceFileCacheininternal/utils/host.go), so a file is parsed once per request for each set of parse options.1. Free each program's loader regions with the program (
5245ecca)engine.rsgave every program of a request the sameProgramRegionsset, so each program's text, trees and binder data stayed until the request ended: the peak was the sum over the programs. Now the loop over the tsconfig programs makes a set for each program, before it parses the program's tsconfig, and drops it right after the program, astsc -bfrees a built project's. Inengine.rsthat is 3 lines added and 1 removed:The local shadows the request's set and is declared before the program, so it is dropped after it. The inferred program for files outside every tsconfig is the last thing a request builds: it keeps the request's set, as before.
Nothing that outlives a program points into its loader regions:
main; the lint tests pass withTSRS_ARENA_POISON=1, where a read of a freed region would not go unnoticed.Fixes 2 and 3 go through one small wrapper around the program's compiler host. What the programs share is kept by the request (
Shared): each shared value is made once, in a registered region of its own that lives until the request ends, so its lazily filled data goes there too (arena::enter_owner) and not to a program's regions, which fix 1 frees with the program.2. Parse a referenced project's tsconfig once per request (
4a440b37)The file loader parses the tsconfig of every project a program references, and theirs, through the compiler host, in queue order on the calling thread. The lint host had no cache, so every program read, parsed and expanded the
includeglobs of the same projects again: by stack samples the reference parser is 61% of the request on our web monorepo onmain.The programs of a request now share those command lines, as the projects of a
tsc -bshare them through its host.This also removes most of the growth fix 1 leaves, about 0.5 MB per program on the reproduction (0.1 MB after this commit). The lint process routes lazily filled data by owner, because the module resolver's package.json cache has a registered region. A command line in a program's unregistered loader region therefore left the entries of its name maps, one per file of the referenced project with two strings each, in the request thread's own arena, which is never freed.
3. Parse and bind a declaration file once per request (
bbf1629f)Every program parsed and bound its declaration files again. The 63 default library files of
target: es2022are 2.7 MB of text, andlib.dom.d.ts(2.3 MB) is one job on one pool thread: on the reproduction the request thread spent 68.5% of the request onmainwaiting for the pool while, in most of those samples, at most one of its threads worked.The programs of a request now share their declaration files, as the projects of a
tsc -bdo (build/host.rs): one parse perSourceFileParseOptions(file name, path and module-indicator options). The binder takes no options.tsc -bgets this frombind_in_file_regions, a process-wide switch; binding at the cache keeps the lint library free of process-wide state.Peak RSS rises with this fix on our web monorepo: the shared declaration files stay until the request ends.
Looked at and left out
find_tsconfigalready leaves in the request's region onmain..tssources the programs reach through project references), which tsgolint does. It is what is left. It needs the checker's use of shared source trees proven for more than declarations, so it is a separate change. tsrs-lint: a lint-only option to read referenced projects from their declarations #937 is a neighbouring idea.TSRS_ARENA_POISON=1(see the memory-safety checks).Still slower than tsgolint: the reproduction at 150 programs, by 4% (1.22 s against 1.17 s); the reproduction at 300 programs, by 7% (2.35 s against 2.20 s). tsgolint also shares the source files that are not declarations, which these fixes leave alone.
Peak RSS with each half of the proposal, on a second, shared 192-CPU machine (repeated runs, as marked):
mainfc3843135245eccaThe new test, and how it fails without fix 1
a_request_frees_each_program_before_the_nextruns alone in a child process (theisolatedhelper has the same code as the one four other crates' tests have) and reads how far into the arenas' address range chunks were ever carved. A request of 14 programs must carve less new address range than a request of 2 programs did before it. Each program is one large file of its own with no libraries, so the measure does not depend on what programs could share, and every program must report its one finding.mainEach cell is the range over runs with 1, 4, 16 and 64 threads and with the default on a 192-CPU machine.
Where the time went on main (stack samples)
The request thread builds and lints one program after the other. gdb stack samples of it (89 on the reproduction, 146 on our web monorepo), taken on another machine than the timings (192 CPUs, shared with other jobs); the machines have no access to hardware counters:
mainfc384313new_program)ProjectReferenceParser, on this thread)FilesParser::prefetch)On our web monorepo 49.3% of the request is
get_resolved_project_reference(32.9% theincludeglobs, 9.6% extended configs) and 8.9%parse_input_output_names. Inside that parallel step the request thread waits for the pool (68.5% and 26.7% of the request), and in most of those samples at most one pool thread works.Every size, and one-thread CPU time
Medians of 5 runs on the quiet machine. Wall time, CPU time (user plus system), peak RSS:
mainfc3843135245ecca4a440b37bbf1629fCPU time with one thread (
RAYON_NUM_THREADS=1,GOMAXPROCS=1), medians of 3 runs on the quiet machine:mainfc3843135245ecca4a440b37bbf1629fPublic reproduction
The reproduction is a generated workspace:
gen.mjswrites N composite "suite" projects of 3 files each, 12 shared libraries of 121 files each and a core package, connected by project references and apathsmapping, andpayload.json, the request oxlint 1.92.0 sends foroxlint --type-aware -A all -D typescript/no-floating-promisesover the suite files (same files and options; oxlint lists the files in another order). Every suite has one floating promise.Both helpers report the same 300 findings (tsgolint writes the keys of a frame in another order, and the frames in an order that changes from run to run).
gen.mjsHow it was measured
<helper> headless < payload.json > frames.bin, alone, in its own memory-capped cgroup scope, under/usr/bin/time -v. Peak RSS is its "Maximum resident set size", CPU time is user plus system. On the quiet machine every cell is the median of 5 runs (3 for the one-thread table):mainand tsgolint ran interleaved, round by round, and the three fix builds ran interleaved among themselves after them, on the same morning. A run during which other processes used more than 2 cores was repeated and only the repeat counts: 73 of 203 runs, almost all of them runs under 2 s, where that reading is dominated by timer rounding. The tables from the second machine state their own run counts.mainisfc384313(Nov 6, 2026), the v0.23.0 release commit and still the tip of upstreammainon Nov 8, 2026. Every build iscargo build --release --locked -p tsrs_cliwithCARGO_PROFILE_RELEASE_LTO=thin,CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16,CARGO_PROFILE_RELEASE_DEBUG=line-tables-onlyandCARGO_PROFILE_RELEASE_STRIP=false, run astsrs --lint.perf_event_openis not available). CPU time with one thread stands in (the table is folded under "Every size"): with one thread no pool thread looks for work, so CPU time is work done.Why the output cannot change, and memory-safety checks
Why it holds:
Frames are compared as bytes, in the order written, against
main, after each commit.Memory safety:
cargo test -p tsrs_lintpasses withTSRS_ARENA_POISON=1(freed memory is filled and never used again): 125 tests pass at each commit. The existing tests are what guards the two lifetime rules of fixes 2 and 3 (both checked at the tip): with a shared command line left in the asking program's region,type_check_uses_transitive_custom_project_options_without_rulesdoes not finish under poisoning; with shared files bound by the loader instead of at the cache, four existing tests fail.TSRS_ARENA_POISON=1: the reproduction at 300 programs writes the same bytes asmain, also with type checking, and our web monorepo's one-rule request finishes with no findings, as onmain.Validation
cargo fmt --all -- --check,cargo clippy --locked -p tsrs_lint --all-targets --config 'build.warnings="deny"'andnode tools/lint/source.mjs, at each commitcargo test --profile ci --locked -p tsrs_lint: 125 tests pass at each commit, including the imported rule baselines and the all-rules fixture; the same underTSRS_ARENA_POISON=1. The new test returns early there, because its measure needs freed memory to be used again.cargo test --profile ci --locked -p tsrs_cli --test integration lint_mode(it runs the linter in process): passes at each commitNot run: the tests of the other crates (only
crates/tsrs_lintchanges, plus two lines ofCargo.lockfor its new dependencies ontsrs_binderandtsrs_diagnostics, and one line ofdocs/COMPATIBILITY.md),bench/lint.mjs(its projects were not at hand; the one-program request above stands in), the determinism catalog, ThreadSanitizer and Miri. The fork has no access to thenamespace-profile-linux-x64-defaultrunners, so CI jobs that need them stay queued.Credit:
tsrs-lintis by Cameron (camc314, "feat: tsrslint", #624) and Max Schwenk (maschwenk). The per-program regions design is the proposal in #855 by grmkris.fix(lint): free each program's loader regions with its program (oxc-p…