Repository navigation
Commit bf5353d
Report conversion phases while ignition convert verifies and writes a core (#223)
`ignition convert` printed nothing until it finished. Converting a two-host
core of about 178 GB to packed form hashes every payload and copies every
byte, so the command stayed silent for minutes with no sign of whether it
was verifying, writing, or stuck, while `ignition export` reports each of
its native steps as a phase row with elapsed time and byte counts.
Conversion also read the stored payloads twice before writing: opening the
verified core hashed every payload, and pack and unpack then hashed the
same payloads again. Reporting verification as its own phase requires the
hashing to happen in one place, and the second pass checked nothing the
first had not.
Native pack and unpack gain `pack_with` and `unpack_with`, which take a
`StartupProgress` and report four phases. `Verify core` validates the
metadata structure, the commitment digests, and the presence of every
selected payload, and finishes with the detail `metadata and commitments`.
It authenticates no signature: conversion needs no key, and the loader
authenticates signatures before serving. `Verify stored data` hashes each
located payload once against its signed identity and counts payload bytes.
`Write packed core` and `Write core companions` count every byte written
to the destination. A forwarding writer reports each write of the primary
container and of each companion, and the expected total comes from the
layout planner that `Writer::finish` itself uses, so the total includes
the header length field, the padded header, and the alignment padding as
well as the payloads. The last phase publishes the destination. The
convert binding passes the standard error row reporter that export uses.
`pack`, `unpack`, and their selected variants keep their signatures and
report silently; the cache, combine, and promote paths are unchanged. In
unit-test builds a progress observation also records the final snapshot of
each completed phase; other builds retain the latest snapshot only.
`docs/cli-design.md` states what each phase checks and counts. The core
format, the metadata, and the bytes the container writer emits are
unchanged.
A terminal shows a redrawing bar for each phase and a redirected log gets
a progress line every ten seconds. A finished write phase reports a total,
a completed count, and a detail that all equal the size of the files it
produced. Verification reads the stored payloads once instead of twice: on
a DGX Spark a core of 180.5 GB verified in 47 s, where a core of
178.1 GB took 45 s and 47 s in the two passes of an earlier revision.
On an x86 host without a GPU,
`cargo test --locked --lib --features runtime-core,server core::conversion::`
passes its 52 tests. One packs and unpacks a signed fixture under an
observed reporter and asserts each phase's label and detail, that the
stored-data total and completed count equal the located payload bytes, and
that each write phase's total, completed count, and detail equal the size
on disk of the packed file or of the unpacked directory. A second repeats
the write assertions for tensors whose lengths force alignment padding. A
third confirms that the reporting forms write the same bytes as the silent
forms. A container written from five tensors with misaligned lengths, and
four companion headers, hashed identically before and after the writer
moved to the shared planner.
On a DGX Spark (GB10), a build that contains this change converted a
two-rank GLM 5.3 Flash export to packed form. `Verify core` finished in
under 0.1 s with the detail `metadata and commitments`, `Verify stored
data` hashed 180,523,902,823 source bytes in 47.2 s, `Write packed core`
wrote 180,528,104,976 bytes in 146.7 s, and publication took 6.9 s. The
command's summary line reported the same 180,528,104,976 bytes. The
earlier two-pass timing comes from a different core, a two-rank MiMo V2.6
Flash RL export of 178,122,320,431 source bytes, so the comparison is
between cores of similar size and not a repeat of one conversion. Unpack
to directory form at that size, and conversion of a core whose signature
is invalid, have not been run on hardware.
Design-Signed-Off-By: Claude Fable 5.2 (Claude Code); design-review=ed22
Signed-off-by: Kyonjova <kyonjova@pm.me>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>1 parent 949966b commit bf5353d
6 files changed
Lines changed: 551 additions & 100 deletions
File tree
- docs
- heliopause/src/export
- helios/src
- core
- conversion/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1067 | 1076 | | |
1068 | 1077 | | |
1069 | 1078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | | - | |
46 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
419 | 419 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | 420 | | |
428 | | - | |
429 | 421 | | |
430 | | - | |
| 422 | + | |
431 | 423 | | |
432 | 424 | | |
433 | | - | |
| 425 | + | |
434 | 426 | | |
435 | 427 | | |
436 | | - | |
| 428 | + | |
437 | 429 | | |
438 | 430 | | |
439 | 431 | | |
440 | 432 | | |
441 | 433 | | |
442 | 434 | | |
443 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
444 | 523 | | |
445 | 524 | | |
446 | 525 | | |
447 | 526 | | |
448 | 527 | | |
449 | | - | |
450 | | - | |
451 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
452 | 532 | | |
453 | 533 | | |
454 | | - | |
455 | | - | |
| 534 | + | |
| 535 | + | |
456 | 536 | | |
457 | 537 | | |
458 | 538 | | |
| |||
471 | 551 | | |
472 | 552 | | |
473 | 553 | | |
474 | | - | |
| 554 | + | |
475 | 555 | | |
476 | 556 | | |
477 | 557 | | |
| |||
484 | 564 | | |
485 | 565 | | |
486 | 566 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
491 | 571 | | |
492 | 572 | | |
493 | 573 | | |
| |||
544 | 624 | | |
545 | 625 | | |
546 | 626 | | |
547 | | - | |
548 | | - | |
549 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
550 | 635 | | |
551 | 636 | | |
552 | 637 | | |
| |||
555 | 640 | | |
556 | 641 | | |
557 | 642 | | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
558 | 678 | | |
559 | 679 | | |
560 | 680 | | |
| |||
979 | 1099 | | |
980 | 1100 | | |
981 | 1101 | | |
982 | | - | |
983 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
984 | 1110 | | |
985 | 1111 | | |
986 | | - | |
| 1112 | + | |
987 | 1113 | | |
988 | 1114 | | |
989 | 1115 | | |
990 | 1116 | | |
991 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
992 | 1123 | | |
993 | 1124 | | |
994 | 1125 | | |
| |||
0 commit comments