Skip to content

release: ship debug-symbol sidecars per REL-009 #296

Done

Description

@zackees

Part of forge-ci/ci.yml#574 (fleet rollout of REL-009, forge-ci/ci.yml#573): every native release must ship debug symbols as a sidecar.

Found: Linux split-debuginfo = "packed" (duplicates DWARF); no symbols asset

Fix (see forge-ci/ci.yml#573 for the authoritative contract):

  • [profile.release]: debug = "line-tables-only", no build-time stripping of debug info. Linux split-debuginfo = "off", macOS packed.
  • Post-link split on Linux (objcopy --only-keep-debug → strip --strip-debug → objcopy --add-gnu-debuglink), macOS .dSYM, Windows .pdb. Logic goes in ci/*.py with tests, copied from forge-ci/soldr .github/scripts/stage_release_binaries.py.
  • Publish <name>-v<version>-<triple>-symbols.tar.zst per binary and target, listed in SHA256SUMS. A missing sidecar fails the release.
  • Verify with a dry-run release: the shipped binary is stripped, the sidecar matches (debuglink/UUID), and a deliberate panic backtrace symbolizes. Record before/after sizes in the PR.

Activity

  1. zackees commented on Nov 28, 2026

    @zackees
    MemberAuthor

    Owner rule (2026-11-28): symbol sidecars go on the GitHub release ONLY. No .debug/.dSYM/.pdb/.dwp/-symbols.tar.zst file may be in any PyPI upload (wheel or sdist), and the wheel binary must be the stripped one. Add a check that fails the release if a wheel contains debug symbols or sidecar files.

  2. zackees commented on Nov 29, 2026

    @zackees
    MemberAuthor

    REL-009 dry-run verification at e053b91 (merge of #297)

    Dry-run: https://github.com/FastLED/cli/actions/runs/46280533130 (dry_run=true). It failed at artifact-preflight, and nothing was tagged or published. Full coverage at the SHA passed first: https://github.com/FastLED/cli/actions/runs/46269481571 (all 29 platform workflows dispatched at the SHA).

    Blocker: the wheel lint rejects .debug_gdb_scripts

    ci/release_artifact_lint.py (_elf_debug_sections, line 48) treats every section named .debug_* as debug info:

    ValueError: symbols in wheel fastled-2.0.23-py3-none-manylinux_2_28_aarch64.whl: ["fastled/bin/fastled: unstripped debug sections ['.debug_gdb_scripts']"]
    

    .debug_gdb_scripts is not DWARF. rustc emits it as a small loaded (SHF_ALLOC) section that tells gdb which pretty-printers to load, and strip --strip-debug is meant to keep it. The binary itself is correctly stripped. Fix: exclude .debug_gdb_scripts in the lint (or match only non-ALLOC sections), then re-run the dry-run. This is a false positive in the lint, not a missing strip.

    Sidecars (all 6 targets present; stage_symbols.py check passed in the preflight)

    sidecar bytes
    fastled-v2.0.23-x86_64-unknown-linux-gnu-symbols.tar.zst 12,278,897
    fastled-v2.0.23-aarch64-unknown-linux-gnu-symbols.tar.zst 12,388,671
    fastled-v2.0.23-x86_64-pc-windows-msvc-symbols.tar.zst 9,032,204
    fastled-v2.0.23-aarch64-pc-windows-msvc-symbols.tar.zst 8,566,453
    fastled-v2.0.23-x86_64-apple-darwin-symbols.tar.zst 9,371,632
    fastled-v2.0.23-aarch64-apple-darwin-symbols.tar.zst 8,902,320

    SHA256SUMS: not verified. In a dry-run create-release is skipped, so stage_symbols.py sums never runs. From the workflow logic, create-release copies every *-symbols.tar.zst into release/ before sums --dir release hashes every file there, so each sidecar would be listed. That only gets observed on a real release.

    A missing sidecar fails the release: stage_symbols.py check raises SidecarError("missing debug-symbol sidecars for: ...") when any of the 6 TARGETS is absent, and raises again for an empty one. It runs in artifact-preflight, which create-tag needs, and again inside create-release before upload. There is no skip path.

    Wheel contents (linux x86_64 wheel, build run 46277958234)

    • No .debug/.dSYM/.pdb/.dwp/-symbols member in the wheel.
    • fastled/bin/fastled is byte-identical to the release binary (cmp), and readelf -S shows no .debug_info/.debug_line/etc. The only sections left are .debug_gdb_scripts (see above) and .gnu_debuglink -> fastled.debug.
    • file still says "not stripped": strip --strip-debug keeps .symtab, so function names stay in the binary but file/line data does not.

    Symbolization (Linux x86_64 binary + its sidecar)

    • Binary alone: addr2line -f -e fastled 0x636fe0 -> fastled::main / ??:? (no line info).
    • With fastled.debug next to it (found through the debuglink): fastled::main / ./crates/fastled-cli/src/main.rs:105.
    • gdb backtrace through the debuglink. This was a breakpoint on write during fastled --version, not a real panic:
    #1  std::sys::fd::unix::FileDesc::write () at library/std/src/sys/fd/unix.rs:346
    #6  std::fs::write::inner () at library/std/src/fs.rs:422
    #8  touch_last_used () at crates/fastled-cli/src/runtime.rs:573
    #9  ensure_runtime_copy () at crates/fastled-cli/src/runtime.rs:328
    #10 maybe_reexec_from_managed_runtime () at crates/fastled-cli/src/runtime.rs:141
    #11 main () at crates/fastled-cli/src/main.rs:107
    

    Sizes vs v2.0.22 (linux x86_64)

    v2.0.22 v2.0.23 (e053b91) change
    fastled binary 60,918,816 16,680,672 -72.6%
    manylinux_2_28_x86_64 wheel 19,502,180 11,468,840 -41.2%
    symbols sidecar (new, not shipped in the wheel) - 12,278,946
  3. zackees commented on Nov 29, 2026

    @zackees
    MemberAuthor

    Dry-run release is green on main ac9a8e8 after #298 (allowlists .debug_gdb_scripts; real DWARF sections still fail; ref forge-ci/ci.yml#574).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions