Commit 9ea38f6
* fix(installer): failed index build no longer reports install success (#351)
run_install discarded run_init_if_needed's return value and unconditionally
returned 0, so a cocoindex/graph non-zero exit reported a successful install
while the most important step failed silently. Distinguish failure from skip:
run_init_if_needed now returns None when the index already exists (skip) and
False only when indexing ran and failed; run_install returns 1 on that failure,
mirroring run_update's `if not index_ok: return 1` check.
Co-Authored-By: Claude <noreply@anthropic.com>
* test(installer): cover skip→None→exit-0; document #351 deferred scope
- Add test_install_over_existing_index_skips_init_and_exits_zero: a re-run
of install over an existing index skips init and exits 0. Guards the None
branch of run_init_if_needed (the PR's central design: `if init_outcome is
False`), so a future `if not init_outcome` simplification that collapses
None into the failure branch would fail this test instead of silently
breaking idempotent re-runs. Verified red->green.
- Document at the partial-failure classifier that issue #351's "treat
skill/agent deploy failures as critical" is intentionally deferred: only
MCP config failures are critical (a broken MCP config is fatal; missing
skill/agent hints are recoverable), so the deferred scope reads as a
deliberate product decision rather than an oversight.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 533909c commit 9ea38f6
2 files changed
Lines changed: 105 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
851 | | - | |
| 850 | + | |
| 851 | + | |
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
871 | 874 | | |
872 | 875 | | |
873 | 876 | | |
| |||
878 | 881 | | |
879 | 882 | | |
880 | 883 | | |
881 | | - | |
| 884 | + | |
882 | 885 | | |
883 | 886 | | |
884 | 887 | | |
| |||
1531 | 1534 | | |
1532 | 1535 | | |
1533 | 1536 | | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
1534 | 1544 | | |
1535 | 1545 | | |
1536 | 1546 | | |
| |||
1561 | 1571 | | |
1562 | 1572 | | |
1563 | 1573 | | |
1564 | | - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
1565 | 1578 | | |
1566 | | - | |
| 1579 | + | |
1567 | 1580 | | |
1568 | 1581 | | |
1569 | 1582 | | |
1570 | 1583 | | |
1571 | 1584 | | |
1572 | 1585 | | |
1573 | 1586 | | |
1574 | | - | |
| 1587 | + | |
| 1588 | + | |
1575 | 1589 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
0 commit comments