Commit f17eb99
authored
fix: gate release workflow on tests and add build branding guards (#157)
* fix: gate release workflow on tests and add build branding guards
Release workflow:
- Add test job (typecheck + bun test) that must pass before build/publish
- Both build and publish-engine now depend on test job
Branding guard tests (upstream-merge-guard.test.ts):
- build.ts binary name is 'altimate' not 'opencode'
- build.ts user-agent is 'altimate/' not 'opencode/'
- build.ts embeds ALTIMATE_ENGINE_VERSION
- build.ts reads engine version from pyproject.toml
- build.ts creates altimate-code backward-compat symlink
- build.ts has sourcemap: "external"
- package.json bin entries are correct (no 'opencode')
- package.json has no junk fields or echo-stub scripts
- bin/opencode does not exist
- keepOurs config includes build.ts, publish.ts, bin/**, CHANGELOG.md
Publish package test:
- Assert 'altimate' bin points to ./bin/altimate
- Assert no 'opencode' bin entry exists
* fix: scope release test job to release-critical tests only
Scope the release workflow test job to branding and install tests
only, with --timeout 30000 for consistency with package.json.
Prevents unrelated flaky tests from blocking releases while still
catching branding regressions and packaging issues.
* fix: fix pr-management duplicate check and update TEAM_MEMBERS
- Replace broken `curl altimate.ai/install` with `npm install -g @altimateai/altimate-code`
(altimate.ai/install returns HTML, not a shell script)
- Replace upstream TEAM_MEMBERS with actual AltimateAI collaborators
so internal PRs skip the duplicate check
* fix: address code review findings — regex precedence and case-sensitive TEAM_MEMBERS
- Split symlink guard regex into two explicit assertions to prevent
false positives (Unix symlink + Windows .exe checked independently)
- Lowercase TEAM_MEMBERS entries and make grep case-insensitive (-i)
since GitHub logins are case-insensitive1 parent 1caa711 commit f17eb99
File tree
4 files changed
+144
-23
lines changed- .github
- workflows
- packages/opencode/test/branding
4 files changed
+144
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
16 | 50 | | |
17 | 51 | | |
| 52 | + | |
18 | 53 | | |
19 | 54 | | |
20 | 55 | | |
| |||
122 | 157 | | |
123 | 158 | | |
124 | 159 | | |
125 | | - | |
| 160 | + | |
126 | 161 | | |
127 | 162 | | |
| 163 | + | |
128 | 164 | | |
129 | 165 | | |
130 | 166 | | |
| |||
Lines changed: 73 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
270 | 336 | | |
271 | 337 | | |
272 | 338 | | |
| |||
301 | 367 | | |
302 | 368 | | |
303 | 369 | | |
304 | | - | |
| 370 | + | |
305 | 371 | | |
306 | 372 | | |
307 | 373 | | |
| |||
313 | 379 | | |
314 | 380 | | |
315 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
316 | 386 | | |
317 | 387 | | |
318 | 388 | | |
| |||
344 | 414 | | |
345 | 415 | | |
346 | 416 | | |
347 | | - | |
| 417 | + | |
348 | 418 | | |
349 | 419 | | |
350 | 420 | | |
| |||
0 commit comments