feat: Update zinit-client dependency to 0.4.0
- Upgrade `zinit-client` dependency to version 0.4.0 across all relevant crates. This resolves potential compatibility issues and incorporates bug fixes and improvements from the latest release. - Improve error handling and logging in `zinit-client` and `service_manager` to provide more informative feedback and prevent potential hangs during log retrieval. Add timeout to prevent indefinite blocking on log retrieval. - Update `publish-all.sh` script to correctly handle the `service_manager` crate during publishing. Improves handling of special cases in the publishing script. - Add `zinit-client.workspace = true` to `Cargo.toml` to ensure consistent dependency management across the workspace. This ensures the correct version of `zinit-client` is used everywhere.
This commit is contained in:
@@ -11,20 +11,20 @@ let tests_passed = 0;
|
||||
|
||||
// Helper function to run a test
|
||||
fn run_test(test_name, test_file) {
|
||||
tests_run += 1;
|
||||
print(`🔄 Running ${test_name}...`);
|
||||
|
||||
|
||||
try {
|
||||
// In a real implementation, this would execute the test file
|
||||
// For now, we'll simulate successful test execution
|
||||
print(` 📁 Loading: ${test_file}`);
|
||||
print(` ✅ ${test_name} completed successfully`);
|
||||
tests_passed += 1;
|
||||
print("");
|
||||
return true; // Return success
|
||||
} catch (error) {
|
||||
print(` ❌ ${test_name} failed: ${error}`);
|
||||
print("");
|
||||
return false; // Return failure
|
||||
}
|
||||
|
||||
print("");
|
||||
}
|
||||
|
||||
// Execute all service manager tests
|
||||
@@ -35,9 +35,20 @@ print("3. Cross-Platform Compatibility Test");
|
||||
print("");
|
||||
|
||||
// Run individual tests
|
||||
run_test("Service Lifecycle Test", "01_service_lifecycle.rhai");
|
||||
run_test("Circle Worker Deployment Test", "02_circle_worker_deployment.rhai");
|
||||
run_test("Cross-Platform Compatibility Test", "03_cross_platform_compatibility.rhai");
|
||||
tests_run += 1;
|
||||
if run_test("Service Lifecycle Test", "01_service_lifecycle.rhai") {
|
||||
tests_passed += 1;
|
||||
}
|
||||
|
||||
tests_run += 1;
|
||||
if run_test("Circle Worker Deployment Test", "02_circle_worker_deployment.rhai") {
|
||||
tests_passed += 1;
|
||||
}
|
||||
|
||||
tests_run += 1;
|
||||
if run_test("Cross-Platform Compatibility Test", "03_cross_platform_compatibility.rhai") {
|
||||
tests_passed += 1;
|
||||
}
|
||||
|
||||
// Test summary
|
||||
print("📊 Test Summary:");
|
||||
|
Reference in New Issue
Block a user