Skip to content

Conversation

djeebus
Copy link
Contributor

@djeebus djeebus commented Sep 18, 2025

https://github.com/ghostiam/protogetter


Note

Enables the protogetter linter and replaces direct protobuf field access with Get* accessors across API, orchestrator, envd services, client-proxy, and tests.

  • Linting:
    • Enable protogetter in .golangci.yml.
  • Refactor to protobuf getters:
    • Replace direct proto field access with Get* methods in packages/api (edge, nodemanager, placement, template-manager).
    • Update packages/orchestrator (server, service, template build commands/phases, auth providers) to use Get* and adjust logging/metadata accordingly.
    • Adjust packages/envd services (filesystem, process) and legacy conversion to Get* accessors; update tests to use getters.
    • Update packages/client-proxy orchestrator pool sync to getters.
    • Add targeted //nolint:protogetter where nil checks require direct access.

Written by Cursor Bugbot for commit 04c006f. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@djeebus djeebus added the improvement Improvement for current functionality label Sep 19, 2025
# Conflicts:
#	.golangci.yml
cursor[bot]

This comment was marked as outdated.

# Conflicts:
#	packages/api/internal/orchestrator/nodemanager/sandboxes.go
@ValentaTomas ValentaTomas self-assigned this Sep 22, 2025
cursor[bot]

This comment was marked as outdated.

# Conflicts:
#	.golangci.yml
#	packages/api/internal/orchestrator/nodemanager/node.go
#	packages/api/internal/orchestrator/nodemanager/sandboxes.go
#	packages/api/internal/orchestrator/nodemanager/sync.go
#	packages/orchestrator/internal/template/server/create_template.go
# Conflicts:
#	packages/orchestrator/internal/server/sandboxes.go
#	packages/orchestrator/internal/template/server/create_template.go
@djeebus djeebus merged commit b369a5d into main Oct 6, 2025
26 checks passed
@djeebus djeebus deleted the linting/protogetter branch October 6, 2025 18:56
Code42Cate pushed a commit that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement for current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants