Repository navigation
chore: close the two remaining license-review items, and guard headers in CI - #853
Merged
Merged
Conversation
…s in CI The open-source review of commit 15fa9d9 confirmed everything from #812 fixed and left two items, both addressed here: 1. Source headers: scripts/check-book-api-names.sh and scripts/check-reserved-prefixes.sh landed after #812 merged (#819, #835) without the standard SPDX header. Both now carry it. 2. Third-party notices: the rangemap sub-crate under crates/fuzzer/rustlantis/ carries its own LICENSE-APACHE and LICENSE-MIT copies, which THIRD_PARTY_NOTICES did not mention. The Rustlantis entry now names that path; both texts are byte-identical to the rustlantis top-level ones. The review also suggested a CI guard, since headers have now drifted twice. scripts/check-spdx-headers.sh requires the two-line header on every tracked *.rs *.sh *.py *.cu *.c *.h *.ll file outside the vendored rustlantis subtree, with a checked exemption for the two CUTLASS-derived BSD-3-Clause helpers the review accepted as-is. It runs as a fourth job of the cargo-deny workflow and from 'just check-guards', and CONTRIBUTING's License Headers section points at it. Signed-off-by: nihalpasham <[email protected]>
…ices # Conflicts: # scripts/check-book-api-names.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The open-source license review re-checked main at 15fa9d9 and confirmed everything from #812 fixed, leaving two items. Both are addressed here, plus the CI guard the review suggested. Licensing metadata and CI only; no logic, API, or behavior changes.
The two remaining items
Source headers:
scripts/check-book-api-names.shandscripts/check-reserved-prefixes.shlanded after chore: fix Apache-2.0 license notice and attribution gaps #812 merged (ci: guard the device-API names the book shows in Rust blocks #819, ci: move the reserved-prefix guard into a script #835) without the standard SPDX header. Both now carry it.Third-party notices: the
rangemapsub-crate embedded undercrates/fuzzer/rustlantis/carries its ownLICENSE-APACHEandLICENSE-MITcopies, whichTHIRD_PARTY_NOTICESdid not mention. The Rustlantis entry now names that path. Both copies are byte-identical to the rustlantis top-level texts (verified withdiff).The guard
Headers have now drifted twice (the 32 files #812 fixed, then the two scripts above), so this adds
scripts/check-spdx-headers.shin the existingcheck-*.shstyle:*.rs *.sh *.py *.cu *.c *.h *.llfile: 1789 files in scope, measured header depth never exceeds line 4.crates/fuzzer/rustlantis/**(embedded third-party code keeps its upstream form; adding an NVIDIA copyright line to code we do not own would be wrong).just check-guards; CONTRIBUTING's License Headers section now points at it.Validation
bash scripts/check-spdx-headers.shpasses on this branch.check-book-api-names.shandcheck-reserved-prefixes.shstill pass after the header insertion.yaml.safe_load.