Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
Developer tools

Русская версия

Choose a command by the result you need. Run the commands from the repository root unless a section says otherwise. The following pages describe the tools in this source revision; the installed SDK and the release HTML may contain an older set.

Task Entry point Reference
Build the library and run tests CMake and CTest Build and testing commands
Check names python tools/check_naming.py Naming
Select and validate CI checks python tools/ci/checks.py CI selection
Build and check HTML help portals_docs, then check_links.py Documentation tools
Process HTML and highlight CMake tools/docs/finalize_html.py HTML finalizer
Measure source changes portals_compactness Measurements
Measure runtime costs Five portals_*_benchmark executables Benchmarks
Check file-backed LogView memory tests/probes/log_view_memory.py LogView memory probe
Qualify large document viewing portals_document_ui_probe, portals_document_oracle_probe Document probes
Generate document fixtures or check probe contracts tests/probes/document_corpus.py, test_document_probes.py Document probe reference
Save and compare measurements tools/quality/performance.cmake Performance receipts
Collect Clang-tidy observations tools/quality/readability.cmake Readability
Inspect terminal behavior portals_terminal_probe Terminal probe
Check native terminal cleanup native_windows.ps1 or native_xterm.sh Native checks
Build a runnable bundle tools/package/bundle.ps1 or bundle.cmake Packaging
Run an example from a bundle Packaged run.ps1 / run.sh Bundle launchers
Prepare a release PR tools/release/start.ps1 or start.py Release preparation
Assemble and publish release assets Release workflow CI release helpers

Reading command examples

PowerShell examples use paths relative to the checkout. Quote a complete -DNAME=value argument when its value contains spaces or semicolons. CMake script arguments precede -P script.cmake. With a multi-configuration generator, add --config Release to builds and use the executable in its Release directory. Measurement examples use Ninja Release and a dedicated build/tools directory.

A CLI's --help describes accepted arguments when implemented. The benchmark programs and shell launchers support standalone --help; PowerShell uses Get-Help, and direct CMake scripts accept -DHELP=ON. A failed check returns a nonzero status. Exact exit values are listed where the implementation defines them; CMake and PowerShell failures are described as nonzero instead of promising a portable numeric value.

Built-in help

Help is maintained alongside each implementation and is available before required operational inputs. These commands print help without starting the main operation:

python tools/docs/finalize_html.py --help
python tools/ci/checks.py select --help
Get-Help ./tools/native_windows.ps1 -Full
cmake -DHELP=ON -P tools/quality/performance.cmake
./build/tools/portals_mvp_benchmark.exe --help

All maintained scripts

Use this list to find a script by filename in tools/ or cmake/. Each source contains built-in help or an internal-helper description. Detailed parameters are in the linked reference.

File Reference
cmake/FinalizeDiagrams.cmake Internal helper
cmake/FinalizeDocumentation.cmake Internal helper
cmake/TestProcesses.cmake Internal helper
tools/benchmarks/check.cmake Measurements
tools/benchmarks/check_managed.cmake Measurements
tools/check_naming.py Build and checks
tools/test_check_naming.py Naming runner regression tests
tools/ci/checks.py Build and checks
tools/ci/check_plan.py Local contract check plans
tools/ci/test_check_plan.py Regression test
tools/ci/test_checks.py Regression test
tools/docs/check_links.py Build and checks
tools/docs/architecture.py Architecture exports
tools/docs/architecture_test.py Regression test
tools/docs/finalize_html.py Build and checks
tools/docs/test_cli_help.py Regression test
tools/docs/test_finalize_html.py Regression test
tools/native_windows.ps1 Build and checks
tools/native_xterm.sh Build and checks
tools/package/bundle.cmake Packaging and releases
tools/package/bundle.ps1 Packaging and releases
tools/package/common.cmake Internal helper
tools/package/run.ps1 Packaging and releases
tools/package/run.sh Packaging and releases
tools/quality/performance.cmake Measurements
tools/quality/change_impact.py Include and rebuild footprint
tools/quality/test_change_impact.py Regression test
tools/quality/readability.cmake Measurements
tools/release/metadata.py Packaging and releases
tools/release/package.cmake Packaging and releases
tools/release/publish.py Packaging and releases
tools/release/start.ps1 Packaging and releases
tools/release/start.py Packaging and releases

Internal helpers and tests

tools/ contains both direct commands and support code. Shared CMake modules, HTML finalizers and release publisher internals are identified in their reference pages. Use the documented target or workflow that supplies their inputs.

tests/*.cmake, tests/release_*.py and the consumer-test scripts are test implementations. Run them through CTest or their documented unittest command. tools/ci/test_checks.py and tools/docs/test_finalize_html.py test the corresponding helpers. They are included in the build/CI reference, not extra production commands.

See testing for replay fixtures, fault injection and native supervisor contracts, and fuzzing for sanitizer-oriented test executables.

Local workspace scripts

The ignored .work/ directory is private working material. It is absent from source archives and SDKs. Files below logs/, tmp/, artifacts/, experiments/ and worktrees/ can contain generated drivers, copied tools and dependencies. A count of these files does not describe the maintained tool set.

Do not use a historical log script as a project entry point: it may contain an absolute checkout path or assumptions about one experiment. Keep its original receipt with the task that ran it. A reusable local helper belongs in the private workspace index with its owner, requirements, inputs, output and measurement limits. If the project starts depending on it, move it into maintained source with tests and a public reference before adding it to CI. Workspace cleanup must preserve unpublished changes and the evidence needed by active tasks.

Maintenance

When changing a maintained tool, update its parameter table, command examples and EN/RU pages together. Document defaults, units, required files, output locations, exit behavior and any file, terminal or remote changes. Link new entry points from this catalog. Keep test traces and run-specific evidence outside these guides.

WASM sample host

From examples/wasm_gallery/web, run npm ci, then npm run build -- --help for the host builder reference. npm run build -- [output-directory] bundles the existing runtime with JS/CSS, HTML, source maps, artifact hashes and license notices. The default is build/wasm-debug/wasm-gallery from the repository root. Exit codes are 0 for success/help, 1 for build/input failures and 2 for invalid arguments. It preserves runtime artifacts and writes only host output files in the chosen directory. WASM Gallery and Level describes Emscripten setup, Node/browser checks and the test-server environment variables.