Commit cfc5720
committed
ci: enforce the DGXC Go proxy, closing the fallthrough gap
Drops the `,direct` fallback so a module Artifactory does not serve is a
hard failure rather than a silent fetch from the public internet.
This also makes the workflow its own coverage measurement, which is why no
separate reporting step is added. Under `routed` a green run proved only
that nothing was rejected: a 404 fell through and the build still passed,
so coverage was unknown. With the fallback gone, a green run means every
module in the resolved graph came from Artifactory, because there is
nowhere else it could have come from. A gap does not need to be reported —
it fails the build and names the module.
The graph resolved here is the real one: `go mod download` plus
`go mod vendor` cover the build and test dependencies, which is the same
set a non-vendored build would need.
Enforced here first because nothing depends on this workflow — it verifies
a property, it does not build or ship. If some module turns out not to be
served, the blast radius is one red check on main. That safety margin
exists only while the repo still vendors, which is why #2375 is sequenced
ahead of #2374 rather than after it.
Adds an assertion that GOPROXY carries no `,direct` entry. Without it a
regression to `routed` would satisfy every existing assertion while
quietly restoring the path this change closes.
Closes #2375
Signed-off-by: Mark Chmarny <mark@chmarny.com>1 parent 32f80f8 commit cfc5720
1 file changed
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
97 | | - | |
| 105 | + | |
98 | 106 | | |
99 | 107 | | |
100 | 108 | | |
| |||
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
117 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
| |||
0 commit comments