Repository navigation
Commit b59008c
committed
ci(onnx): build a pinned commit, not a movable tag, and drop the token
Two review findings applied, one declined on the measurement.
**Build the commit, not the tag.** `v1.27.1` upstream is a *lightweight*
tag: it points straight at a commit and can be moved by anyone with push
rights there. Building from it means attesting an artifact to "whatever
that tag meant this morning" — which is exactly the property this
workflow exists to provide, so the tag undercut its own point.
`SOURCE_COMMIT` now sits beside `VERSION` in `fetch-onnxruntime.mjs`, so
the single source of truth stays single, and a step fails the build if
the tag no longer resolves to it. That catches both a repointed tag and a
`VERSION` bump whose commit was forgotten. The source commit is printed
in the job summary beside the digest, so whoever adopts the artifact can
see what it was built from.
**`persist-credentials: false` on both checkouts.** This job compiles
third-party source in the same workspace, and leaving the token in
`.git/config` puts it within reach of ONNX Runtime's own build scripts —
in a workflow holding `attestations: write`. `build.yml`, `docs.yml` and
`nix-build.yml` already set this; the omission was mine.
**Raising `timeout-minutes` above 227 is declined.** That number is from
the run with bare `--parallel`, which swapped instead of compiling. With
the parallelism bounded the whole job takes **30 minutes**, verified end
to end. 150 is already five times the observed duration, and a cap set
above a known-pathological run cannot do the job a cap is for.1 parent 4f1d918 commit b59008c
2 files changed
Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | | - | |
| 89 | + | |
| 90 | + | |
82 | 91 | | |
83 | 92 | | |
84 | 93 | | |
| |||
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
98 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
99 | 112 | | |
100 | 113 | | |
101 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
102 | 129 | | |
103 | 130 | | |
104 | 131 | | |
| |||
241 | 268 | | |
242 | 269 | | |
243 | 270 | | |
| 271 | + | |
| 272 | + | |
244 | 273 | | |
245 | 274 | | |
246 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| |||
0 commit comments