Commit 8a0a09f
Don't treat non-empty stderr as mergebase failure
Summary:
**What:**
- Drop the `|| !output.stderr().is_empty()` clause in `get_mergebase_details_impl` (`fbcode/eden/fs/cli_rs/sapling-client/src/mergebase.rs:110`).
- Keep stderr (and now the exit code) in the genuine-failure error string so callers still get diagnostic context.
**Why:**
- A successful `hg log` can legitimately write to stderr — any caller that sets `SL_LOG` triggers it (sapling emits `clienttelemetry: client_entry_point="sapling"` on stderr even at quiet levels).
- Exit status is the source of truth. Meerkat's own `vcs/hg.rs:run_hg_command` correctly checks only `status.success()` — that is the right contract for a Rust subprocess wrapper.
**How it surfaced:**
- D106483065 set `SL_LOG=info` on the inner atlasenv container; meerkat called `get_mergebase`.
- The spurious failure cascaded: meerkat exit 1 → `atlas-preparer` setup exit 3 (`HookResult::FAILURE`) → `cogwheel_atlas_www` retry loop until the harness gave up.
- D106494042 landed as a temporary safety net (commented out SL_LOG) and can be backed out once this fix is in the dev-docker image.
**Related:**
- Buck2's copy at `fbcode/buck2/app/buck2_file_watcher/src/edenfs/sapling.rs:78` has the same shape; `T219988735` already tracks consolidating it into this crate.
Differential Revision: D106493970
fbshipit-source-id: 9f4b4ed1db494d9b02d2b2615137ca4d0cfa88b01 parent c827eb2 commit 8a0a09f
2 files changed
Lines changed: 95 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
195 | 251 | | |
196 | 252 | | |
197 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
232 | 252 | | |
233 | 253 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
239 | 269 | | |
240 | 270 | | |
241 | 271 | | |
0 commit comments