flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[CI] Fix the optimized-WASM artifact upload path in deploy-contracts workflow

Open blurbeast opened this issue 2 weeks ago • 4 comments

Overview & Background

The "Deploy Soroban Contracts" workflow builds and optimizes into target/wasm32-unknown-unknown/release/ (stellar contract optimize --wasm "$w" --wasm-out "$RELEASE_DIR/stream_contract.optimized.wasm"), but the upload step reads contracts/target/wasm32-unknown-unknown/optimized/*.wasm — a directory this workflow never creates. With if-no-files-found: error, the "Upload Optimized WASM Artifact" step must fail, so the release-deploy pipeline is broken end-to-end. ci.yml:354-359 correctly uploads from release/, so the two workflows disagree.


Technical Specification & Architecture

  1. Point the upload path at contracts/target/wasm32-unknown-unknown/release/*.optimized.wasm (or write the optimized file to optimized/) in .github/workflows/deploy-contracts.yml:122-123.
  2. Add a smoke check that the file exists before upload.
  3. Reconcile with the ci.yml upload path so both workflows agree.

Target Files

  • .github/workflows/deploy-contracts.yml
  • .github/workflows/ci.yml

Acceptance Criteria

  • [ ] The upload step finds and uploads the optimized WASM.
  • [ ] A dry run of the workflow passes the artifact step.
  • [ ] Both workflows reference the same artifact directory.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@esegbueadam-sys has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

Hi, maintainer. I would like to work on this issue.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @esegbueadam-sys to this issue.

esegbueadam-sys avatar Nov 20 '26 22:11 esegbueadam-sys

@Ayomikun2005 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

allow me do thus

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ayomikun2005 to this issue.

Ayomikun2005 avatar Nov 21 '26 07:11 Ayomikun2005

Congratulations, @Ayomikun2005! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @Ayomikun2005: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

This issue has been completed by @Ayomikun2005 as part of the Stellar Wave Program's 11th Wave 🥳

😎 @Ayomikun2005: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 24 '26 17:11 drips-wave[bot]