Repository navigation
Commit 776ed5a
ci(oss): write the image tag once, pull it in CI
Ports javascript-sdk#176's resolution of the same review feedback, so the OSS
harness stays diffable across the SDKs. csharp-sdk#171 carries the identical
change.
One tag, one home. The tag was written twice: FORK_PR_FALLBACK_VERSION in the
integration-tests-oss job, and `latest` as the local script's default. A local
run therefore could not reproduce a CI failure, which is most of why the script
exists. Rather than teach one of them to read the other, make the `image:` line
of docker-compose-oss.yaml the only place it is written and let both fall
through to it: the script applies no default of its own and exports
OSS_CONDUCTOR_VERSION only when --version actually supplied one, and the
fork-PR branch of the resolve step now leaves the variable unset instead of
pinning its own copy. Fork CI and a plain local run reach the identical image
by the identical path, with no YAML parsing on either side and one hardcode
removed rather than a mechanism added. The non-fork empty case still fails
loudly, and the workflow_run nuance is untouched -- that trigger runs in the
base repo's context and still gets the org variable even for a fork PR. The
script's "Using ..." and "Pulling ..." lines now come from
`compose config --images conductor-server` instead of reconstructing the tag,
so they stay honest whichever source supplied it.
The compose header already noted that E2E_TEST_OSS_CONDUCTOR_VERSION is set to
`latest` org-wide, so a normal CI run is not really pinned. That stays, with
the addition that this default is now what actually pins fork PRs and local
runs until someone sets the org variable to a real tag.
Pull in CI. The script pulls before `up`, CI did not. On a GitHub-hosted runner
the VM is ephemeral and starts with no cached copy, so `up` pulls anyway and
the step is redundant today — kept regardless, because it costs no extra
network pull (`up` then finds the image locally), it splits "couldn't pull the
image" from "the stack didn't come up" into two distinct red steps, and it is
what stops a mutable tag going stale the day this job moves to a self-hosted
runner with a warm Docker daemon. It also prints the tag in use, which matters
now that a fork PR's tag is not spelled out in the workflow.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent cebf93e commit 776ed5a
3 files changed
Lines changed: 60 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 102 | | |
106 | 103 | | |
107 | 104 | | |
| |||
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
113 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
128 | 129 | | |
129 | | - | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
| |||
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
152 | 165 | | |
153 | 166 | | |
154 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | | - | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
69 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
70 | 84 | | |
71 | 85 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
76 | 90 | | |
77 | 91 | | |
78 | 92 | | |
| |||
0 commit comments