Commit 32a3f7f
committed
ci(railway): address PR review (idempotency, merge intent, robustness)
- railway_call: classify 'up' and 'redeploy' as non-idempotent so an
ambiguous transient timeout is NOT blind-retried (avoids triggering a
duplicate/racing deployment). Rate-limit retries still apply. (Two
reviewers flagged this.)
- railway_call + _railway_graphql: floor RAILWAY_RETRY_MAX at 1 so a '0'
override can't silently return success without making the call.
- upsert_service_vars: set 'replace: false' explicitly on variableCollection
Upsert. Verified the API already defaults to merge (set_vars then
set_optional_vars on the same service rely on accumulation), but pinning it
guards against a future default change wiping earlier variables. Confirmed
the field is accepted by the schema.
- upsert_service_vars: if a service name can't be resolved to an id, fall
back to the CLI variable set instead of hard-failing the deploy.
All verified against a live preview project (references still resolve, '='
in values preserved) and unit/regression suites still pass.1 parent 71c9492 commit 32a3f7f
2 files changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| |||
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
125 | | - | |
| 133 | + | |
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | | - | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
0 commit comments