-
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
Gas prices Data Source Changes #10489
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
retest |
3fba394
to
640a094
Compare
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6111856435 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6112031805 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6112032320 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6114674548 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6122503216 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6126405294 |
@@ -1,7 +1,7 @@ | |||
golang 1.20.4 | |||
mockery 2.28.1 | |||
nodejs 16.16.0 | |||
postgres 13.3 | |||
postgres 15.1 |
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.
will remove before PR is ready to be merged... I do this because I test against postgres 15 locally
@@ -282,16 +282,27 @@ func (o *orm) CreateJob(jb *Job, qopts ...pg.QOpt) error { | |||
|
|||
if jb.OCR2OracleSpec.PluginType == types.Median { | |||
var cfg medianconfig.PluginConfig | |||
validatePipeline := func(s string) error { |
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.
simplify plugin pipeline validation logic
} | ||
|
||
// ValidatePluginConfig validates the arguments for the Median plugin. | ||
func ValidatePluginConfig(config PluginConfig) error { | ||
func (config *PluginConfig) ValidatePluginConfig() error { |
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.
made these methods instead of functions
@@ -121,11 +131,11 @@ func NewMedianServices(ctx context.Context, | |||
abort() | |||
return | |||
} | |||
median := loop.NewMedianService(lggr, telem, cmdFn, medianProvider, dataSource, juelsPerFeeCoinSource, errorLog) | |||
median := loop.NewMedianService(lggr, telem, cmdFn, medianProvider, dataSource, juelsPerFeeCoinSource, gasPriceDataSource, errorLog) |
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.
data source should work with both loopp and legacy plugins.
SonarQube Quality Gate Maintainability Rating on New Code (is worse than A) See analysis details on SonarQube Fix issues before they fail your Quality Gate with SonarLint in your IDE. |
@@ -106,11 +107,20 @@ func NewMedianServices(ctx context.Context, | |||
runResults, | |||
chEnhancedTelem, | |||
), ocrcommon.NewInMemoryDataSource(pipelineRunner, jb, pipeline.Spec{ | |||
ID: jb.ID, | |||
ID: jb.ID, // why do we choose the same job id for getting juelsperfee number as the data source? |
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.
Is this an issue we need to fix? or document in a ticket?
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 was just a question i had. I think I found the answer: they're part of the same job. ( will delete comment)
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
SonarQube Quality Gate Maintainability Rating on New Code (is worse than A) See analysis details on SonarQube Fix issues before they fail your Quality Gate with SonarLint in your IDE. |
I assume the Foundry dependency change is not intentional? If not, please undo it. |
yeah, it was an artifact of testing unrelated changes. I'll remove it |
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This PR does the following:
Related PRs: