Skip to content

[bug] graph-sweep.sh refuses catalog build_mode='source', which is all REFRESH CATALOG FULL produces on mxcli v0.24.0 #259

Closed

Description

@AlvinnYeo

What broke:
project-bin/graph-sweep.sh (lines 102-114) faults unless catalog_meta.build_mode is full. mxcli v0.24.0 writes source even after REFRESH CATALOG FULL, and that catalog already holds the full reference edges. So the sweep can never run on this mxcli.

Command / script run (exact invocation):
bash bin/graph-sweep.sh --module <Module> after REFRESH CATALOG FULL.

Expected vs. actual:
Expected: the sweep runs on a fresh full catalog.
Actual, exit 2:

FAULT: catalog build_mode is 'source'; reference edges require 'full'.

The refs table had 5,368 typed rows. Catalog mtime equalled the .mpr's, so it was not stale. Installed copy byte-identical to master 2fcdf5e.

Field evidence:
A consuming project (Mendix 11.14.0, macOS, toolkit 2fcdf5e, mxcli v0.24.0). All four module reviews on 2026-10-10 recorded the sweep as "Instrument FAULT". A local copy changing only line 113 to
if [ "$BUILD_MODE" != "full" ] && [ "$BUILD_MODE" != "source" ]
ran normally (one module: 70 elements, 1 inbound / 38 outbound edges, 0 orphaned microflows).

Proposed fix (hypothesis):
Accept source as well as full. Better: test for what the sweep needs, not a label. Fault only if the refs table is empty or has zero edges of kind call. Name the mode found and the edge count in the message.

Golden input: the FAULT line above, verbatim.

Activity

  1. added a commit that references this issue on Oct 13, 2026
    dffaf6f
  2. MendixMau commented on Oct 14, 2026

    @MendixMau
    Owner

    Fixed by #307, which landed on master in the integration squash #329 (commit 31e90ae) after independent review. Closing; reopen if it still reproduces on master.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions