Skip to content

Upgrade to pyArchimate 2.4.x - #2

Merged
xmayeur merged 3 commits into
devfrom
pyArchimate2.4.x
Dec 4, 2026
Merged

xmayeur merged 3 commits into
devfrom
pyArchimate2.4.x

Conversation

@xmayeur

@xmayeur xmayeur commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Pin pyArchimate~=2.4.0 (three-part, per decision-006) and regenerate uv.lock. lxml moves 6.1.1 → 6.2.1 because pyArchimate 2.4 requires it.
  • No code or test changes needed: nothing this server imports from pyArchimate.view.layout moved.
  • pyArchimate 2.4 adds a crossing-reduction step to auto_route, on by default. The server keeps it on, so routes from auto_layout_view and auto_route_view differ from 2.3 wherever a crossing can be avoided.
  • 2.4 deprecates LayoutConfig.algorithm and routing_style. The server never sets either.
  • The routing wrapper still works as before: the new step only rewrites connections the wrapper already records as rewritten (those cleared by remove_all_bendpoints).

Measurements (2.4.0, upstream routing only, after an internal layout)

View Time off → on Excess crossings off → on
random 60 / 90 0.53 → 0.69 s 40 → 14
random 100 / 200 3.50 → 4.19 s 704 → 601
chain 43 / 42 0.15 → 0.13 s 27 → 20
chain 200 / 199 10.65 → 10.81 s 1,645 → 1,094
chain 300 / 299 26.01 → 26.39 s 5,279 → 4,335

This does not help the slow routing on large views (ARC-065.08).

Docs

CLAUDE.md, USER_GUIDE, TECHNICAL_ARCHITECTURE, CHANGELOG (Unreleased), LAYOUT_IMPROVEMENT_PLAN, decision-006 (retitled to 2.4.x; the retitle renamed its file) and decision-011. Backlog task ARC-066.

Test plan

  • uv run ruff check and uv run ruff format --check are clean
  • uv run pytest: 236/236 on Python 3.11, 3.12 and 3.13
  • uv run pytest -W error::DeprecationWarning: 236/236
  • CI green

🤖 Generated with Claude Code

xmayeur and others added 2 commits December 4, 2026 18:00
Pin pyArchimate~=2.4.0 (still a three-part pin, per decision-006) and
regenerate uv.lock; lxml moves to 6.2.1 with pyArchimate's new floor.

2.4 needed no code or test change. Its new post-routing crossing
reduction in auto_route (on by default) is kept: measured on 2.4.0 it
cuts excess crossings on every fixture (chain 200: 1,645 -> 1,094) at
near-equal routing time on large views. The deprecated
LayoutConfig.algorithm / routing_style are never set by the server.

Docs: CLAUDE.md, USER_GUIDE, TECHNICAL_ARCHITECTURE, CHANGELOG, the
LAYOUT_IMPROVEMENT_PLAN measurement table, decision-006 (retitled to
2.4.x, records the evaluation) and decision-011.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xmayeur
xmayeur changed the base branch from pyArchimate2.3.x to dev December 4, 2026 17:07
@xmayeur
xmayeur merged commit 80d3753 into dev Dec 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant