Skip to content

Cross-node send works in browser, fails on iso Playwright harness #105

@iduartgomez

Description

@iduartgomez

Symptom

Cross-node `alice → bob` send (gw 7510 → peer 7511):

Both tests gated on `FREENET_LIVE_E2E_SEND=1` for now (see #104).

Repro

```bash
FREENET_LIVE_E2E_SEND=1 cargo make test-e2e-real-node
```

Suspected divergences (manual vs harness)

  1. Identity-management state cross-talk. Gw log shows `create alias new alice` AND `create alias new bob` on both nodes during a single test run — the delegate state is bleeding between contexts. Real users have one identity per delegate; here both browser contexts hit the iso 2-node net and both aliases land in both delegates.

  2. Permission pump timing. `startPermissionPump(ISO_GW_ORIGIN)` and `startPermissionPump(ISO_PEER_ORIGIN)` poll `/permission/pending` and POST `{"index":0}` to respond. AFT permission overlay timing on contact-import → send round-trip is the historical flake from E2E test gaps that allowed cross-node delivery bugs to ship #81.

  3. AFT slot. Day1 cap (AFT: make tier + max_age recipient-configurable via InboxParams #85). Multiple test retries on the same node may exhaust slot before the harness wipes state. `cargo make test-e2e-real-node` does wipe per run, but Playwright internal retries (configured `retries: 2`) reuse the same iso state.

Diagnostics needed

  • Capture browser console for both alice and bob during the harness run (currently silent — `page.on('console')` not wired in test 1; new test has it but only catches WASM panics).
  • Tee gw + peer logs into the test report so the per-test artifact bundle includes them.
  • Compare `UPDATE_PROPAGATION` events for the inbox contract (peer side) against UI state at the moment of timeout.

Out of scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions