Skip to content

feat: Add worker discovery, migrate CLI to REST, harden validation#139

Merged
retr0h merged 2 commits intomainfrom
feat/validation-and-rest-migration
Feb 18, 2026
Merged

feat: Add worker discovery, migrate CLI to REST, harden validation#139
retr0h merged 2 commits intomainfrom
feat/validation-and-rest-migration

Conversation

@retr0h
Copy link
Collaborator

@retr0h retr0h commented Feb 18, 2026

  • Add GET /job/workers endpoint with CLI command for fleet discovery
  • Migrate all client job CLI commands from direct NATS to REST API
  • Rename --host/-H CLI flag to --target/-T across all commands
  • Add input validation for path params (interfaceName, job ID), query params (target_hostname, status), and missing 400 responses
  • Add public and integration tests for all validation cases

🤖 Generated with Claude Code

@github-actions
Copy link
Contributor

Thank you for contributing to this project! 😊🕹️

- Add GET /job/workers endpoint with CLI command for fleet discovery
- Migrate all `client job` CLI commands from direct NATS to REST API
- Rename --host/-H CLI flag to --target/-T across all commands
- Add input validation for path params (interfaceName, job ID),
  query params (target_hostname, status), and missing 400 responses
- Add public and integration tests for all validation cases

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@retr0h retr0h force-pushed the feat/validation-and-rest-migration branch from 8d92c76 to 6905379 Compare February 18, 2026 04:43
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 99.70588% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/job/client/client.go 88.88% 1 Missing ⚠️

Impacted file tree graph

@@             Coverage Diff             @@
##              main     #139      +/-   ##
===========================================
- Coverage   100.00%   99.79%   -0.21%     
===========================================
  Files           92       99       +7     
  Lines         2064     2384     +320     
===========================================
+ Hits          2064     2379     +315     
- Misses           0        4       +4     
- Partials         0        1       +1     
Files with missing lines Coverage Δ
internal/api/job/job_delete.go 100.00% <100.00%> (ø)
internal/api/job/job_get.go 100.00% <100.00%> (ø)
internal/api/job/job_list.go 100.00% <100.00%> (ø)
internal/api/job/job_workers_get.go 100.00% <100.00%> (ø)
...ternal/api/network/network_dns_get_by_interface.go 100.00% <100.00%> (ø)
...ternal/api/network/network_dns_put_by_interface.go 100.00% <100.00%> (ø)
internal/api/network/network_ping_post.go 100.00% <100.00%> (ø)
internal/api/system/system_hostname_get.go 100.00% <100.00%> (ø)
internal/api/system/system_status_get.go 100.00% <100.00%> (ø)
internal/client/job_delete_by_id.go 100.00% <100.00%> (ø)
... and 13 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b56af97...b8b4e0c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add test cases for _all broadcast paths in all API handler public and
integration tests, plus job client *All and ListWorkers methods.
Brings API handler coverage to 100% and job client to 99.6%.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@retr0h retr0h merged commit 1a859fc into main Feb 18, 2026
6 of 7 checks passed
@retr0h retr0h deleted the feat/validation-and-rest-migration branch February 18, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments