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

chore(release): publish v1.2.0 #96

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 70%
threshold: 5%
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ jobs:
cargo tarpaulin --out lcov --features k8s_tests

- name: Upload to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
codecov_yml_path: .github/codecov.yml

build-publish-release:
runs-on: ubuntu-latest
Expand Down
62 changes: 38 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stacks-devnet-api"
version = "1.1.0"
version = "1.2.0"
edition = "2021"
authors = ["Micaiah Reid <[email protected]>"]
description = "The Stacks Devnet API runs a server that can be used to deploy, delete, manage, and make requests to Stacks Devnets run on Kubernetes."
Expand All @@ -27,15 +27,15 @@ strum_macros = "0.24.3"
strum = "0.24.1"
# clarity-repl = "1.8.0"
# clarity-repl = {version = "2.2.0", path = "../clarinet/components/clarity-repl" }
clarity-repl = {version = "2.3.1", git = "https://github.com/hirosystems/clarinet.git", rev="a5f9fea72230b893a7d1f90bdfda3a68aa48e908" }
clarity-repl = {version = "2.3.1", git = "https://github.com/hirosystems/clarinet.git", rev="f06d087c5762fa06f7080b5c38994e7437048222" }
# clarinet-files = {version = "1.0.3" }
# clarinet-files = {version = "2.2.0", path = "../clarinet/components/clarinet-files" }
clarinet-files = {version = "2.3.1", git = "https://github.com/hirosystems/clarinet.git", rev="a5f9fea72230b893a7d1f90bdfda3a68aa48e908" }
clarinet-files = {version = "2.3.1", git = "https://github.com/hirosystems/clarinet.git", rev="f06d087c5762fa06f7080b5c38994e7437048222" }
# clarinet-deployments = {version = "1.0.3" }
# clarinet-deployments = {version = "2.2.0", path = "../clarinet/components/clarinet-deployments" }
clarinet-deployments = {version = "2.3.1", git = "https://github.com/hirosystems/clarinet.git", rev="a5f9fea72230b893a7d1f90bdfda3a68aa48e908" }
clarinet-deployments = {version = "2.3.1", git = "https://github.com/hirosystems/clarinet.git", rev="f06d087c5762fa06f7080b5c38994e7437048222" }
# chainhook-types = "1.0"
chainhook-types = { version = "1.3", git = "https://github.com/hirosystems/chainhook.git", branch="chore/update-clarinet-and-clarity" }
chainhook-types = { version = "1.3" }
toml = "0.5.9"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN rustup component add rustfmt
RUN cargo build --release --manifest-path ./Cargo.toml
RUN cp target/release/stacks-devnet-api /out

FROM gcr.io/distroless/cc
FROM gcr.io/distroless/cc-debian11
COPY --from=builder /out/ /bin/

CMD ["stacks-devnet-api"]
8 changes: 4 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl StacksDevnetConfig {
pub fn to_validated_config(
self,
user_id: &str,
ctx: Context,
ctx: &Context,
) -> Result<ValidatedStacksDevnetConfig, DevNetError> {
let context = format!(
"failed to validate config for NAMESPACE: {}",
Expand Down Expand Up @@ -232,7 +232,7 @@ mod tests {
let _guard = hiro_system_kit::log::setup_global_logger(logger.clone());
let ctx = Context::empty();
let validated_config = template
.to_validated_config(user_id, ctx)
.to_validated_config(user_id, &ctx)
.unwrap_or_else(|e| panic!("config validation test failed: {}", e.message));

let expected_project_manifest = read_file("src/tests/fixtures/project-manifest.yaml");
Expand Down Expand Up @@ -278,7 +278,7 @@ mod tests {
template.network_manifest.devnet = None;
let user_id = template.clone().namespace;
template
.to_validated_config(&user_id, ctx)
.to_validated_config(&user_id, &ctx)
.unwrap_or_else(|e| panic!("config validation test failed: {}", e.message));
}

Expand All @@ -287,7 +287,7 @@ mod tests {
let template = get_template_config("src/tests/fixtures/stacks-devnet-config.json");
let namespace = template.namespace.clone();
let user_id = "wrong";
match template.to_validated_config(user_id, Context::empty()) {
match template.to_validated_config(user_id, &Context::empty()) {
Ok(_) => {
panic!("config validation with non-matching user_id should have been rejected")
}
Expand Down
Loading
Loading