Skip to content

Commit 9a91b7c

Browse files
rominfclaude
andauthored
Add missing SPDX headers + hawkeye pre-commit hook (#51)
Six new source files (fix.rs, diagnose.rs, examine.rs, tool_exec.rs, dash_seam.rs, daemon_run.rs) were introduced without the required AMD copyright / SPDX-License-Identifier header, breaking the hawkeye CI check. Add the headers and also wire hawkeye into .pre-commit-config.yaml so the check runs locally before every commit. Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 3995037 commit 9a91b7c

7 files changed

Lines changed: 35 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ repos:
4646
- id: shellcheck
4747
args: [--enable=all, --exclude=SC2310,SC2312]
4848

49+
# License headers: mirrors the korandoru/hawkeye CI check.
50+
# Requires: cargo install hawkeye
51+
- repo: local
52+
hooks:
53+
- id: license-headers
54+
name: license header check (hawkeye)
55+
entry: hawkeye check --config licenserc.toml
56+
language: system
57+
types_or: [rust, python, shell]
58+
pass_filenames: false
59+
4960
# Rust + PowerShell: mirror the CI checks using the local toolchain.
5061
- repo: local
5162
hooks:

apps/rocm/src/dash_seam.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright Advanced Micro Devices, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
//! Bin-side implementation of the dash execution seam.
26
//!
37
//! The dash crates stay free of `rocm-core`; this module lives in the bin

apps/rocm/tests/daemon_run.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright Advanced Micro Devices, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
//! Integration test proving `rocm daemon` runs the real foreground automation
26
//! loop (embedded `rocmd`) instead of only printing the status panel.
37
//!

crates/rocm-core/src/diagnose.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright Advanced Micro Devices, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
//! ROCm failure-mode diagnosis.
26
//!
37
//! Rust port of the `rocm-doctor` skill's `diagnose.py`. It matches an

crates/rocm-core/src/examine.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright Advanced Micro Devices, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
//! Host examination probe.
26
//!
37
//! Rust port of the `rocm-doctor` skill's `examine.py`. It gathers the host

crates/rocm-core/src/fix.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright Advanced Micro Devices, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
//! Apply remediations for diagnosed ROCm failure modes.
26
//!
37
//! Rust port of the `rocm-doctor` skill's `apply_fix.py`. Only small, safe,

crates/rocm-dash-tui/src/tool_exec.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright Advanced Micro Devices, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
//! rocm-core-free tool-call boundary (the execution seam).
26
//!
37
//! Plain-data signatures ONLY (serde_json / std / serde). The bin (`apps/rocm`,

0 commit comments

Comments
 (0)