Skip to content

[Stellar] Add rust ci compilation#594

Merged
CoveMB merged 90 commits intoOpenZeppelin:masterfrom
CoveMB:add-rust-ci-compilation
Jul 31, 2025
Merged

[Stellar] Add rust ci compilation#594
CoveMB merged 90 commits intoOpenZeppelin:masterfrom
CoveMB:add-rust-ci-compilation

Conversation

@CoveMB
Copy link
Contributor

@CoveMB CoveMB commented Jul 4, 2025

Summary

Add compilation tests

Description

  • Add integration (compilation + test) tests for rust zip
  • Add integration (compilation + test) tests for scaffold project
  • Add compilation test for fungible and non-fungible using rust zip logic

@CoveMB CoveMB enabled auto-merge (squash) July 24, 2025 21:01
@CoveMB
Copy link
Contributor Author

CoveMB commented Jul 24, 2025

@brozorec @ozgunozerk I removed the warning and all current compilations test goes through (after resolving this)

},
);

test('placeholder', t => t.assert(true));
Copy link
Member

Choose a reason for hiding this comment

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

When will this placeholder be replaced with the actual tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought of reviewing those tests while working on the scaffold zip backend

# id: get-scaffold-sha
# run: |
# echo "sha=$(git ls-remote https://github.com/ahalabs/scaffold-stellar HEAD | cut -f1)" >> $GITHUB_OUTPUT
echo "sha=ebf79b8a57ad1b51a46162afd98ca05c648085fe" >> $GITHUB_OUTPUT
Copy link
Member

Choose a reason for hiding this comment

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

How will this SHA be updated going forward?

@CoveMB
Copy link
Contributor Author

CoveMB commented Jul 28, 2025

@ozgunozerk Sorry I missed your question, exactly in the TS compilation tests we run cargo related commands to compile the different options of contracts

@@ -0,0 +1,71 @@
import { tmpdir } from 'os';
import type { ExecutionContext } from 'ava';
import _test from 'ava';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this import needed given we have import test from 'ava'; below? Both imports are present in a couple of the files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch thanks 🙏

@CoveMB CoveMB requested review from a team as code owners July 31, 2025 13:29
@CoveMB CoveMB merged commit bebe010 into OpenZeppelin:master Jul 31, 2025
20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants