Skip to content

Add Stellar DF cache write e2e scenario - #23208

Closed
Fletch153 wants to merge 1 commit into
developfrom
feature/DF-25510-stellar-df-cache-e2e
Closed

Add Stellar DF cache write e2e scenario#23208
Fletch153 wants to merge 1 commit into
developfrom
feature/DF-25510-stellar-df-cache-e2e

Conversation

@Fletch153

@Fletch153 Fletch153 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a smoke scenario proving the full Stellar Data Feeds write path end to end: a CRE workflow generates an OCR report, the Soroban forwarder verifies it, and the real Data Feeds cache contract records the round, which the test reads back and checks value by value.
  • All changes live in the system-tests tree; no deployment packages are touched.

Context

The existing Stellar write test proves delivery to a stub receiver. This scenario is the Aptos-parity version for Data Feeds: the receiver is the production cache contract, so it exercises the cache's permission model (allowed sender, workflow owner, workflow name) and its report decoding, not just the forwarder.

The test deploys and configures the cache through the chainlink-stellar generated bindings client. The production deploy path is the Data Feeds changeset suite in chainlink-data-feeds, which this repo cannot import; the helper mirrors its operations for the local environment.

Changes

  • Cache helper: new system-tests/lib/cre/features/stellar/stellar_cache.go deploys the cache with the deployer's constructor-args call, registers the feed admin, sets the feed config permitting the forwarder plus workflow identity, builds the XDR report payload, and reads latest_round back.
  • Scenario: executeStellarDFCacheWriteTest drives the stock stellarwrite workflow with the host-built payload (deterministic, so consensus nodes agree byte for byte) and asserts the decoded answer and timestamp on-chain. Registered in the Stellar suite alongside the existing read and write cases.
  • Cron: the write workflow's trigger schedule becomes configurable so local runs can use a faster tick; the default stays at thirty seconds.
  • Pins: the two system-tests modules pin chainlink-stellar to an integration branch that carries the Data Feeds cache bindings and the embedded cache WASM. To be re-pinned to main once the upstream Data Feeds PRs land.

Testing

  • Suite package vets and builds against the pin; the scenario's earlier revision passed the full local run with the on-chain round byte-verified (decoded answer 123456789 and timestamp via latest_round). Re-running the suite on this revision is pending the upstream pin settling.

Notes

  • The chainlink-stellar pin points at integration branch feature/stellar-df-cache-e2e-v2 (main plus cache/proxy bindings, scval and deployer additions, and embedded Data Feeds artifacts). It must be re-pinned when that work merges upstream properly.

Base automatically changed from PLEX-2742-local-cre-stellar-write to develop July 22, 2026 18:45
@Fletch153
Fletch153 force-pushed the feature/DF-25510-stellar-df-cache-e2e branch 2 times, most recently from eae5312 to 004b43d Compare August 10, 2026 21:03
@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

- Deploy and configure the Data Feeds cache from the test tree via the
  chainlink-stellar generated cache client and deployer, permitting the
  (forwarder, workflow owner, workflow name) tuple to write the feed
- Drive the stock stellarwrite workflow with a host-built XDR report
  payload, then assert the decoded answer and timestamp via latest_round
- Make the write workflow cron schedule configurable for faster local runs
- Pin chainlink-stellar to the integration branch carrying the cache
  bindings and embedded Data Feeds artifacts
@Fletch153
Fletch153 force-pushed the feature/DF-25510-stellar-df-cache-e2e branch from 004b43d to b08e27b Compare August 10, 2026 21:12
@cl-sonarqube-production

Copy link
Copy Markdown

@trunk-io

trunk-io Bot commented Aug 10, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@Fletch153

Copy link
Copy Markdown
Collaborator Author

Superseded by #23411, which builds on the embedded wasm artifacts upstream and a dedicated data feeds write workflow module.

@Fletch153 Fletch153 closed this Aug 14, 2026
@Fletch153
Fletch153 deleted the feature/DF-25510-stellar-df-cache-e2e branch August 14, 2026 12:07
@Fletch153

Copy link
Copy Markdown
Collaborator Author

Successor PR moved to #23412 (branch renamed onto this ticket).

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