Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Release: v.0.2.5#285

Merged
JannikSt merged 6 commits into
mainfrom
release/v0.2.5
Apr 22, 2025
Merged

Release: v.0.2.5#285
JannikSt merged 6 commits into
mainfrom
release/v0.2.5

Conversation

@JannikSt
Copy link
Copy Markdown
Member

No description provided.

JannikSt and others added 2 commits April 21, 2025 16:46
)

* add basic webhook support to notify when a node changes status on orchestrator

* update helm chart
* add miner port check to ensure external port is available
* Refactor: use shared dependencies across crates
- Solves #99

---------

Co-authored-by: Jannik Straube <info@jannik-straube.de>
spaghettic0de and others added 3 commits April 22, 2025 12:57
* Introduce exp. backoff when for container start failures

---------

Co-authored-by: JannikSt <JannikSt@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: implement compute node deregistration and stake reclamation

- Added `remove_compute_node` method to `PrimeNetworkContract` for deregistering a node on-chain
- Added `reclaim_stake` method to allow providers to withdraw their stake
- Introduced `Deregister` CLI command to remove a compute node from a pool and reclaim stake
- Extended `ComputeNodeOperations` and `ProviderOperations` with corresponding async methods

---------

Co-authored-by: Jannik Straube <info@jannik-straube.de>
@JannikSt JannikSt requested a review from Copilot April 22, 2025 17:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR bumps the release version to v0.2.5 and introduces several enhancements across the codebase. Key changes include the addition of exponential backoff and failure tracking in Docker service operations, a new Deregister command in the CLI with associated wallet creation logic, and improvements to software checks including a new port availability check and webhook support in node status updates.

Reviewed Changes

Copilot reviewed 21 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
worker/src/docker/service.rs Adds constants and exponential backoff for container restart delays.
worker/src/cli/command.rs Updates software checking and introduces a new Deregister command.
worker/src/checks/software/*.rs, worker/src/checks/issue.rs, worker/Cargo.toml Introduces port availability checks and workspace dependency updates.
shared/src/web3/contracts/implementations/prime_network_contract.rs Adds new contract functions for node removal and stake reclaim.
orchestrator/src/node/status_update.rs, orchestrator/src/main.rs Enhances node status updates with webhook triggering and client timeout.
Other Cargo.toml files Migrates dependencies to workspace versions and bumps package versions.
Files not reviewed (2)
  • Makefile: Language not supported
  • orchestrator/Dockerfile: Language not supported
Comments suppressed due to low confidence (2)

orchestrator/src/main.rs:181

  • The webhook_urls vector may include empty strings if the input is an empty or comma-separated string with empty elements. Consider filtering out empty strings from the resulting collection.
let webhook_urls = args.webhook_urls.clone().unwrap_or_default().split(',').map(|s| s.to_string()).collect();

orchestrator/src/node/status_update.rs:152

  • The usage of Duration in the timeout call may lead to a compile error if Duration is not imported. Ensure that 'use std::time::Duration;' is added to the imports.
.timeout(Duration::from_secs(5)) // Add timeout to prevent hanging

Comment thread worker/src/cli/command.rs
@JannikSt JannikSt merged commit 219951e into main Apr 22, 2025
1 check passed
@JannikSt JannikSt deleted the release/v0.2.5 branch June 25, 2025 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants