Repository navigation
FFM audit: cover NetBSD, and check the CUPS bindings on every Unix - #3746
Conversation
The audit gains a NetBSD job, so the bindings added in #3745 are compared against that platform's own headers rather than going unchecked. It runs on the base system's gcc with pkgsrc python, and needs no JDK. It also installs the CUPS headers on the Unix VMs and points the compiler at them. cups/cups.h was marked optional in every Unix include list, so where it was absent the audit silently skipped the four cupsFreeDests/cupsGetDefault/ cupsGetDests/cupsGetOption bindings and the CUPS_DEST_T layout: FreeBSD, OpenBSD and Solaris each reported them as "no SDK declaration", which reads like a platform that lacks the symbol rather than a harness that could not see it. With the headers installed the `?` comes off, so a missing header now fails the job. Verified on the fork: every Unix job reports 0 bindings with no SDK declaration and no mismatches, where FreeBSD, OpenBSD and Solaris previously reported 4 each.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (7)
🧰 Additional context used🪛 actionlint (1.7.12).github/workflows/ffm-audit.yaml[error] 142-142: label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file (runner-label) 🪛 zizmor (1.30.0).github/workflows/ffm-audit.yaml[warning] 145-145: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 🔇 Additional comments (6)
📝 WalkthroughWalkthroughThe audit configuration now requires CUPS headers on FreeBSD, OpenBSD, and Solaris, adds NetBSD header and layout mappings, and runs a new NetBSD 10.1 audit job. ChangesFFM audit coverage
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Workflow as ffm-audit workflow
participant NetBSD as NetBSD 10.1 VM
participant Audit as FFM signature audit
participant Artifact as Workflow artifact store
Workflow->>NetBSD: Install python313 and libcups
Workflow->>NetBSD: Set CPATH=/usr/pkg/include
NetBSD->>Audit: Run audit with python3.13 and gcc
Audit->>Artifact: Upload ffm-audit-netbsd
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. A rabbit checks the headers bright Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3746 +/- ##
============================================
- Coverage 80.28% 80.21% -0.08%
Complexity 94 94
============================================
Files 717 717
Lines 25662 25662
Branches 4335 4335
============================================
- Hits 20604 20586 -18
- Misses 2835 2849 +14
- Partials 2223 2227 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Harness and CI only, so no CHANGELOG entry.
NetBSD job
The NetBSD FFM bindings merged in #3745 were not audited, because the signature audit had no NetBSD job. This adds one, with the per-platform
includes/netbsd.txtandstructs/netbsd.txtthe other platforms have.lwp.his in the include list for_lwp_self, and the two sharedoshi.ffm.platform.unixlayouts are mapped. Like the other Unix jobs it needs no JDK: the audit compiles assertions against the platform's headers using the base system's gcc, with python from pkgsrc.CUPS bindings were silently unchecked
cups/cups.hwas marked optional (?) in every Unix include list, so where the header was absent the audit skipped what depends on it. FreeBSD, OpenBSD and Solaris each reported the four CUPS bindings and theCUPS_DEST_Tlayout as "no SDK declaration" — which reads like a platform missing the symbol rather than a harness that could not see the header. Only Linux checked them, because the Ubuntu runner ships the headers already.Each Unix job now installs the CUPS headers and sets
CPATHto the ports or pkgsrc include directory, which neither compiler searches by default, and the?comes off so a missing header fails the job instead of quietly reducing what is checked.Before and after, from fork runs
Struct coverage rises with it: FreeBSD 3 → 4 layouts, OpenBSD 2 → 3, Solaris 5 → 6, plus NetBSD's 2. All seven jobs report no signature or struct layout mismatches, so this adds checking without adding findings.
The remaining "no SDK declaration" entries on macOS and Windows are unrelated and unchanged: Objective-C runtime and Mach functions, the
statfs64/getfsstat64aliases, and the Windows battery IOCTL structures, none of which appear in a public header the harness can include.Summary by CodeRabbit