Skip to content

[LocalCRE] Launch CRON without a job spec#21389

Merged
bolekk merged 2 commits intodevelopfrom
jobspec_removal_cron
Mar 5, 2026
Merged

[LocalCRE] Launch CRON without a job spec#21389
bolekk merged 2 commits intodevelopfrom
jobspec_removal_cron

Conversation

@bolekk
Copy link
Contributor

@bolekk bolekk commented Mar 4, 2026

[LocalCRE] Launch CRON without a job spec

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

👋 bolekk, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

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
Contributor

github-actions bot commented Mar 4, 2026

✅ No conflicts with other open PRs targeting develop

trunk-io[bot]

This comment was marked as outdated.

trunk-io[bot]

This comment was marked as outdated.

trunk-io[bot]

This comment was marked as outdated.

trunk-io[bot]

This comment was marked as outdated.

@trunk-io
Copy link

trunk-io bot commented Mar 4, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
5.6% Technical Debt Ratio on New Code (required ≤ 4%)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube IDE SonarQube IDE

Copy link

@trunk-io trunk-io bot left a comment

Choose a reason for hiding this comment

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

🔴 Test Results: Unrelated Failure

Affected failures:

  1. Workflow Run: Run CCIP integration In Memory Tests For PR / smoke/ccip/ccip_messaging_test.go:Test_CCIPMessaging_Solana2EVM_LOOPP
  2. Workflow Run: Integration Tests

What Broke

These failures appear to be unrelated to the changes in this PR. One failure in system tests was due to the cron capability not being properly initialized or launched after a logic change. Another failure was a build issue caused by a missing 'lodash' package, indicating a problem with dependency management or the build environment.

Autofix Options

You can use our MCP server to get AI assistance with debugging and fixing these failures.

  • Use MCP in your IDE to debug the issue. Try Help me fix CI failures from s9XKPxPf to get started.

Tip

Get Better Results: This CI job is not uploading test reports. Adding structured test reports enables more precise, test-level analysis with better root cause identification and more targeted fix recommendations.
👉🏻 Learn how to upload test results.

Copy link

@trunk-io trunk-io bot left a comment

Choose a reason for hiding this comment

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

🔴 Test Results: Local Capability Manager Conflict

Affected failures:

  1. Workflow Run: Run CCIP integration In Memory Tests For PR / smoke/ccip/ccip_messaging_test.go:Test_CCIPMessaging_Solana2EVM_LOOPP
  2. Workflow Run: Run CCIP integration In Memory Tests For PR / smoke/ccip/ccip_token_transfer_test.go:*_LOOPP

What Broke

The introduction and/or incorrect registration of the localcapmgr.NewLocalCapabilityManager service is causing an OCR3 configuration digest mismatch for CCIP plugins. This prevents commit reports and leads to the CCIP messaging system stalling and timing out, indicating a service initialization or lifecycle management issue.

Proposed Fixes

Conditionally set the localCapMgr on the wfLauncher only when the cron-trigger@1.0.0 capability is present in the RegistryBasedLaunchAllowlist to prevent interference with CCIP plugins. Additionally, remove the local capability manager from the application's top-level service list, as its lifecycle is managed by the Workflow Launcher.

In cre.go:420

 \t\t\t\treturn nil, fmt.Errorf("could not create local capability manager: %w", lcmErr)
 \t\t\t}
+ \t\t\tif localCapMgr != nil {
+ \t\t\t\twfLauncher.SetLocalCapabilityManager(localCapMgr)
+ \t\t\t}
- \t\t\twfLauncher.SetLocalCapabilityManager(localCapMgr)
 \t\t\treturn localCapMgr, nil
 \t\t}

In application.go:673

- \t\tif depSvc != nil {
- \t\t\tsrvcs = append(srvcs, depSvc)
- \t\t}
Autofix Options

You can apply the proposed fixes directly to your branch. Try the following:

  • Comment /trunk stack-fix 82TOegyW to generate a stacked PR with the proposed fixes.
  • Use MCP in your IDE to fix the issue. Try Help me fix CI failures from 82TOegyW to get started.

View all test uploads

Copy link

@trunk-io trunk-io bot left a comment

Choose a reason for hiding this comment

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

🔴 Test Results: Missing Cron Schedule

Affected failures:

  1. Workflow Run: Integration Tests

What Broke

The removal of cron job setup logic in the cron.go system test file caused integration tests to fail due to missing expected cron job configurations.

Proposed Fixes

Add a default cron schedule configuration to the cron-trigger capability in the PreEnvStartup function, ensuring the capability is properly configured when launched without a job spec.

In cron.go:45

 \tdon.AddCapability(flag, &cre.CapabilityConfig{
 \t	BinaryPath: "cron-trigger",
 \t	Version:    "1.0.0",
+ \t	Config:     `{"schedule": "0/1 * * * * *"}`,
 \t})
Autofix Options

You can apply the proposed fixes directly to your branch. Try the following:

  • Comment /trunk stack-fix oOFYjTn3 to generate a stacked PR with the proposed fixes.
  • Use MCP in your IDE to fix the issue. Try Help me fix CI failures from oOFYjTn3 to get started.

Tip

Get Better Results: This CI job is not uploading test reports. Adding structured test reports enables more precise, test-level analysis with better root cause identification and more targeted fix recommendations.
👉🏻 Learn how to upload test results.

return nil, fmt.Errorf("could not create local capability manager: %w", lcmErr)
}
wfLauncher.SetLocalCapabilityManager(localCapMgr)
srvcs = append(srvcs, localCapMgr) // srvcs is still valid when the callback is called
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing my silly bug here.

@bolekk bolekk requested a review from Tofel March 4, 2026 04:20
@bolekk bolekk enabled auto-merge March 5, 2026 14:27
@bolekk bolekk added this pull request to the merge queue Mar 5, 2026
Merged via the queue into develop with commit 9a91657 Mar 5, 2026
467 of 482 checks passed
@bolekk bolekk deleted the jobspec_removal_cron branch March 5, 2026 15:12
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.

3 participants