You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] build-tree.py copies nested node_modules (a custom widget's 1.2 GB) into .mxtk/build on every exec; one exec stalled 13+ min #764
Field report (Greenfield build, auto mode, balanced pipeline, toolkit ff26aa1, Mendix 11.15.0, 2026-11-13; relayed by the maintainer, anonymised).
What happened: the project contained a custom pluggable widget (React/SVG) whose source folder had its own node_modules (1.2 GB). On every exec, project-bin/build-tree.py copied that nested node_modules into .mxtk/build. One exec stalled for more than 13 minutes, and the first baseline step alone took 870 s. The builder patched it locally.
Cause (checked on master):EXCLUDE in project-bin/build-tree.py:34 lists node_modules, but skip() is applied only when top is true (sync_dir, about :42, :56). Exclusions therefore work only at the project root, and a nested widgets/<W>/node_modules is copied.
Expected:node_modules (and the other build-only folders) are excluded at any depth. A widget's built .mpk is what the model build needs, not its sources' dependencies.
Why it matters: this is a per-exec cost on any project with a custom widget, and it adds directly to the per-row slowdown (#686).
Filed by the triage desk from a field report. Generated by Claude Code
Triage: FIX track. bug, verified on master: project-bin/build-tree.py applies skip() only to top-level entries. Fix PR: #769.node_modules is now excluded at any depth, and a stale nested copy is removed on the next sync. The new fixture case fails 2 checks on master and passes 60/60 on the branch. Measured: first sync 135 → 31 ms at 5 MB; at the field's 1.2 GB it was minutes per exec. It adds nothing per row; it only removes work. The PR still needs an independent review before merge.
Activity
MendixMau commentedon Nov 16, 2026
Triage: FIX track. bug, verified on master:
project-bin/build-tree.pyappliesskip()only to top-level entries. Fix PR: #769.node_modulesis now excluded at any depth, and a stale nested copy is removed on the next sync. The new fixture case fails 2 checks on master and passes 60/60 on the branch. Measured: first sync 135 → 31 ms at 5 MB; at the field's 1.2 GB it was minutes per exec. It adds nothing per row; it only removes work. The PR still needs an independent review before merge.Generated by Claude Code
fix(build-tree): exclude node_modules at any depth, keep javascriptso…