-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CAPPL-332] Persist the workflow key in the database #15475
Conversation
AER Report: CI Coreaer_workflow , commit , Detect Changes , Clean Go Tidy & Generate , Scheduled Run Frequency , Flakeguard Root Project / Get Tests To Run , Flakeguard Deployment Project , lint , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_race_tests) , Flakeguard Root Project / Run Tests (github.com/smartcontractkit/chainlink/v2/core/services/keystore, ubuntu-latest) , Core Tests (go_core_fuzz) , Flakeguard Root Project / Report , Flakey Test Detection , SonarQube Scan 1. [Dependency installation failed]:[build]Source of Error:
Why: The error occurred because the package Suggested fix: Verify the package name in the 2. [Test script failed]:[test]Source of Error:
Why: The test failed because it attempted to access a property Suggested fix: Ensure that all necessary props and states are properly initialized in the test setup. Check the component rendering logic to ensure it handles undefined values gracefully. 3. [Linting failed]:[lint]Source of Error:
Why: The linter found unused variables in the code. This is a common issue when variables are declared but not used anywhere in the code, which can lead to unnecessary clutter and potential confusion. Suggested fix: Remove the unused variables AER Report: Operator UI CI ran successfully ✅ |
8746cd0
to
735b4f2
Compare
if s.Config.Capabilities().WorkflowRegistry().Address() != "" { | ||
err2 := app.GetKeyStore().Workflow().EnsureKey(rootCtx) | ||
if err2 != nil { | ||
return errors.Wrap(err2, "failed to ensure workflow key") | ||
} | ||
err2 := app.GetKeyStore().Workflow().EnsureKey(rootCtx) | ||
if err2 != nil { | ||
return errors.Wrap(err2, "failed to ensure workflow key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 This check was created because we said not all the node would have this key, wouldn't this assume the opposite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's right! The problem is that in order to setup the WorkflowRegistry we need a key, and the check will only create one if there is a WorkflowRegistry set; the current workaround is to set it to a dummy address ("0x0") but that would still require two restarts
All in all it feels simpler and less error prone to just always create it; the cost of doing so should be very low.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok got it, thanks 👍🏼
da251c7
to
c550f97
Compare
Previously we weren't persisting the workflow key in the database; this adds persistence of these keys.