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

Introduce a CLI tool for deploying projects #10

Merged
merged 10 commits into from
Jan 28, 2025
Merged

Conversation

katiemckeon
Copy link
Collaborator

@katiemckeon katiemckeon commented Jan 28, 2025

🔄 Pull Request

📝 Description

While the sindri-js CLI is more feature complete, some users may prefer a CLI installed via the rust package manager. This PR introduces the cargo sindri deploy functionality to upload a circuit to Sindri.

🔗 Related Tickets & Documents

  • Related Issue #
  • Closes #

📋 Type of PR (check all applicable)

  • 🔨 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • ⚡ Optimization
  • 📚 Documentation Update

💭 Developer Notes

Originally, we put the CLI as a bin in sindri-rs since it is self-contained as one file. While cargo build had no issue, cargo install kept attempting to include the optional sp1-sdk-v3 package which has a conflicting reqwest-middleware dependency.

🧪 Testing Instructions

The unit test ensuring that error messages pass through has been added to the github workflow. We are still in the process of operationalizing the VCR functionality so that integration tests may also be run thru CI.

✅ Testing Status

  • Yes, tests added/updated
  • No tests needed because: please explain why
  • Help needed with testing

@katiemckeon katiemckeon marked this pull request as ready for review January 28, 2025 04:03
Comment on lines +159 to +161
let bundle = std::env::var("VCR_PATH")
.unwrap_or_else(|_| "tests/recordings/replay.vcr.json".to_string());
let bundle_path = std::path::PathBuf::from(&bundle);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

needed so that sindri-cli can also access the middleware recording location

@katiemckeon katiemckeon merged commit 671884f into main Jan 28, 2025
2 checks passed
@katiemckeon katiemckeon deleted the klm-init-cli-deploy branch January 28, 2025 04:15
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