Repository navigation
Conversation
Contributor
|
✅ No conflicts with other open PRs targeting |
Contributor
|
I see you updated files related to
|
|
akcll
commented
Oct 8, 2026
akcll
force-pushed
the
axel/DEVSVCS-6421-cre-storage-topology
branch
from
October 9, 2026 18:25
bef39ef to
19c20b2
Compare
configs/extensions/ includes extension stacks (e.g. cre-storage-service) that answer to role aliases on ctf; workflow-gateway-don-extensions.toml points workflow nodes at those roles. Replaces the storage-specific topology. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
akcll
force-pushed
the
axel/DEVSVCS-6421-cre-storage-topology
branch
from
October 9, 2026 19:22
19c20b2 to
0cf49a5
Compare
akcll
marked this pull request as ready for review
October 9, 2026 20:07
product-security-plaid-production
Bot
requested review from
kalverra and
patrickhuie19
October 9, 2026 20:07
akcll
force-pushed
the
axel/DEVSVCS-6421-cre-storage-topology
branch
from
October 12, 2026 14:29
57da224 to
c81043e
Compare
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What
This PR works in conjunction with this PR in the CRE Storage Service,
https://github.com/smartcontractkit/cre-storage-service/pull/526
It allows for LocalCRE to be extended with a DockerCompose
include, plus DNS Aliases, such that Central Services can define their own Docker Compose and provide extension to Local CRE.Why
LocalCRE needs the ability to test with Centralized Services, for more sophisticated Integration Testing both locally and in CI.
See this doc by @elatoskinas : https://docs.google.com/document/d/1fhzq-pVEJXNLepO_QVfrnJgwIcBZoN0MrFfmIk0Mg4A/edit?tab=t.0#heading=h.4e7ng0tekbkc
How
Prior version of this PR used a brand new Topology, but after some feedback from @Tofel and @elatoskinas, centralized services are now an opt-in that works with any existing topology. Adding an [extensions] section to the TOML config (configs/extensions/extensions.toml as an overlay in CTF_CONFIGS) points the workflow DON nodes at a real storage service instead of the file fetcher stub. The nodes address the services by DNS aliases (cre-workflow-source, cre-artifact-api, cre-artifact-store).
When extensions are configured, env start stands the services up on ctf after the DONs, passing them the registry chain, CapabilitiesRegistry address and DON family from the running environment, and env stop removes them. Each service answers to the aliases the DONs rely on, so services can be composed for testing. The first of these is the Storage Service, which has a new Docker Compose to support Local CRE here.
I used
--with-billingas a prior art example to drive these changes.This also changes the vault feature to set only the WorkflowRegistry fields it owns, rather than replacing the whole section, so that settings like WorkflowStorage and AdditionalSources survive.
Reproduction Steps
I've run these steps myself to confirm the latest versions of both PRs hang together correctly. These steps may pose challenge depending on what environment you are trying to run them (like, I don't know if this is how you'd launch the services in CI)
Assumes
chainlinkandcre-storage-serviceare checked out side by side. If not, setstorage_composeinconfigs/extensions/extensions.tomlto yourcre-storage-service/local-stack/compose.yaml.1. Unit test
2. Build the storage images
The images aren't published, so build them locally.
3. Start Local CRE with extensions
The
cre-storage-<id>-*containers come up healthy after the DONs, started through the CTFcre_storage_servicecomponent (dockercomposeis pinned to chainlink-testing-framework#2869's head until it's released).env startlogs the host URLs of the roles, which are on free ports. You don't need-e, a separatedocker compose up, or a node restart.4. Check the wiring
Expected:
TENANT_CR_RPC_URL=http://anvil-1337:8545and{"1":{"test-don-family":100}};test-don-family.5. Compile a workflow
go run . env workflow compile -w ./examples/workflows/cron/main.go -n extensioncron03Note the path it prints ("Workflow saved to …/extensioncron03.br.b64").
6. Build
deploy-clifor Linuxdeploy-clicurrently builds only against the localregistryclient, so this uses a workspace file.7. Deploy through
cre-deploy-apiArtifact URLs use
cre-artifact-store, which only resolves onctf, so the deploy runs in a container on that network.Expected:
Status: WORKFLOW_STATUS_ACTIVEand URLs oncre-artifact-store:4566. Keep the workflow ID asID=<workflow id>.8. Confirm the nodes run it
Wait about 45s.
Expected:
handled event (WorkflowActivated)and thenWorkflow execution finished successfully;ListWorkflowMetadataandDownloadArtifactcalls.9. Lifecycle (optional)
Space the steps at least 30s apart; nodes poll every ~12s.
10. Teardown
Tool Use Notice
All of this code was generated, but ultimately reviewed and and revised by me. Selection of specific values (like port number) were done based on prior art, but I don't have strong feelings about any of them if there is reason to change them.