Skip to content
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-442] add workflow registry view #16336

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

eutopian
Copy link
Contributor

Requires

Supports

@eutopian eutopian requested review from a team as code owners February 11, 2025 22:33
@eutopian eutopian force-pushed the CAPPL-442/workflow-registry-views branch 2 times, most recently from 5fd521e to c39061c Compare February 11, 2025 22:52
Copy link
Contributor

github-actions bot commented Feb 11, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

shileiwill
shileiwill previously approved these changes Feb 11, 2025
Copy link
Contributor

@shileiwill shileiwill left a comment

Choose a reason for hiding this comment

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

LGTM! What command do you use to generate the view?

config:
dir: common/view/v1_0/mocks/
filename: workflow_registry_interface.go
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for my knowledge, this generated interface is just for testing as in mocks.WorkflowRegistryInterface. I see we are using the wrapper workflow_registry "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/workflow/generated/workflow_registry_wrapper" in workflowreg.go.

@eutopian eutopian force-pushed the CAPPL-442/workflow-registry-views branch 2 times, most recently from c7f649b to 901f8da Compare February 12, 2025 15:04
@@ -1,5 +1,5 @@
golang 1.23.3
mockery 2.46.3
mockery 2.50.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

recently bumped

go install github.com/vektra/mockery/[email protected]

for {
wmds, err := wr.GetWorkflowMetadataListByDON(nil, donID, start, pageSize)
if err != nil {
return WorkflowRegistryView{}, fmt.Errorf("GetWorkflowMetadataListByDON failed for donID %d: %w", donID, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

consider whether you want these errors to really abort the view. almost certainly better to defined and return error types for the caller.

learned the hard way as the recent state view problem convinced me it's better to aggregrate non-fatal errors and return them to the caller to handle so that, at least in principle, a failure in the this part (the WFR view) doesn't block all other state

eg

// If some subset of nodes cannot have all their metadata returned, the error with be

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense from a view perspective; makes me think of gql requests where individual fields that errors during a request doesn't cause the entire call to error but instead you get partial data for all the fields it was able to resolve and an array of errors for each field that it wasn't able to process.

@eutopian eutopian force-pushed the CAPPL-442/workflow-registry-views branch 2 times, most recently from eebd640 to e0e248b Compare February 13, 2025 21:48
@eutopian eutopian force-pushed the CAPPL-442/workflow-registry-views branch from e0e248b to b656fcf Compare February 13, 2025 21:51
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Feb 13, 2025
@eutopian eutopian enabled auto-merge February 14, 2025 20:54
@eutopian eutopian added this pull request to the merge queue Feb 14, 2025
Merged via the queue into develop with commit 26a94d5 Feb 14, 2025
181 checks passed
@eutopian eutopian deleted the CAPPL-442/workflow-registry-views branch February 14, 2025 22:15
ecPablo pushed a commit that referenced this pull request Feb 17, 2025
* add workflow registry view

* print instead of return from registry errors

[CAPPL-442] add workflow registry view (#16336)

* add workflow registry view

* print instead of return from registry errors

Added commit price only method config to Solana ChainWriter (#16401)

* Added commit price only method config to Solana ChainWriter

* Moved ATA config from commit method to execute

* Upgraded chainlink-ccip dependency

* Addressed feedback

refactor extradata codec to unblock ccip ocr message optimization using protobuf (#16402)

* refactor extradata codec to unblock ccip ocr message optimization using protobuf

* goimport

* revert

* minor

* minor

* refactor

* fix import

* fix import

* add comments

* fix test

* support Solana->EVM

* fix

* update

* fix make

[NONEVM-1319] - Solana Contract Reader Dest and Source cfg (#16308)

* Implement Solana Contract Reader config and bump chainlink-solana

* Update CR config

* Resolve more TODOs from Contract Reader config

* Bump solana

* Progress on CR config

* Add comments to CR config

* Bump chainlink-ccip/chains/solana in core too

* Use feeQuoterIDL

* Fix CR config issues

* Simplify CR config and add a TODO

* Remove CR config resolved TODOs and add serialisation test

* Add MethodNameOffRampLatestConfigDetails to CR config

* Fix cfg

* Upgraded chainlink-common dependency

* Bump common and resolve OffRampLatestConfigDetails issues

* Fixed linting

---------

Co-authored-by: Blaž Hrastnik <[email protected]>
Co-authored-by: amit-momin <[email protected]>

Add new RMN smoke test (#16385)

* Add new RMN smoke test

* Fix linting issues

[TT-1991] use github.sha in integration-tests workflow (#16396)

* use github.sha in integration-tests workflow

* more Slack message debug

* use reusable workflow sha from main branch

TT-1956 Add support for e2e docker tests in Flakeguard #16376 (#16380)

* Bump Flakeguard

* wip

* update test

* update test cmd

* bump

* bump

* bump

* bump

* fix

* bump

* fix

* bump

* bump

* bump

* bump

* fail test

* bump

* Run nightly workflow with flakeguard

* bump

* bump

* Add extraArgs input to E2E tests workflow for customizable arguments

* bump

* bump

* bump

* bump

* Add extraArgs input to nightly E2E tests workflow for customizable arguments

* bump

* bump

* bump

* bump

* bump

* revert tests

* bump

* bump

* bump

* bump

* bump

* bump

* bump

* trigger tests

* Revert "trigger tests"

This reverts commit dbb37c4.

fix: restore files go mod
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.

4 participants