Skip to content

[CRE][Gateway] Migrate Local CRE gateway config to multi-DON service format#21344

Draft
bolekk wants to merge 3 commits intodevelopfrom
gateway_multi_local_cre
Draft

[CRE][Gateway] Migrate Local CRE gateway config to multi-DON service format#21344
bolekk wants to merge 3 commits intodevelopfrom
gateway_multi_local_cre

Conversation

@bolekk
Copy link
Contributor

@bolekk bolekk commented Feb 28, 2026

Summary

  • Replaces the DON-centric GatewayConfig with a service-centric GatewayServiceConfig type in the Local CRE topology layer, where each service groups handlers and references DON names
  • Refactors GatewayJob.Resolve() to emit the new [[gatewayConfig.Services]] + [[gatewayConfig.ShardedDONs]] TOML structure instead of the deprecated [[gatewayConfig.Dons]] array
  • Updates ProposeGatewayJobInput to accept Services instead of DONs, deriving DON membership and F value from JD at resolve time

Test plan

  • go test ./cre/jobs/pkg/ -run TestGatewayJob — validates new TOML output format
  • go test ./cre/jobs/operations/ -run TestProposeGatewayJob — validates service→DON input transformation
  • go test ./cre/jobs/ -run TestProposeJobSpec — validates end-to-end job spec pipeline
  • go build ./cre/... (deployment module) — compiles cleanly
  • go build ./cre/... (system-tests/lib module) — compiles cleanly

Depends on #21346 (gateway_multi_part2)

Made with Cursor

@github-actions
Copy link
Contributor

github-actions bot commented Feb 28, 2026

✅ No conflicts with other open PRs targeting gateway_multi_part2

@bolekk bolekk force-pushed the gateway_multi_local_cre branch from 1b25b74 to c1df58d Compare February 28, 2026 15:37
…format

Update the gateway configuration pipeline to emit the new Services +
ShardedDONs TOML structure instead of the deprecated Dons array.

Key changes:
- Replace GatewayConfig (DON-centric) with GatewayServiceConfig
  (service-centric) in system-tests/lib/cre types and topology
- Refactor GatewayJob.Resolve() to build Services and ShardedDONs
  sections with handler-to-service mapping
- Update ProposeGatewayJobInput to accept Services instead of DONs,
  deriving DON membership and F from JD
- Extract resolveDONMembers helper in the operations layer

Depends on: gateway_multi_part2

Made-with: Cursor
@bolekk bolekk force-pushed the gateway_multi_local_cre branch from c1df58d to 6a38c26 Compare February 28, 2026 16:11
@github-actions
Copy link
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.

@trunk-io
Copy link

trunk-io bot commented Feb 28, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
Test_CRE_V2_Suite_Bucket_C/[v2]_HTTP_Action_CRUD_-_workflow-gateway-capabilities/[v2]_HTTP_Action_DELETE_operation Logs ↗︎
Test_CRE_V2_Suite_Bucket_C/[v2]_HTTP_Action_CRUD_-_workflow-gateway-capabilities/[v2]_HTTP_Action_POST_operation The test failed because the expected log message indicating successful CRUD operation was not received. Logs ↗︎
Test_CRE_V2_Suite_Bucket_C/[v2]_HTTP_Action_CRUD_-_workflow-gateway-capabilities Logs ↗︎
Test_CRE_V2_Suite_Bucket_C/[v2]_HTTP_Action_CRUD_-_workflow-gateway-capabilities/[v2]_HTTP_Action_PUT_operation Logs ↗︎

... and 5 more

View Full Report ↗︎Docs

@bolekk bolekk force-pushed the gateway_multi_local_cre branch from 5622808 to 1ed3b6f Compare February 28, 2026 17:07
@bolekk bolekk force-pushed the gateway_multi_local_cre branch from 1ed3b6f to 24daf5a Compare February 28, 2026 17:15
@cl-sonarqube-production
Copy link

@bolekk bolekk force-pushed the gateway_multi_part2 branch from 600a9a7 to f10eabb Compare February 28, 2026 18:31
@Moses-main
Copy link

Hi team,

I'd like to work on the CRE gateway config migration. I have experience with:

  • Chainlink CRE
  • Configuration management
  • Node.js

Please assign!

Base automatically changed from gateway_multi_part2 to develop March 2, 2026 19:02
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