Skip to content

ci(release): drop stale Trystero patch guard from frontend bundle verify#213

Merged
mrjeeves merged 1 commit into
mainfrom
claude/determined-einstein-gEcXX
May 29, 2026
Merged

ci(release): drop stale Trystero patch guard from frontend bundle verify#213
mrjeeves merged 1 commit into
mainfrom
claude/determined-einstein-gEcXX

Conversation

@mrjeeves
Copy link
Copy Markdown
Owner

Problem

Every Release run fails on all five platforms at the Verify frontend bundle step (e.g. run 26645134375):

patches/@trystero-p2p__core@0.24.0.patch did NOT make it into dist/.
pnpm install --frozen-lockfile likely skipped patchedDependencies ...

Root cause

That step (.github/workflows/release.yml) had a hardcoded guard that grepped the built JS for a trystero-patch marker, to confirm patches/@trystero-p2p__core@0.24.0.patch was applied to the bundled Trystero connection engine.

The connection engine moved into the myownmesh daemon in #203, which removed the @trystero-p2p/core dependency and its patch from the frontend. There is no longer any patches/ directory, patchedDependencies entry, or Trystero import (only a user-facing docs link remains). So the trystero-patch marker can never appear in the bundle and the guard fails unconditionally — it's dead code from before the migration. The pnpm advice in the error message no longer applies (there's no patch to apply).

This is unrelated to the recent mesh v0.1.3 bump (#211): that change is Rust-only, and the release fails at the frontend step before the Rust/Tauri build even runs.

Fix

Remove the obsolete Trystero-patch guard. The remaining checks in the step stay and are still valid:

  • dist/index.html exists,
  • the entry was rewritten (no leftover /src/main.ts),
  • dist/assets is non-empty,
  • no Svelte SSR-runtime leak (lifecycle_function_unavailable).

YAML validated locally (yaml.safe_load). After merge, re-running the release should get past frontend verification and proceed to the Tauri build (which picks up myownmesh v0.1.3).

https://claude.ai/code/session_017UZ6AKBqV2ae2E6XbyoAgq


Generated by Claude Code

The "Verify frontend bundle" step grepped the Vite output for a
`trystero-patch` marker to confirm patches/@trystero-p2p__core@0.24.0
was applied. That patch — and the @trystero-p2p/core dependency it
patched — were removed when the connection engine moved into the
myownmesh daemon (#203), so the marker can never appear in the bundle
and the guard fails every release on all five platforms.

Remove the obsolete guard. The remaining checks (dist/index.html
present, entry rewritten, non-empty assets, no Svelte SSR-runtime leak)
are still valid and stay.

https://claude.ai/code/session_017UZ6AKBqV2ae2E6XbyoAgq
@mrjeeves mrjeeves merged commit 28e4361 into main May 29, 2026
4 checks passed
@mrjeeves mrjeeves deleted the claude/determined-einstein-gEcXX branch May 29, 2026 15:29
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.

2 participants