Skip to content

spec_config system-tests - #24262

Draft
vyzaldysanchez wants to merge 4 commits into
developfrom
task/CRE-4017/chain-caps-registry-launch-system-tests
Draft

vyzaldysanchez wants to merge 4 commits into
developfrom
task/CRE-4017/chain-caps-registry-launch-system-tests

Conversation

@vyzaldysanchez

@vyzaldysanchez vyzaldysanchez commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Launch EVM, Aptos and Stellar capabilities from registry spec_config in local CRE

Jira: CRE-4017

Summary

Local CRE now launches the EVM, Aptos and Stellar chain capabilities the way it launches HTTP action/trigger: through LocalCapabilityManager, the RegistryBasedLaunchAllowlist and registry spec_config. The per-chain worker job proposals are removed. Solana is unchanged and stays on job specs.

No onchain data changes. This is mostly system-tests, plus one small node-side change (nodeAddress, below).

Changes

  • Allowlist (don/config/config.go): addWorkerNodeConfig appends entries for the enabled chain capabilities, without duplicates on reapply.

    • EVM: ^evm:ChainSelector: (family pattern).
    • Aptos / Stellar: anchored, per-chain IDs (^aptos:ChainSelector:<sel>@1\.0\.0$).
    • Detection is flag-based, so DONs without the capability get nothing.
    • aptosChain / stellarChain now carry their ChainSelector.
  • EVM (features/evm/v2): PreEnvStartup builds a shared spec_config (chainId, network, creForwarderAddress, logTriggerPollInterval, receiverGasMinimum, deltaStage, optional log-trigger fields) and attaches it to the capability config. nodeAddress is no longer authored (it was only a monitoring label). createJobs and its per-node proposals are deleted.

  • Aptos (features/aptos): spec_config gains chainId, network, creForwarderAddress, isLocal alongside the existing keys. Worker proposer removed.

  • Stellar (features/stellar): forwarder is deployed before the config is built; spec_config is built from the same typed config struct the production changeset uses. stellar_jobs.go removed.

  • Node (core/services/standardcapabilities/delegate.go): NewServices fills the EVM nodeAddress from this node's OCR3 transmitter when the config has none, so the shared EVM spec_config keeps the per-node monitoring label. A configured nodeAddress wins; other capabilities and an empty transmitter are untouched.

Testing

  • New/updated unit tests: allowlist contents, no duplicates on reapply, no entries without flags, regex matches only the intended capability IDs (and not Solana); shared spec_config for EVM, Aptos and Stellar (EVM has no nodeAddress).
  • TestWithEVMNodeAddress covers the nodeAddress fill (absent, empty, configured, empty config, non-EVM, non-object config).
  • go test passes for don/config, features/{evm,aptos,stellar} and core/services/standardcapabilities (the TestStandardCapabilitiesV2_* tests bind a local port and were skipped in my sandbox); go vet clean on system-tests/lib and tests/smoke/cre.

Not verified / known gaps

  • Not run end to end. Registry launch and the chain smoke workflows need the Docker local CRE and should run in CI before merge. The allowlist and job removal land together because the node rejects job specs for allowlisted capabilities.
  • Not in this PR: production deployment tooling for authoring/proposing spec_config to real DONs. The NewServices call site of the nodeAddress fill is not covered by a test (the helper is).
  • JD offchain registry payload is not wired for chain capabilities. The default local CRE uses onchain SpecConfig, as HTTP does. The offchain payload helper only exists in the offchain-registry smoke test.
  • swap dev command (core/scripts/cre/environment/environment/swap.go) cancels jobs by capability label, so it no longer restarts chain capabilities (same as HTTP today).

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

…n-caps-registry-launch-system-tests

# Conflicts:
#	system-tests/lib/cre/don/config/config_test.go

This branch has not been deployed

No deployments
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