Commit cdf5c89
authored
fix(export): add polkadot adapter to version registry and harden versioning pipeline (#353)
* fix(export): add polkadot adapter to version registry and harden versioning pipeline
Polkadot adapter was missing from versions.ts, update-export-versions
script, and CLI local overrides, causing production exports to emit
workspace:* which fails for end users. Staging worked by accident
because its fallback always outputs the 'rc' dist-tag.
Adds a defensive fallback in the production code path so unregistered
adapters resolve to 'latest' instead of leaking workspace:*. Introduces
VersioningSafetyGuard tests covering all four developed ecosystems, and
updates CI e2e matrix from [evm, solana, stellar] to
[evm, stellar, polkadot, midnight].
* fix(export): address PR review comments
Fix EXPORT_TEST_CHAIN → EXPORT_TEST_ECOSYSTEM env var mismatch in
export-app.cjs so the CI e2e matrix actually tests each chain instead
of always falling back to evm. Update CLI help text to list the
current supported ecosystems. Add a unit test verifying the workspace:*
→ latest production fallback.
* ci(export): limit e2e matrix to vitest-compatible ecosystems
Stellar and Midnight adapters have third-party dependencies with
ESM/CJS incompatibilities that prevent them from loading in the
Vitest runner. Restrict the CI e2e matrix to EVM and Polkadot.
Versioning correctness for all ecosystems is covered by
VersioningSafetyGuard.test.ts.1 parent 2e23c29 commit cdf5c89
12 files changed
Lines changed: 811 additions & 446 deletions
File tree
- .github/workflows
- apps/builder/src/export
- __tests__
- __snapshots__
- cli
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
536 | 543 | | |
537 | 544 | | |
538 | 545 | | |
| |||
Lines changed: 40 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
23 | 14 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
35 | 22 | | |
36 | 23 | | |
37 | 24 | | |
| |||
40 | 27 | | |
41 | 28 | | |
42 | 29 | | |
43 | | - | |
44 | 30 | | |
45 | 31 | | |
46 | 32 | | |
| |||
64 | 50 | | |
65 | 51 | | |
66 | 52 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
77 | 59 | | |
78 | | - | |
79 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
80 | 64 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
84 | 71 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
88 | 80 | | |
89 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
90 | 84 | | |
91 | 85 | | |
0 commit comments