From e0bbd020e00aa260ba7935a6276ba7289dd7013a Mon Sep 17 00:00:00 2001 From: bong-water-water-bong Date: Sun, 8 Nov 2026 18:23:04 -0400 Subject: [PATCH] licensing: the duplicated Apache notice, in the 13 quiet files (Refs #1547) Twenty files carry the notice twice: the block at the top, then the Copyright + SPDX pair repeated right after "limitations under the License". This is the issue's own suggested first step - the quiet files, comment-only, and never the ones where the second occurrence is load-bearing. git diff --numstat 0 added, 26 deleted across 13 files (two lines each, no other edit) tools/copyright.py --check rc 0 every touched file: exactly one SPDX-License-Identifier, except tools/npu-arena/make_task.sh which keeps two - its own, and the one its heredoc EMITS into the build.sh it generates (see below) bash -n on the shell scripts, python3 -m py_compile on the .py files: clean Two corrections to the issue's classification, both found by reading each file's second pair rather than deleting the second occurrence: 1. **tools/npu_leaderboard.py is load-bearing**, a fourth file for that list: its second pair sits inside `NOTICE = """"""`, the template the generator writes into docs/npu-leaderboard.md. It is skipped here untouched. 2. **tools/npu-arena/make_task.sh is load-bearing INSIDE a quiet file**: it carries three pairs - its own, the duplicate after the licence text (removed here), and one inside `cat > "$D/kernel/build.sh" <<'EOF'` which emits the header into a generated script. Removing "all but the first" would have stripped that generated header, exactly the failure the issue warned about. The sweep is anchored on the pair that follows "limitations under the License", so a heredoc's or a template's header is not a candidate by construction. Not in this PR, per the issue: the two live files (onnx/tests/ort_run_generic.sh, tools/fconst19_measure{,_test}.py) and the four load-bearing ones; and the uniqueness rule in has_notice() must come after the rest of the sweep, since it would red main immediately. --- onnx/build_ort.sh | 2 -- os/v3/puppy/catalogue-manifest.py | 2 -- os/v3/puppy/embed/etc/sysctl.d/60-1bit-console.conf | 2 -- os/v3/puppy/shell-login.sh | 2 -- scripts/check_repack_config.py | 2 -- tools/flm_head_pb16i.py | 2 -- tools/npu-arena/TOOLCHAIN.lock.example | 2 -- tools/npu-arena/ceiling.sh | 2 -- tools/npu-arena/lib/env.sh | 2 -- tools/npu-arena/make_probe.sh | 2 -- tools/npu-arena/make_task.sh | 2 -- tools/npu-arena/oracle.sh | 2 -- tools/npu-arena/runner/build.sh | 2 -- 13 files changed, 26 deletions(-) diff --git a/onnx/build_ort.sh b/onnx/build_ort.sh index 7d6c58263..24c8e7d16 100755 --- a/onnx/build_ort.sh +++ b/onnx/build_ort.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # Build ONNX Runtime from source and install it to a prefix we own, so onnx/ links against our # libonnxruntime instead of the distro's. ORT is MIT: patching it and shipping the result closed diff --git a/os/v3/puppy/catalogue-manifest.py b/os/v3/puppy/catalogue-manifest.py index 19341993d..c46c0588b 100644 --- a/os/v3/puppy/catalogue-manifest.py +++ b/os/v3/puppy/catalogue-manifest.py @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # catalogue-manifest.py # diff --git a/os/v3/puppy/embed/etc/sysctl.d/60-1bit-console.conf b/os/v3/puppy/embed/etc/sysctl.d/60-1bit-console.conf index 9c8f740ca..00d67c233 100644 --- a/os/v3/puppy/embed/etc/sysctl.d/60-1bit-console.conf +++ b/os/v3/puppy/embed/etc/sysctl.d/60-1bit-console.conf @@ -12,8 +12,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # Cycle 26, item 1: the console belongs to the console. Nothing may print onto tty1 while the console TUI is on it. # diff --git a/os/v3/puppy/shell-login.sh b/os/v3/puppy/shell-login.sh index fa76a9d6c..29c0267a6 100644 --- a/os/v3/puppy/shell-login.sh +++ b/os/v3/puppy/shell-login.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # shell-login.sh # diff --git a/scripts/check_repack_config.py b/scripts/check_repack_config.py index f1d15a5cb..559ad285a 100755 --- a/scripts/check_repack_config.py +++ b/scripts/check_repack_config.py @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # check_repack_config.py -- oracle-free repack validation. # diff --git a/tools/flm_head_pb16i.py b/tools/flm_head_pb16i.py index 9b95902ea..31f473556 100644 --- a/tools/flm_head_pb16i.py +++ b/tools/flm_head_pb16i.py @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # The MTP head in our "pb16i" form: codes x per-(32 K, column) magnitudes, no per-group bias. # diff --git a/tools/npu-arena/TOOLCHAIN.lock.example b/tools/npu-arena/TOOLCHAIN.lock.example index 022e959a2..656c831c0 100644 --- a/tools/npu-arena/TOOLCHAIN.lock.example +++ b/tools/npu-arena/TOOLCHAIN.lock.example @@ -12,8 +12,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # TOOLCHAIN.lock.example -- copy to TOOLCHAIN.lock (git-ignored) and fill in for # your box. The arena resolves every path from the environment first, then from diff --git a/tools/npu-arena/ceiling.sh b/tools/npu-arena/ceiling.sh index 7b8d7a9e2..b252a2bdf 100755 --- a/tools/npu-arena/ceiling.sh +++ b/tools/npu-arena/ceiling.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # ceiling.sh -- phase 1 of the 2026-10-30 14:58 addendum: measure the attainable # weight-stream bandwidth for EACH phase's tap/tile geometry with the matrix unit diff --git a/tools/npu-arena/lib/env.sh b/tools/npu-arena/lib/env.sh index 53bcfe02a..fdb7cb36c 100755 --- a/tools/npu-arena/lib/env.sh +++ b/tools/npu-arena/lib/env.sh @@ -12,8 +12,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # lib/env.sh -- sourced by every arena build/run. Resolves the toolchain from the # environment (or from a local TOOLCHAIN.lock, which is deliberately NOT in the diff --git a/tools/npu-arena/make_probe.sh b/tools/npu-arena/make_probe.sh index 92bc628c3..a1207b6a6 100755 --- a/tools/npu-arena/make_probe.sh +++ b/tools/npu-arena/make_probe.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # make_probe.sh [ ...] -- build the DMA-ceiling probe submissions for # a phase: the phase's own tap/tile geometry with the matrix unit replaced by diff --git a/tools/npu-arena/make_task.sh b/tools/npu-arena/make_task.sh index 5215576d9..aafad6027 100755 --- a/tools/npu-arena/make_task.sh +++ b/tools/npu-arena/make_task.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # make_task.sh -- create or refresh a task bundle for one phase. # make_task.sh GU|D|QKV|O|Z diff --git a/tools/npu-arena/oracle.sh b/tools/npu-arena/oracle.sh index 02c42268d..739782952 100755 --- a/tools/npu-arena/oracle.sh +++ b/tools/npu-arena/oracle.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # oracle.sh -- score ONE submission for ONE phase. # diff --git a/tools/npu-arena/runner/build.sh b/tools/npu-arena/runner/build.sh index 7a6594edf..1a4411f01 100755 --- a/tools/npu-arena/runner/build.sh +++ b/tools/npu-arena/runner/build.sh @@ -13,8 +13,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# Copyright 2026 bong-water-water-bong -# SPDX-License-Identifier: Apache-2.0 # # runner/build.sh -- build the arena's host-side on-device scorer. # Links the engine's own NPU runtime (pinned in TOOLCHAIN.lock); no XRT.