Skip to content

Omit debug information from CI development and test builds - #2189

Open
dblock wants to merge 3 commits into
trailofbits:masterfrom
dblock:dblock/ci-no-debuginfo
Open

dblock wants to merge 3 commits into
trailofbits:masterfrom
dblock:dblock/ci-no-debuginfo

Conversation

@dblock

@dblock dblock commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Disable debug information in CI's development and test profiles, including nested fixture and driver builds. This adapts the debug-info reduction from dylint-spellcheck #35; Dylint already builds lint libraries in release mode, so that PR's exact coverage-library change is unnecessary here.

Optimization levels and debug assertions are unchanged. opt-level=3 is deliberately not copied: it increased fresh build time in the local comparison below. Developer builds outside CI and the separate coverage workflow are unchanged. The tradeoff is less source-line detail in CI backtraces; #2186's dependency cache automatically keys on these Cargo environment settings.

Local Build Comparison

Real dylint_driver library builds on Apple Silicon using nightly-2026-08-20, identical source, separate empty target directories, warm downloaded dependencies, and CARGO_INCREMENTAL=0. One observation per configuration; target-file sizes are logical file bytes, not compressed cache sizes or a full-CI benchmark.

Development Profile Build Time Target-File Size
Default 9.62s 204 MB
debug=0 (this PR) 7.82s 123 MB
debug=0, opt-level=3 (not applied) 10.14s 148 MB

Debug removal reduced build time by 18.7% and target-file bytes by 39.6% in this sample. Actual hosted-CI gains remain unmeasured.

Validation

With both profile settings enabled: four focused integration tests passed, including generated-library build/test variants, custom build directories/linker copying, direct driver execution, and source-change invalidation. The three planner/ShellCheck tests, strict workspace custom lints, actionlint, and Prettier also passed.

Based on #2186. This is a logical stack targeting upstream master, as before; fork heads cannot use native GitHub stacks. This layer's diff.

Authored by an AI acting on behalf of @dblock.

@dblock
dblock requested a review from smoelius as a code owner November 19, 2026 11:31
dblock and others added 3 commits November 19, 2026 10:06
Plan explicit matrix entries from the PR or merge-group base commit before allocating test runners. Preserve regular platform coverage and full expensive suites on relevant changes, schedules, and manual runs. Fail the required gate if planning fails.

Install formatting, CI, and scheduled-check tools only for suites that use them. Consolidate Rustup updates while retaining common toolchain preinstallation and disk cleanup. Test event selection, deleted and renamed paths, and invalid bases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/ci-no-debuginfo branch from df71a25 to 794fac0 Compare November 19, 2026 15:09

This branch has not been deployed

No deployments
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.

1 participant