Skip to content

feat(operations): add always-execute option and latest cache reuse#925

Draft
graham-chainlink wants to merge 1 commit intomainfrom
ggoh/NOJIRA/operations-always-execute-cache
Draft

feat(operations): add always-execute option and latest cache reuse#925
graham-chainlink wants to merge 1 commit intomainfrom
ggoh/NOJIRA/operations-always-execute-cache

Conversation

@graham-chainlink
Copy link
Copy Markdown
Collaborator

What changed

  • Added WithAlwaysExecute execute option to force operation execution and bypass previous successful report short-circuiting.
  • Updated cached report lookup to prefer the most recent matching successful report.
  • Added regression tests for forced re-execution and most-recent successful report reuse.
  • Updated operations package docs usage examples to reflect the new option and current sequence behavior.

Why

  • Some execution flows need deterministic re-runs rather than returning prior cached results.
  • When cache reuse is enabled, returning the newest successful report provides expected and up-to-date behavior.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 13, 2026

🦋 Changeset detected

Latest commit: 6fbfc43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graham-chainlink graham-chainlink force-pushed the ggoh/NOJIRA/operations-always-execute-cache branch from 2b36801 to fd83eaa Compare April 13, 2026 14:10
Introduce WithAlwaysExecute for operations to bypass previous successful report reuse when explicitly requested. Also ensure cached report lookup prefers the most recent successful match and add regression coverage plus docs updates.
@graham-chainlink graham-chainlink force-pushed the ggoh/NOJIRA/operations-always-execute-cache branch from fd83eaa to 6fbfc43 Compare April 13, 2026 14:12
@cl-sonarqube-production
Copy link
Copy Markdown

}

for _, report := range prevReports {
for i := len(prevReports) - 1; i >= 0; i-- {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

now that there can be multiple reports of the same ID, we want to return the most recent ones instead of the oldest one

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.

1 participant