Skip to content

Add repo field to AcquireLockRequest and remove unused RPCs#30

Merged
compscidr merged 9 commits into
mainfrom
feat/proto-repo-field
Mar 19, 2026
Merged

Add repo field to AcquireLockRequest and remove unused RPCs#30
compscidr merged 9 commits into
mainfrom
feat/proto-repo-field

Conversation

@compscidr
Copy link
Copy Markdown
Owner

@compscidr compscidr commented Mar 17, 2026

Summary

  • Add string repo = 2 to AcquireLockRequest in the orchestrator proto
  • Remove 7 unused RPCs and all their message types: SubmitJob, GetJobStatus, Ping, AcquireDevice, ExecuteOnSession, ReleaseDevice, ForwardToSession
  • Accept repo query param on the proxy's POST /acquire HTTP endpoint
  • Thread it through ScopedPortManager.AcquireCommandRouter.AcquireLock → gRPC request
  • Regenerate Go protobuf bindings

All device interaction now flows through the lock-based acquire/release model via the proxy. The removed RPCs were from when device-sources and clients talked directly to the orchestrator.

Usage

POST /acquire?serial=ABC123&repo=my-org/my-repo

Related

  • compscidr/sair-ochestrator#471 — completed job history dashboards (consumes repo field)
  • compscidr/sair-ochestrator#473 — removes the RPC implementations on the orchestrator side

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings March 17, 2026 17:42
Copy link
Copy Markdown

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

Adds a new repo identifier to the orchestrator JobRequest protobuf so job submissions can carry a repository name, enabling repo-aware job history display in downstream dashboards.

Changes:

  • Add string repo = 5 to JobRequest in proto/orchestrator/orchestrator.proto.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread proto/orchestrator/orchestrator.proto Outdated
@compscidr compscidr changed the title Add repo field to JobRequest proto Add repo field to AcquireLockRequest and proxy acquire flow Mar 17, 2026
All device interaction now flows through the lock-based model.
Remove 7 dead RPCs and their message types:

- SubmitJob, GetJobStatus, JobRequest, JobOutput, JobState,
  JobStatusRequest, JobStatus, DeviceRequirements
- AcquireDevice, ExecuteOnSession, ReleaseDevice, ForwardToSession
  and all session-related messages
- Ping, PingRequest, PingResponse

Matches compscidr/sair-ochestrator#473 which removes the
implementations on the orchestrator side.
@compscidr compscidr changed the title Add repo field to AcquireLockRequest and proxy acquire flow Add repo field to AcquireLockRequest and remove unused RPCs Mar 19, 2026
The generated protobuf stubs should not be checked in — they are
derived from the .proto files and can get stale.

- Add proto/**/*.pb.go to .gitignore
- Remove committed .pb.go files from tracking
- Update CI workflow to install protoc + Go plugins and run make proto
- Update release workflow similarly
- Update Dockerfile to generate stubs in the build stage
@compscidr compscidr merged commit 6e094b1 into main Mar 19, 2026
1 check passed
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.

2 participants