Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

feat(8p): WP0 ResourceOptions + WP2 parallel run_all --build-dir - #205

Merged
cap-jmk-real merged 7 commits into
mainfrom
feat/lic-resource-options
May 25, 2026
Merged

feat(8p): WP0 ResourceOptions + WP2 parallel run_all --build-dir#205
cap-jmk-real merged 7 commits into
mainfrom
feat/lic-resource-options

Conversation

@cap-jmk-real

Copy link
Copy Markdown
Contributor

Summary

  • WP0: compiler/common ResourceOptions — CLI --jobs, --max-memory, --job-memory-mb, --build-dir, --threads; deprecated LI_* env (flag wins, one warning).
  • WP2: li-tests/run_all.sh uses -j / memory flags / --build-root; workers invoke lic build --build-dir=… (no export LI_*). scripts/lib/li-jobs.sh adds li_effective_jobs.
  • MIR --jobs>1: documented no-op note in compile.cpp (partition follow-up).

Test plan

  • ./scripts/build.sh
  • ./li-tests/tooling/resource_flags_smoke.sh
  • LI_TEST_JOBS=1 ./li-tests/run_all.sh vs ./li-tests/run_all.sh -j8 (same pass/fail)

Agent continuation

See docs/release-notes/2026-05-25-lic-resource-options-wp0-wp2.md.

Not changed

compiler/analyze/, workspace check driver, OpenMP removal, bench_toolchain.py.

Made with Cursor

cap-jmk-real and others added 2 commits May 25, 2026 12:28
Add compiler/common ResourceOptions with --jobs, --max-memory,
--job-memory-mb, --build-dir, --threads; deprecate LI_* env when flags
are set. run_all.sh and lic-workspace-build.sh use li_effective_jobs and
pass --build-dir per parallel worker instead of exporting LI_BUILD_DIR.

Co-authored-by: Cursor <cursoragent@cursor.com>
…WP0/WP2)

Shared parser for --jobs, --max-memory, --job-memory-mb, --build-dir, and
--threads with LI_* deprecation warnings; parallel li-tests pass isolated
--build-dir to lic build instead of LI_BUILD_DIR.

Co-authored-by: Cursor <cursoragent@cursor.com>
ci.sh passes run_all.sh -j8 --max-memory=8192 instead of LI_TEST_JOBS;
run_all forwards --max-memory to lic build; baseline wall_s/peak_rss rows.
Stacks on feat/lic-resource-options (#205).

Co-authored-by: Cursor <cursoragent@cursor.com>
@cap-jmk-real

Copy link
Copy Markdown
Contributor Author

merge-ready — stack base PR; CI green (build-and-test linux/macos/windows, lake-build, memory-linux, version). Merge first; stack continues at #212#208. #206 (bench) independent on main.

cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@cap-jmk-real

Copy link
Copy Markdown
Contributor Author

Duplicate agent relaunch; closing in favor of canonical PR #214. Dedupe pass 2026-05-25 (li-cursor-agents).

Co-authored-by: Cursor <cursoragent@cursor.com>
@cap-jmk-real cap-jmk-real reopened this May 25, 2026
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
Bash 3.2 + set -e aborted run_one_worker before writing per-job .rc files
when run_one returned 2 (skip) or 1 (fail). Keep errexit off in the worker,
use li_lic_build for empty flag arrays, and wait each parallel pid explicitly.

Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
FILTER was bound to argv[1] before flag parsing, so CI invocations like
run_all.sh -j8 --max-memory=8192 matched no suite. Also fix bash 3.2 pids array.

Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@cap-jmk-real
cap-jmk-real force-pushed the feat/lic-resource-options branch from abce126 to 33ff755 Compare May 25, 2026 11:59
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@cap-jmk-real
cap-jmk-real force-pushed the feat/lic-resource-options branch 2 times, most recently from b61474c to ff33023 Compare May 25, 2026 12:09
Co-authored-by: Cursor <cursoragent@cursor.com>
@cap-jmk-real
cap-jmk-real force-pushed the feat/lic-resource-options branch from 515a7ef to 06b11e4 Compare May 25, 2026 12:12
@cap-jmk-real
cap-jmk-real merged commit 72b9f75 into main May 25, 2026
2 of 6 checks passed
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cap-jmk-real added a commit that referenced this pull request May 25, 2026
* chore(ci): retrigger checks after stack base retarget to #205

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore(ci): retrigger checks after stack base retarget to #205

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore(ci): retrigger checks after stack base retarget to #205

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(check): WP3 workspace driver and diagnostic JSON cache

Add lic check --workspace with parallel per-member subprocess checks,
LRU diagnostic cache flags, and smoke coverage for cache + workspace paths.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(check): separate diagnose vs check cache keys

Include JSON command name in cache key so lic diagnose does not replay
lic check diagnostic envelopes.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(check): shorten cache keys for safe path hashing

Collapse cache key material into one hex digest so keys stay within the
96-character limit enforced by cache path validation.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(check): bind cache entries to content hash on load

Reject v=1 cache files without a matching content= line so poisoned
exit=0 entries cannot short-circuit check; tighten exploit harness.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(check): implement hash_direct_import_graph for WP3 cache keys

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(check): complete WP1 advisory check pipeline

Wire check/diagnose through run_frontend_check with configurable typosquat policy, advisory severities, and deny-warnings behavior so WP3 can reuse a stable per-file check API. Add advisory fixtures and JSON smoke coverage to prove warning/note/error handling and check-only outcomes.

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore(ci): retrigger checks after stack base retarget to #205

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(compiler): execution resource controls (--cores, team_size in codegen)

Extend ResourceOptions with --cores and --threads-per-core, bake runtime
team into li_parallel_for_i64 at build time, document jobs vs threads vs
SIMD lanes, and add li-tests/execution_resources smoke (LLVM IR checks).

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(codegen): preserve LI_EMIT_LL after link for execution_resources smoke

Union rebase kept maybe_keep_emit_ll from main but restore the guard so
explicit LI_EMIT_LL paths are not deleted after null-out or link builds.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant