Skip to content

test: lake: ccIdentity's fake compilers run the system's cc - #9

Merged
legion-implementer[bot] merged 1 commit into
fork/v4.36-lake-cc-identity-r21from
legion/LINUX-1736-lake-cc-identity
Nov 28, 2026
Merged

legion-implementer[bot] merged 1 commit into
fork/v4.36-lake-cc-identity-r21from
legion/LINUX-1736-lake-cc-identity

Conversation

@legion-implementer

@legion-implementer legion-implementer Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

ccIdentity failed in the job "build / Linux release" on the tag
v4.36-machcsl-r20 for a defect of the test. Its fake compilers ran
${CC:-cc}. CI's Nix shell sets CC=clang, and the test suite puts the
stage's bin first on PATH (tests/CMakeLists.txt), which holds the Lean
toolchain's own clang. That clang finds its headers only with leanc's flags
(-nostdinc -isystem <toolchain>/include/clang), which a LEAN_CC compiler
does not get, so every compile of the test failed:

.../build/stage2/include/lean/lean.h:8:10: fatal error: 'stddef.h' file not found

The fake compilers now run cc, the system's C compiler that the other Lake
tests (cacheInsertPartial, inputLock, remoteCacheClaim, ...) compile with,
and that compiled their preloads in the same CI step. The test's cases and
expectations are unchanged.

This is a change of the fork's release r21: it goes into the member branch fork/v4.36-lake-cc-identity-r21, which r21 merges in place of the member it copies. It merges as a squash after its review, when r21 is cut.

Why this pull request's own build / Linux release is red: its job (https://github.com/sjawhar/lean4/actions/runs/46107440891/job/140863321827) stops at Upload Lake Cache, before any test: a pull request's run takes its workflow files from the member branch, which carries upstream's .github, and the fork has no Lake cache endpoint or key; the CI member (#6) fixes that step for the fork's runs. The members are tested together in the tree the cut takes: this pull request merges only at a head that a passing rehearsal of the release's integration includes, named here before the merge.

Dispatch: LINUX-1736

ccIdentity failed in the job "build / Linux release" on the tag
v4.36-machcsl-r20 for a defect of the test. Its fake compilers ran
`${CC:-cc}`. CI's Nix shell sets `CC=clang`, and the test suite puts the
stage's `bin` first on `PATH` (tests/CMakeLists.txt), which holds the Lean
toolchain's own clang. That clang finds its headers only with leanc's flags
(`-nostdinc -isystem <toolchain>/include/clang`), which a `LEAN_CC` compiler
does not get, so every compile of the test failed:

    .../build/stage2/include/lean/lean.h:8:10: fatal error: 'stddef.h' file not found

The fake compilers now run `cc`, the system's C compiler that the other Lake
tests (cacheInsertPartial, inputLock, remoteCacheClaim, ...) compile with,
and that compiled their preloads in the same CI step. The test's cases and
expectations are unchanged.

Part of LINUX-1736.

Omp-Session: 01a21fea-50cc-71ef-b840-72b8c7ab62bb
Legion-Role: implementer
legion-implementer Bot added a commit that referenced this pull request Nov 28, 2026
…ntegration

The heads of the pull requests that make r21's CI member and its -r21 copies,
merged on the first integration commit: #6 (the CI member, on
the trunk), #7 (remoteExec, usageCutoffCrossTree and cacheInsertPartial in the
service-mode member), #8 (cacheInsertPartial in the cache-insert member), #9
(ccIdentity), #10 and #11 (usageCutoffCrossTree in the two pack members) and
#12 (the Windows declaration in the lazy-import-names member).

The merge needs no resolution: its tree is the first integration commit's
tree with each pull request's change, and where two of them make the same
change (usageCutoffCrossTree's writable lakefile, cacheInsertPartial's
preload) that change once.

Refs: LINUX-1736
Omp-Session: 01a21fea-50cc-71ef-b840-72b8c7ab62bb
Legion-Role: implementer
@legion-implementer

Copy link
Copy Markdown
Author

Review pass by a reviewer of another model family (openai/gpt-6.2-sol), read-only, against the change's rules (a test changes only to fix its own defect; nothing skipped or loosened).

  • Head fbc3c9834558: approve, no findings.

@legion-implementer

Copy link
Copy Markdown
Author

Release rehearsal: run 46160867934 passed on integration commit 9fddac80674ec8fa262b6720bb79ba745dd6ddf1, which includes this reviewed head fbc3c983455814be657afb4cc7efff6ee6c1a6d8. The x86-64 and Arm64 test and source-tree checks and both Linux sanitizer jobs passed. The final release commit will have its own release CI run.

@legion-implementer
legion-implementer Bot marked this pull request as ready for review November 28, 2026 20:21
@legion-implementer
legion-implementer Bot merged commit 8a7c40e into fork/v4.36-lake-cc-identity-r21 Nov 28, 2026
18 of 20 checks passed
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.

0 participants