Repository navigation
Commit 6e6176a
committed
fix(native): land and provision objects under the configured object kind
FIX-MTR-16. Native-push landing, path provisioning and their descendant /
target bookkeeping now derive every object id from
monorepo.object_hash_kind() instead of the thread-local HashKind:
- trunk_provenance gains a fallible synthesize_with_kind that fails closed on
a cross-kind tree or parent;
- mono_storage::advance_descendant_refs_with takes an explicit kind, used for
the descendant walk, parent/tree parsing and both continuation constructors;
- trace_target_service publishes and re-binds active targets through the
kind-aware resolver, keeping the legacy entry as a TLS wrapper;
- push_queue_service drives tip/root/payload/previous reads, the create-path
resolve, the stale pre-check, squash synthesis and target publication from
the configured kind;
- merge.rs parses ancestors and the root parent, and synthesizes the roll-up,
under the same kind;
- editing.rs, provision.rs and handler.rs mint the .gitkeep and file blobs and
every provisioned directory level under the configured kind, and create and
annotated-tag commits and tags hash with it (Tag::new_with_kind);
- code_edit::utils resolves the build-repo root tree and repo tip commit with
the kind-aware converters.
The http_git commit fixture in tests/integration_traces.rs now stages until the
index differs from HEAD, because a host write can lag behind a bind-mounted
`git add` and make `commit` see a clean tree.
Verification on this tree: cargo check --all-targets clean, nightly fmt clean,
cargo nextest run --all --no-fail-fast 3121/3121 passed (3 pre-existing
ignores) in 670s, acceptance target 6/6 over real Docker Git for SHA-1 and
SHA-256 with /project and monorepo-root closures strict-fsck verified, and the
VER-1 RED replay fails on the pre-fix tree with the original Invalid tree
signature. Independent review returned VERDICT: PASS.
Version 0.42.84 -> 0.42.85 (patch; dependencies unchanged).
Signed-off-by: Eli Ma <eli@patch.sh>1 parent f925d5d commit 6e6176a
15 files changed
Lines changed: 1382 additions & 103 deletions
File tree
- docs/plan
- src
- ceres
- api_service/mono_api_service
- code_edit
- pack
- jupiter
- service
- storage
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4401 | 4401 | | |
4402 | 4402 | | |
4403 | 4403 | | |
4404 | | - | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
| 4409 | + | |
| 4410 | + | |
| 4411 | + | |
4405 | 4412 | | |
4406 | 4413 | | |
4407 | 4414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| |||
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
179 | 186 | | |
180 | 187 | | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
185 | | - | |
| 192 | + | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
189 | | - | |
| 197 | + | |
| 198 | + | |
190 | 199 | | |
191 | 200 | | |
192 | 201 | | |
| |||
272 | 281 | | |
273 | 282 | | |
274 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
275 | 290 | | |
276 | 291 | | |
277 | 292 | | |
| |||
369 | 384 | | |
370 | 385 | | |
371 | 386 | | |
372 | | - | |
373 | | - | |
| 387 | + | |
| 388 | + | |
374 | 389 | | |
375 | 390 | | |
376 | 391 | | |
| |||
385 | 400 | | |
386 | 401 | | |
387 | 402 | | |
388 | | - | |
| 403 | + | |
| 404 | + | |
389 | 405 | | |
390 | 406 | | |
391 | 407 | | |
| |||
400 | 416 | | |
401 | 417 | | |
402 | 418 | | |
403 | | - | |
| 419 | + | |
404 | 420 | | |
405 | 421 | | |
406 | 422 | | |
| |||
433 | 449 | | |
434 | 450 | | |
435 | 451 | | |
436 | | - | |
437 | | - | |
| 452 | + | |
| 453 | + | |
438 | 454 | | |
439 | 455 | | |
440 | 456 | | |
| |||
449 | 465 | | |
450 | 466 | | |
451 | 467 | | |
452 | | - | |
| 468 | + | |
| 469 | + | |
453 | 470 | | |
454 | 471 | | |
455 | 472 | | |
| |||
462 | 479 | | |
463 | 480 | | |
464 | 481 | | |
465 | | - | |
| 482 | + | |
466 | 483 | | |
467 | 484 | | |
468 | 485 | | |
| |||
477 | 494 | | |
478 | 495 | | |
479 | 496 | | |
480 | | - | |
| 497 | + | |
481 | 498 | | |
482 | 499 | | |
483 | 500 | | |
| |||
506 | 523 | | |
507 | 524 | | |
508 | 525 | | |
509 | | - | |
| 526 | + | |
510 | 527 | | |
511 | 528 | | |
512 | 529 | | |
| |||
886 | 903 | | |
887 | 904 | | |
888 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
889 | 912 | | |
890 | 913 | | |
891 | 914 | | |
892 | 915 | | |
893 | | - | |
| 916 | + | |
894 | 917 | | |
895 | 918 | | |
896 | 919 | | |
897 | 920 | | |
898 | 921 | | |
899 | 922 | | |
900 | 923 | | |
901 | | - | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
902 | 928 | | |
903 | 929 | | |
904 | 930 | | |
905 | 931 | | |
906 | 932 | | |
907 | | - | |
| 933 | + | |
| 934 | + | |
908 | 935 | | |
909 | 936 | | |
910 | 937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
261 | 272 | | |
262 | 273 | | |
263 | 274 | | |
| |||
506 | 517 | | |
507 | 518 | | |
508 | 519 | | |
509 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
510 | 527 | | |
511 | 528 | | |
512 | 529 | | |
| |||
530 | 547 | | |
531 | 548 | | |
532 | 549 | | |
533 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
534 | 557 | | |
535 | 558 | | |
536 | 559 | | |
| |||
0 commit comments