Skip to content

Rename internal grove usages to project#111

Closed
scion-gteam[bot] wants to merge 13 commits into
mainfrom
scion/cleanup-grove-to-project
Closed

Rename internal grove usages to project#111
scion-gteam[bot] wants to merge 13 commits into
mainfrom
scion/cleanup-grove-to-project

Conversation

@scion-gteam
Copy link
Copy Markdown

@scion-gteam scion-gteam Bot commented May 31, 2026

Summary

Renames internal-only "grove" usages to "project" across the codebase — variable names, function parameters, comments, log messages, user-facing strings (help text, warnings, prompts), an embedded config file, and the fs-watcher-tool CLI flag.

Closes #101

What changed (46 files, ~340 lines)

  • CLI help text & comments (cmd/): Updated help strings in message, stop, suspend, list, server, config, template_import and comments across 16 cmd/ files
  • User-facing messages: Warning messages in server_foreground.go, error strings in list.go, delete.go, harness_config_install.go
  • Variable/parameter renames: groveDirprojectDir, grovePathprojectPath in completion_helper.go, agentcache/cache.go, and others
  • Embedded config file: default_grove_settings.yamldefault_project_settings.yaml (file rename + internal comment updates)
  • fs-watcher-tool: Added --project flag, kept --grove as deprecated alias
  • Internal comments: Updated in pkg/harness/, pkg/secret/, pkg/util/git.go, pkg/runtimebroker/types.go, pkg/projectsync/
  • Test files: 17 test files updated to match production changes (variable names, comments, assertions)
  • Project log: Consolidated entry documenting scope and rationale

What was NOT changed (backward-compat surfaces)

All wire-format and backward-compatibility surfaces are preserved:

  • JSON struct tags (json:"groveId", etc.)
  • Container labels (scion.grove, scion.grove_id, scion.grove_path)
  • Environment variables (SCION_GROVE_ID, SCION_GROVE, SCION_GROVE_PATH)
  • NATS topic strings (scion.grove.<id>.*)
  • SQL schema / migration DDL
  • Deprecated --grove CLI flag definitions
  • /api/v1/groves/* API endpoints
  • Config key aliases (grove_id, hub.groveId)
  • YAML struct tags reading legacy marker files
  • Storage paths, query parameters, telemetry attribute values
  • Changelogs (historical records)

These are tracked in #101 for a future coordinated breaking-change release.

Test plan

  • go build ./... passes
  • make lint passes
  • make test-fast — all failures are pre-existing (Docker unavailable in test env, hub env state)
  • No backward-compat surfaces modified
  • make fmt-check — pre-existing format issues only (unrelated files)

ptone added 13 commits May 31, 2026 16:36
Update user-facing messages and code comments to use "project"
instead of "grove" terminology.
…edule

Update user-facing help text and code comments to use "project"
instead of "grove" terminology.
Update user-facing messages and code comments to use "project"
instead of "grove" terminology.
…oreground

Update code comments, log messages, and user-facing warning text
to use "project" instead of "grove" terminology.
…g_install

Update code comments, help text, and user-facing messages to use
"project" instead of "grove" terminology.
…atcher

Update code comments and log messages to use "project" instead
of "grove" terminology.
…til, runtimebroker types

Update internal comments, parameter names, and doc strings in pkg/
files that are not backward-compat surfaces. JSON/YAML struct tags,
env var strings, NATS topic strings, storage paths, query params,
container labels, and legacy-compat Marshal/Unmarshal comments are
intentionally left unchanged.
…dd --project flag to fs-watcher

- Rename embedded config file and update its internal comments
- Update koanf.go reference to the new filename
- Add --project flag to fs-watcher-tool (keep --grove as deprecated alias)
- Update fs-watcher error message to reference --project
Update test files to match the grove→project rename in production code:
- Rename groveDir→projectDir local variables across cmd/ tests
- Update comments from "grove" to "project" terminology
- Fix list_test.go assertions to match updated production output
  ("No active agents found in the current project/across any projects")
- Update server_dispatcher_test.go test data (grove→project variable
  and store objects)
- Update comment-only references in pkg/ test files

Preserved all backward-compat test surfaces:
- --grove flag references (deprecated flag testing)
- grove_id config keys, SCION_GROVE_ID env vars
- /api/v1/groves/ API endpoints
- scion.grove.* NATS topics
- Arbitrary test ID values like "grove-del-123"
Replace individual agent project logs with a single consolidated entry
summarizing the full scope of changes and what was intentionally preserved.
@ptone ptone closed this May 31, 2026
@ptone
Copy link
Copy Markdown
Owner

ptone commented May 31, 2026

This pull request has been recreated on the target repository as GoogleCloudPlatform#281.

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.

Cleanup: rename remaining internal 'grove' usages to 'project'

1 participant