Commit 178e0fb
committed
bootlinux: add git ref verification before cloning
Add preliminary verification tasks to check if the target git ref exists
before attempting to clone the Linux kernel repository. This prevents
confusing git clone failures and provides clear, actionable error messages
to users.
The verification is particularly important for A/B testing scenarios where:
- Different kernel refs may be used for baseline vs development builds
- Shallow clones might not contain all required refs
- Users may specify refs that don't exist in the repository
Each build method now verifies the ref availability:
- 9p.yml: Verifies active_linux_ref (or target_linux_ref fallback)
- targets.yml: Verifies target_linux_ref on target nodes
- builder.yml: Verifies target_linux_ref on builder nodes
The error messages guide users to:
1. Check if the ref actually exists in the repository
2. Disable shallow cloning when using A/B testing with different refs
3. Verify the repository URL is correct and accessible
This change improves the user experience by failing fast with helpful
diagnostics rather than letting git clone fail with cryptic errors.
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 3c2f0c9 commit 178e0fb
File tree
3 files changed
+72
-0
lines changed- playbooks/roles/bootlinux/tasks/build
3 files changed
+72
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
47 | 76 | | |
48 | 77 | | |
49 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
13 | 34 | | |
14 | 35 | | |
15 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
| |||
0 commit comments