Skip to content

ci: run hosted E2E cases against a deployed profile - #139

Merged
Slokh merged 2 commits into
mainfrom
ci/hosted-e2e
Nov 24, 2026
Merged

Slokh merged 2 commits into
mainfrom
ci/hosted-e2e

Conversation

@Slokh

@Slokh Slokh commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Adds a manual Hosted E2E workflow (hosted-e2e.yml) that runs pnpm e2e:profile against one committed, deployed profile from main. No workflow ran these cases before.

What it does

  • Resolve the profile's network (no secrets): normalizes the profile input and finds it in pnpm profiles --network <network> for each hosted network. Anything that is not a committed profile on a hosted network is refused.
  • Run: runs pnpm e2e:profile <profile> (plus --group or --validate-only) in that network's factory-release-<network> environment, in the hosted-contracts-<network> concurrency queue it shares with Deploy and the release workflows, so the deployer key never sends from two jobs at once. main only, like the release workflows.
  • Writes a job summary with each case's PASS/FAIL/BLOCKED status, duration and failure or blocker, any selected case that did not run, and the totals; uploads e2e/.results/ as an artifact.

Inputs

  • profile (default profiles/e2e-moderato/profile.json)
  • group: optional; passed as --group (the CLI refuses it with --validate-only)
  • validate-only (default false): only the read-only validation

Secrets and environment

From factory-release-<network>: DEPLOYER_PRIVATE_KEY (operator and actor fee top-ups; withheld when validate-only is set), optional TEMPO_RPC_URL / TEMPO_RPC_USERNAME / TEMPO_RPC_PASSWORD (falls back to the public RPC). TEMPO_API_KEY for Zone access, as the benchmark workflow uses.

Validation

  • actionlint (with the same queue ignore the other queued workflows carry)
  • New deployments/core/hosted-e2e-workflow.test.ts: dispatch-only, main-only, environment and queue, deployer key withheld from validate-only, network list matches the hosted networks; runs the resolve step's script (maps each committed profile to its network, normalizes ./ paths, refuses a missing profile and a non-profile path) and the summary step's script against a sample result
  • pnpm check (lint and vp fmt --check over .github and docs), tsc --noEmit in deployments, pnpm --filter @tempoxyz/contracts test --run docs deploy-workflow hosted-e2e-workflow, git diff --check

Documented in docs/deployment/e2e-environments.md (Profile acceptance) and the CI table and secrets list in docs/development/README.md.

Not dispatched: it runs only from main.

@tempoxyz-bot

tempoxyz-bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Cyclops Security Review: safe to merge

✅ Reviewed 061bd79 (latest) · Coverage: full · no open findings · report
ℹ️ Not verifiable from the source alone (needs running code or deployed state): The review did not observe the actual mainnet E2E actor balances or a funded transaction from a rejected dispatch; it verified the transfer preconditions and call order in source. To verify it: Use a (1 more in the report)

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond the inline findings, I checked the dispatch inputs for script injection in the secret-bearing job. None found: profile and group reach bash only through env: and a quoted argument array, and profile has to match a path listed by pnpm profiles before the e2e job starts. I also checked that validate-only runs get an empty DEPLOYER_PRIVATE_KEY, and they do.

Extended reasoning...

The change adds a manual, main-only workflow (.github/workflows/hosted-e2e.yml) that runs hosted E2E cases with a release environment's deployer key and RPC secrets. It also adds a vitest test for that workflow and updates the docs. Inputs are never interpolated directly into run scripts, and the unknown-profile path is refused before the secret-bearing job runs. The inline findings cover the remaining issues found.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment thread .github/workflows/hosted-e2e.yml Resolved

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both points from my earlier review are fixed in 061bd79, and I found no new bugs. A human should still look, because this new workflow gives contributor-dispatched runs on main the funded DEPLOYER_PRIVATE_KEY from the release environment.

What was reviewed:

  • The e2e job no longer gets TEMPO_RPC_*, so failure text in the artifact and summary can't carry a private RPC URL. The docs say why.
  • Profile normalization now uses node's path.relative instead of GNU realpath -m, so the resolve test runs on macOS.
  • The deployer key is withheld when validate-only is set, the queue matches the deploy and release workflows, the CLI arguments are built as an array (no word splitting of group), and the summary's jq escapes | and newlines.
  • Not done: I didn't run actionlint, pnpm check or the new vitest file in this review.
Extended reasoning...

The change adds a manual main-only workflow, .github/workflows/hosted-e2e.yml. It runs pnpm e2e:profile in the factory-release-<network> environment with DEPLOYER_PRIVATE_KEY and TEMPO_API_KEY. The PR also adds an actionlint ignore, a vitest file that runs the workflow's bash steps, and doc updates. The security surface is secret exposure: the job holds a funded deployer key, and that environment has no required reviewer, so dispatching the workflow is its approval. The follow-up commit addressed both of my earlier inline findings (RPC credential leak, GNU-only realpath). I deferred instead of approving because this is a new trust-model decision in a credentialed release environment, not a mechanical change.

@Slokh
Slokh merged commit 570c7db into main Nov 24, 2026
19 of 20 checks passed
@Slokh
Slokh deleted the ci/hosted-e2e branch November 24, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants