Skip to content

feat(cre): allow JD DON name override for job proposal - #23766

Open
Krish-vemula wants to merge 2 commits into
developfrom
feat/cre-jd-don-name-override
Open

Krish-vemula wants to merge 2 commits into
developfrom
feat/cre-jd-don-name-override

Conversation

@Krish-vemula

@Krish-vemula Krish-vemula commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Problem

ProposeStandardCapabilityJob builds its JD filter as don-<DONName>, assuming a DON's capabilities registry name matches the label on its nodes. Per-chain DONs are carved out of a shared DON, so the nodes keep the shared label and proposal fails:

no nodes found on JD for DON `chain_capabilities_eth_hoodi_tnet_zone-a`

Explicit node IDs don't help the sequence queries JD by label first. The alternative is relabelling every node for every new DON

Change

Optional JDDONName, used only for JD node lookup and defaulting to DONName.DONName still identifies the DON in logs and errors. Exposed on the EVM changeset and the two generic entry points.

Solana/Aptos/Stellar are in this diff — proposeAndReport is now a wrapper delegating with an empty JD name, so their behavior is identical.

Compatibility

Additive and optional; empty reproduces previous behavior exactly. omitempty on both tags, so existing payloads are unchanged. No existing test modified.

Payloads decode with DisallowUnknownFields(), so setting jdDonName on a changeset that doesn't declare it fails loudly at load rather than silently.

Testing

TestProposeStandardCapabilityJob_Apply_JDDONName covers the override resolving nodes and the unset case still failing.
Build, vet and ./cre/jobs/... pass.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io

trunk-io Bot commented Sep 16, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
Test_CRE_V2_Solana_Regression The test named 'Test_CRE_V2_Solana_Regression' failed to complete successfully. Logs ↗︎
Test_CRE_V2_Solana_Regression/ReadProgramBlockAndTxCalls Logs ↗︎
Test_CRE_V2_Solana_Regression/ReadAccountCalls Logs ↗︎
Test_CRE_V2_Solana_Regression/WriteReportInvalidReceiver Logs ↗︎

... and 1 more

View Full Report ↗︎Docs

@Krish-vemula
Krish-vemula marked this pull request as ready for review September 18, 2026 18:10
@Krish-vemula
Krish-vemula requested review from a team as code owners September 18, 2026 18:10
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