Skip to content

release_artifact_lint: allow .debug_gdb_scripts (not DWARF, kept by strip --strip-debug) - #298

Merged
zackees merged 1 commit into
mainfrom
fix/296-debug-gdb-scripts
Nov 29, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/296-debug-gdb-scripts

Conversation

@zackees

@zackees zackees commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Part of #296

ci/release_artifact_lint.py rejected every .debug_* ELF section, including rustc's .debug_gdb_scripts (gdb pretty-printer loader, not DWARF, kept by strip --strip-debug). Dry-run release https://github.com/FastLED/cli/actions/runs/46280533130 failed artifact-preflight on it. This allowlists exactly .debug_gdb_scripts; real DWARF sections (.debug_info, .debug_line, .zdebug_*, ...) still fail. RED-then-GREEN unit test added.

Reference: forge-ci/ci.yml#574

Summary by CodeRabbit

  • Bug Fixes
    • Release artifact checks now allow .debug_gdb_scripts and .gnu_debuglink metadata in wheel binaries without flagging them as symbol problems. DWARF debug sections, including .zdebug_info, continue to be reported when found. Validation reports the offending DWARF section rather than incorrectly identifying .debug_gdb_scripts.

…trip --strip-debug)

Part of #296; see forge-ci/ci.yml#574. Dry-run release 46280533130 failed
artifact-preflight on rustc's gdb pretty-printer section.

Ci-Attestation: {"at":1795968055,"gate":"general/linux-x64/lint","host":"linux-x86_64","key":"86949dafa1fea6b992f2ddfc4913bbac12f0052c24901869ec708edbb211f6cf","lane":"lint","parents":["e053b912b15e6b23e0df15a45b6481fe8f48914d"],"secs":4,"stamp":"8fd2959c3b2de1eb49b6383f34b5fc49","tree":"9ab56d0964bd7d00059e32f18275539455d15d12","v":1,"via":"run"}
Ci-Attestation: {"at":1795968154,"gate":"python/linux-x64/test","host":"linux-x86_64","key":"6f946847ab70cd6bef29b13cac070c90f316e72e6f244432010aa4348ce5d851","lane":"test","parents":["e053b912b15e6b23e0df15a45b6481fe8f48914d"],"secs":98,"stamp":"d63465a25031a7f9170e5cb42946932d","tree":"9ab56d0964bd7d00059e32f18275539455d15d12","v":1,"via":"run"}
Ci-Attestation: {"at":1795968055,"gate":"rust/all/fmt","host":"linux-x86_64","key":"86949dafa1fea6b992f2ddfc4913bbac12f0052c24901869ec708edbb211f6cf","lane":"lint","parents":["e053b912b15e6b23e0df15a45b6481fe8f48914d"],"secs":4,"stamp":"4f3d4f9c7a2e10550d120d4c3aac2837","tree":"9ab56d0964bd7d00059e32f18275539455d15d12","v":1,"via":"run"}
Ci-Attestation: {"at":1795968055,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"86949dafa1fea6b992f2ddfc4913bbac12f0052c24901869ec708edbb211f6cf","lane":"lint","parents":["e053b912b15e6b23e0df15a45b6481fe8f48914d"],"secs":4,"stamp":"843267d9c5dcdde561d560b0159dc50a","tree":"9ab56d0964bd7d00059e32f18275539455d15d12","v":1,"via":"run"}
Ci-Attestation: {"at":1795968055,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"86949dafa1fea6b992f2ddfc4913bbac12f0052c24901869ec708edbb211f6cf","lane":"lint","parents":["e053b912b15e6b23e0df15a45b6481fe8f48914d"],"secs":4,"stamp":"79b445994d4a30c566371b33d47dc32a","tree":"9ab56d0964bd7d00059e32f18275539455d15d12","v":1,"via":"run"}
Ci-Attestation: {"at":1795968154,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"6f946847ab70cd6bef29b13cac070c90f316e72e6f244432010aa4348ce5d851","lane":"test","parents":["e053b912b15e6b23e0df15a45b6481fe8f48914d"],"secs":98,"stamp":"6c52a312e6208b23ea21d8f8a180368a","tree":"9ab56d0964bd7d00059e32f18275539455d15d12","v":1,"via":"run"}
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The ELF release artifact scanner now ignores .debug_gdb_scripts while continuing to report .debug_* and .zdebug_* DWARF sections. A unit test checks this behavior and confirms .gnu_debuglink is accepted.

Changes: ELF debug section linting

Layer / File(s) Summary
Debug section filtering and validation
ci/release_artifact_lint.py, tests/unit/test_ci_modes.py
The scanner excludes .debug_gdb_scripts from reported debug sections. The test verifies that .debug_gdb_scripts and .gnu_debuglink are accepted, while listed DWARF sections are reported.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related issues

Possibly related PRs

  • FastLED/cli#297: Both PRs change behavior related to the release preflight check for debug sections in wheel artifacts.
Merge Risk: Minimal · up to 42b92

This change lets release artifacts keep the non-DWARF .debug_gdb_scripts section that rustc emits, while still rejecting real DWARF debug data. It has a narrow scope and a unit test, and no actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: release_artifact_lint now allows the .debug_gdb_scripts section, which is not DWARF debug data and is kept by strip --strip-debug. The raw summary confirms the scanner…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: release_artifact_lint now allows the .debug_gdb_scripts section, which is not DWARF debug data and is kept by strip --strip-debug. The raw summary confirms the scanner excludes .debug_gdb_scripts from reported debug sections, and the added test checks that other DWARF sections are still reported. The title is specific and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Pylint (4.1.3)

Pylint used default settings because repository settings are unavailable in automated reviews.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd9324c0-75ba-4996-9508-cbba5bd29496
Commits

Reviewing files that changed from the base of the PR and between e053b91 and 42b92d7.

Files selected for processing: 2

  • ci/release_artifact_lint.py
  • tests/unit/test_ci_modes.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@zackees
zackees merged commit ac9a8e8 into main Nov 29, 2026
38 checks passed
@zackees
zackees deleted the fix/296-debug-gdb-scripts branch November 29, 2026 16:11
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