build-and-test
Skill2k starsChanged 6 days agoApache-2.0View on GitHub
Read before building clice or running its test suites — where they run (a box where the `box` command exists, else here), what a change runs, the commands, other platforms, reading the results.
8 other projects use a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- angelscript-tools/angelscript-mcptheir own version, first seen Nov 29, 2026
- thanhthanh11/claudeCodetheir own version, first seen Oct 25, 2026
- google/boringssltheir own version, first seen Oct 20, 2026
- microsoft/agent-frameworktheir own version, first seen Oct 13, 2026
- huynhsontung/Screenboxtheir own version, first seen Oct 8, 2026
- dotnet/runtimetheir own version, first seen Oct 8, 2026
Who's talking about clice-io/clice
- emacs-lsp/lsp-mode“Add support for the clice C/C++ language server”GitHub · Jun 2, 2026 · 3 reactions
- zed-industries/extensions“Update clice to v0.1.3”GitHub · Nov 23, 2026 · 1 reactions
- neoclide/coc.nvim“C++ class member variable coloring anomaly”GitHub · Nov 29, 2026
- archlinuxcn/repo“addpkg: clice-bin”GitHub · Nov 25, 2026
- ScoopInstaller/Main“[Request]: clice”GitHub · Nov 17, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub (11 times).
On GitHub · 11
- Jun 2, 2026Add support for the clice C/C++ language server — emacs-lsp/lsp-mode3 reactions
- Nov 23, 2026Update clice to v0.1.3 — zed-industries/extensions1 reaction · 1 comment
- Nov 29, 2026C++ class member variable coloring anomaly — neoclide/coc.nvim0 reactions · 1 comment
- Nov 25, 2026addpkg: clice-bin — archlinuxcn/repo0 reactions
- Nov 17, 2026[Request]: clice — ScoopInstaller/Main0 reactions
6 more on GitHub
- Nov 17, 2026feat(clice): add 1.0.0 for linux/macosx/windows x86_64+aarch64 — openxlings/xim-pkgindex0 reactions
- Nov 16, 2026ニュースのノート(日刊)に「C++ の言語サーバー clice の 1.0 版」(2026-11-15)を足す — okayus/sukitooru0 reactions
- Oct 17, 2026[Candidate] clice-io/clice/.claude/skills/codex - codex — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 6, 2026Update clice to v0.1.2 — zed-industries/extensions0 reactions · 4 comments
- Oct 5, 2026Claiming namespace `clice-io` — EclipseFdn/open-vsx.org0 reactions
- Nov 2, 2025`xmake l utils.ci.packageskey` failed with exit code 255 — xmake-io/github-action-setup-xmake0 reactions · 8 comments
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- dotnet/runtime★ 18ksame name
- microsoft/agent-framework★ 15ksame name
- huynhsontung/Screenbox★ 4.8ksame name
- google/boringssl★ 2.3ksame name
- microsoft/wassette★ 977same name
- BariBariGood/manzanas★ 22same name
- angelscript-tools/angelscript-mcp★ 2same name
- thanhthanh11/claudeCode★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- cpp-styleSkill
- ecosystem-runsSkill
- external-agentsSkill
- pull-requestSkill
- releaseSkill
- simplify-designSkill
- triage-issuesSkill
- upgrade-llvmSkill
- write-docsSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Every push: the unit tests and the cases, RelWithDebInfo, beside CI — push without waiting for them.
- Very specific: line 38
Before running a suite, check the binary was built after your last source edit (on a box: after your last box push): a pass on a stale …
- Distinctive: line 62
Only a linux box restores main's CI caches (Bazel's and ThinLTO's), of Linux x64 and Windows x64 RelWithDebInfo: a Debug build or another …
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Building and testing clice
Where it runs
Where the box command is installed (command -v box; the agent-box skill), every build and suite runs on a box, not on this machine: it hosts every agent's session, and one build saturates it. Only the tools' own tests (pixi run npm test -w tools, no build) run here. Without box, everything runs here.
Either way, builds and suites go through Bash run_in_background, which notifies on exit — not a detached script polled by timed wake-ups.
What a change runs
- Every push: the unit tests and the cases, RelWithDebInfo, beside CI — push without waiting for them.
- Async code, shutdown or position math: the Debug suites too, beside the RelWithDebInfo ones. ASan and the assertions — clice's, clang's and kotatsu's — live only there. Debug builds Linux x64 and macOS arm64 alone: xclang has the ASan libclang only there.
- Command handling: the compat suite (
pixi run compat-test). It needs the build systems and compilers CI has: the pixi environmentscudaandtoolchains, and the system's — on Linux the image CI's job runs in (tests/compat/Dockerfile; on a box, see "On a box"), on Windows whatcompat-test.ymlinstalls. WhereCIis set, a box included, a missing one fails its scenario instead of skipping it. editors/: the editors' end-to-end tests (pixi run -e editor editor-test, Zed'szed-e2e); on Linux without a display, underxvfb-run -a.- A new command, flag,
clice/*request orclice.tomlkey: a case that exercises it, or CI's coverage check fails (tests/README.md, "Coverage"). - A failure on one platform: reproduced and fixed on that OS — a box of it, or a machine of yours — not by pushing guesses at CI.
Commands
- Build:
pixi run build [type]=npx bazel build --config=[type] //:dist(npm's bazelisk), the typeRelWithDebInfo(the default) orDebug. Each type has its own output directory:build/[type]/binis Bazel's output tree, withbin/clice,bin/unittestsand the resource directorylib/clangin it — the tests and everything else runbuild/[type]/bin/bin/clice. - More targets and Bazel options go after
--, built beside//:dist://:packageand//:symbolsare the release archive and the symbol package,clice.gsym(build/[type]/bin/clice.tar.gzandclice-symbol.tar.xz,.zipon Windows). - libclang is ThinLTO bitcode: a link redoes its code generation (minutes) unless lld's ThinLTO cache (
bazel/clice.bazelrc) has it, so the first link on a machine is slow and later ones take seconds. npx bazelexists oncepixi run install-tests(or a build) has run. Building on Windows takes a short output root first (docs/en/guide/build.md).compile_commands.jsonfor clice's own sources:npx bazel run @compdb//:refresh -- --output_groups=+compilation_prerequisites_INTERNAL_(of//...): the added output group builds what the commands read but the aspect does not, the generated headers and the_virtual_includestrees, which go stale otherwise.- Unit tests:
pixi run -e test-run unit-test [type]; one of them:-- --test-filter=SuiteName.CaseName(alsoSuiteName.*). - Cases:
pixi run -e test-run cases-test [type]; some of them:CLICE_CASES=<path prefix> pixi run -e test-run cases-test [type], the prefix e.g.hover/orhover/templates/06_template_forms. The "Running" section oftests/README.mdlists the rest. - Both:
pixi run -e test-run test [type]. The suites run in thetest-runenvironment, as in CI. - Every target also cross-builds on Linux x64, as CI builds them all:
pixi run build RelWithDebInfo -- --platforms=@xclang//platforms:<triple>, the triples being thetargets of.github/workflows/test.yml.build/[type]points at the last build's output tree: after a cross build, the suites here would run the other platform's programs — build natively again first.
Reading the results
- Write the output to a file (
> /tmp/<topic>-build.log 2>&1), then read the exit code and the log's tail (Build did NOT complete successfully,FAILED, the suite summary) — never the whole log, never through a pipe:| tailreports tail's exit code (a failed build looks green),pipefail+| grep errorfails when there is nothing to find. - Before running a suite, check the binary was built after your last source edit (on a box: after your last
box push): a pass on a stale binary verifies nothing. - A failing case is named
<topic>/<subtopic>/<case> > <test>;CLICE_CASES=<topic>/<subtopic>/<case>reruns it alone.
On a box
id=$(box up clice-io/clice) # ~1 min
box push $id # tracked files only: `git add` new ones first
box run $id 'pixi run build RelWithDebInfo' > /tmp/<topic>-build.log 2>&1 &&
box run $id 'pixi run -e test-run test RelWithDebInfo' > /tmp/<topic>-test.log 2>&1- The Linux compat suite runs in CI's image, tagged by the Dockerfile's SHA-256, as the box's own user, with the checkout, the caches (Bazel's output tree among them) and pixi mounted at their own paths;
--initletsbazel shutdownsee its server exit:
box run $id 'src=$(realpath .) && docker run --rm --init -e CI \
-v "$src:$src" -v "$HOME/.cache:$HOME/.cache" -v "$HOME/.pixi:$HOME/.pixi" -w "$src" \
ghcr.io/clice-io/compat-linux:$(sha256sum tests/compat/Dockerfile | cut -d" " -f1) \
bash -c "export PATH=$HOME/.pixi/bin:\$PATH && pixi install -e node -e cuda -e toolchains && pixi run -e node compat-test"' \
> /tmp/<topic>-compat.log 2>&1- Boxes are plentiful: verification runs in parallel, never one run after another on one box. Each kind of work gets a box of its own — RelWithDebInfo and Debug, each target, each side of an A/B — and the cases split over several with the shard argument (
pixi run -e test-run cases-test RelWithDebInfo 2/3, whole subtopics per shard). - A box is leased once and reused, warm, for every later push; never
box downit — an idle box stops by itself after an hour. - Only a linux box restores main's CI caches (Bazel's and ThinLTO's), of Linux x64 and Windows x64 RelWithDebInfo: a Debug build or another cross target starts cold.
- Another platform: build on a linux box with the platform's triple, run on a box of that platform (
--os). That box only runs the suites (a windows box builds nothing: no Bazel cache, only thetest-runenvironment):
lin=$(box up clice-io/clice)
win=$(box up clice-io/clice --os windows) # or windows-arm, macos, macos-intel, linux-arm
box push $lin && box push $win
box run $lin 'pixi run build RelWithDebInfo -- --platforms=@xclang//platforms:x86_64-w64-mingw32' &&
box cp $lin $win build/RelWithDebInfo/bin/bin build/RelWithDebInfo/bin/lib --exclude '*.runfiles' --exclude '*.dSYM' &&
box run $win 'pixi run -e test-run unit-test RelWithDebInfo'Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

