Commit db9c10e
PR #82 bumped ureq 2.12.1 → 3.3.0 in /rgtv-cli but did not migrate the
call sites, leaving main red since 2026-05-22 (`Check / Fmt / Clippy /
Test (rgtv-cli)` failing on every PR including dependabot bumps #87,
#88). The TODO in Cargo.toml flagged the remaining work.
This commit completes the migration:
- AgentBuilder → Agent::config_builder().build().into()
- timeout_read/timeout_write → timeout_recv_body/timeout_send_body
- http_status_as_error(false) keeps 4xx/5xx as Ok responses so the
broker's structured error body is still surfaceable
- RequestBuilder::set → RequestBuilder::header
- Response::into_string / into_json → body_mut().read_to_string() then
serde_json::from_str, factored into parse_response() so the broker
error-body fast path lives in one place
- POST with no body now uses send_empty() (call() is WithoutBody-only
in v3)
- ureq_err() simplified to the transport-error path; HTTP-status errors
flow through parse_response()
Verified locally (matches the Rust CI pipeline):
- cargo fmt --check OK
- cargo check --all-targets OK
- cargo clippy --all-targets -- -D warnings OK
- cargo test OK
After this lands, `@dependabot rebase` on #87 (nixpkgs) and #88
(rust-overlay) should bring them green; the only remaining failing
check on those PRs is `analyze (javascript-typescript, none)` (CodeQL
workflow drift, not caused by the dependabot bumps).
Foundational follow-up (NOT in this PR, flagged for owner action): the
underlying reason a red-CI dependabot PR ever reached main is that
`main` branch protection has no `required_status_checks` block — see
`gh api repos/.../branches/main/protection`. Adding the Rust CI checks
to required status checks would prevent another silent red-bump merge.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 312ebe1 commit db9c10e
2 files changed
Lines changed: 40 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
123 | | - | |
124 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
125 | 132 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
134 | 149 | | |
135 | | - | |
| 150 | + | |
136 | 151 | | |
| 152 | + | |
137 | 153 | | |
138 | 154 | | |
139 | 155 | | |
140 | 156 | | |
141 | 157 | | |
142 | 158 | | |
143 | | - | |
| 159 | + | |
144 | 160 | | |
145 | 161 | | |
146 | | - | |
| 162 | + | |
147 | 163 | | |
148 | 164 | | |
149 | 165 | | |
150 | 166 | | |
151 | 167 | | |
152 | 168 | | |
153 | | - | |
| 169 | + | |
154 | 170 | | |
155 | 171 | | |
156 | | - | |
157 | | - | |
| 172 | + | |
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
165 | | - | |
166 | | - | |
| 180 | + | |
167 | 181 | | |
168 | 182 | | |
169 | | - | |
| 183 | + | |
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
| |||
175 | 189 | | |
176 | 190 | | |
177 | 191 | | |
178 | | - | |
179 | | - | |
| 192 | + | |
| 193 | + | |
180 | 194 | | |
181 | | - | |
| 195 | + | |
182 | 196 | | |
183 | 197 | | |
184 | 198 | | |
| |||
0 commit comments