Skip to content

fix(ci): regen model-catalog + mock macOS relaunch fixup in gui tests#1

Merged
themasio merged 1 commit into
mainfrom
fix/upstream-sync-catalog-gui-mocks
Jun 1, 2026
Merged

fix(ci): regen model-catalog + mock macOS relaunch fixup in gui tests#1
themasio merged 1 commit into
mainfrom
fix/upstream-sync-catalog-gui-mocks

Conversation

@themasio

@themasio themasio commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Why

CI on main (run 26739597466, commit ae9f745 — the latest upstream sync merge) fails two test slices. Both are stale artifacts / un-updated tests inherited from the upstream sync.

Fixes

Slice 3 — tests/hermes_cli/test_model_catalog.py
Upstream renamed minimax/minimax-m2.7minimax/minimax-m3 in the in-code provider lists, but website/static/api/model-catalog.json was not regenerated. The manifest guard test diffs the two. Regenerated via scripts/build_model_catalog.py (2 id lines change).

Slice 6 — tests/hermes_cli/test_gui_command.py
Upstream PR NousResearch#36198 (79f7e7a1e) added _desktop_macos_relaunchable_fixup() to cmd_gui, which fires two extra subprocess.run calls (xattr + codesign) on darwin between pack and launch — but did not update the gui tests. The two darwin tests supplied only side_effect=[pack_ok, launch_ok], so the launch call hit StopIteration. Mock the fixup helper in those two tests, matching the existing pattern that mocks _run_npm_install_deterministic (helper-level, not its internal subprocess calls).

Verification

Ran at the exact failing commit (ae9f745):

  • test_model_catalog.py — 28 passed
  • test_gui_command.py — 8 passed

🤖 Generated with Claude Code

Two failures inherited from the latest upstream sync merge (ae9f745):

- test_model_catalog: code lists renamed minimax/minimax-m2.7 ->
  minimax/minimax-m3 but website/static/api/model-catalog.json was not
  regenerated. Ran scripts/build_model_catalog.py.

- test_gui_command: upstream PR NousResearch#36198 (79f7e7a) added
  _desktop_macos_relaunchable_fixup() to cmd_gui, which fires two extra
  subprocess.run calls (xattr + codesign) on darwin between pack and
  launch, but did not update the gui tests. The two darwin tests supplied
  only [pack_ok, launch_ok] as side_effect, so the launch call hit
  StopIteration. Mock the fixup helper in those tests, matching the
  existing pattern that mocks _run_npm_install_deterministic.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

🔎 Lint report: fix/upstream-sync-catalog-gui-mocks vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 9584 on HEAD, 9584 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4972 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@themasio themasio merged commit 4354977 into main Jun 1, 2026
23 of 24 checks passed
@themasio themasio deleted the fix/upstream-sync-catalog-gui-mocks branch June 1, 2026 07:41
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