Skip to content

config: remove fields not documented in config/README.md#191

Open
yushan8 wants to merge 2 commits into
yushan/config-readme-followupfrom
yushan/remove-undocumented-config-fields
Open

config: remove fields not documented in config/README.md#191
yushan8 wants to merge 2 commits into
yushan/config-readme-followupfrom
yushan/remove-undocumented-config-fields

Conversation

@yushan8

@yushan8 yushan8 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes config fields not documented in config/README.md so the Go structs match the documented surface exactly.

  • Removed RepositoryConfig.FullHashRepos, ExcludedFiles, ExcludeExternalTargets, StreamBazelLogs, and ServiceConfig.WorkerRootPath.
  • graphrunner/native.go now always includes external targets and no longer applies repo-level full-hash or excluded-file lists (per-request excludes via RequestOptions still work).
  • orchestrator/native_orchestrator.go no longer streams Bazel logs.
  • example/main.go derives the worker checkout path as workspaces_root/.workers instead of reading a separate config field.
  • Updated tests and YAML fixtures.

Test plan

  • make build
  • make test

Stack

  1. [config] Tango configuration documentation #180
  2. config: update fields, defaults, and required checks to match README #190
  3. @ config: remove fields not documented in config/README.md #191
  4. feat(mapper): add wire-size-based chunking and ResultToGetTargetGraphResponse #206
  5. config: bound stream chunks by real message size, not estimated #203

@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch from ebeab02 to 28e274d Compare July 13, 2026 01:41
@yushan8 yushan8 marked this pull request as ready for review July 13, 2026 04:54
@yushan8 yushan8 requested review from a team as code owners July 13, 2026 04:54
Comment thread config/config.go Outdated
if config.Service.MaxWorkerPoolSize <= 0 {
return nil, fmt.Errorf("service.max_worker_pool_size must be > 0, got %d", config.Service.MaxWorkerPoolSize)
}
config.Service.WorkerRootPath = filepath.Join(config.Service.WorkspacesRoot, ".workers")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this outside of config.go as it is not a field user can provide

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup good point.

@yushan8 yushan8 force-pushed the yushan/config-readme-followup branch from a2efb18 to abe84e5 Compare July 14, 2026 20:28
@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch from 8e71441 to 4dd57fe Compare July 14, 2026 20:30
@yushan8 yushan8 force-pushed the yushan/config-readme-followup branch from abe84e5 to 80ed523 Compare July 14, 2026 20:33
@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch from 4dd57fe to 27cc6f7 Compare July 14, 2026 20:34
@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch from 27cc6f7 to 67934f9 Compare July 14, 2026 22:19
@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch from 67934f9 to 06f02e9 Compare July 14, 2026 23:10
@yushan8 yushan8 force-pushed the yushan/config-readme-followup branch from a39ca66 to b154f1a Compare July 14, 2026 23:19
@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch 2 times, most recently from 487e034 to adf29cc Compare July 14, 2026 23:40
yushan8 added 2 commits July 15, 2026 09:52
Drops RepositoryConfig.FullHashRepos/ExcludedFiles/ExcludeExternalTargets/
StreamBazelLogs and ServiceConfig's settable WorkerRootPath override — none
are documented in config/README.md, and WorkerRootPath is now always
computed by Parse as workspaces_root_path/.workers rather than optionally
overridden. graphrunner/native.go's Bzlmod query construction is adjusted
so external-target querying no longer depends on the removed
ExcludeExternalTargets field.

Also fixes make test-integration on macOS: excludes @bazel_tools's
platform-specific files (e.g. a Windows-only test wrapper) from disk-based
hashing via RequestOptions.ExtraExcludeFilesRegex, since a prior config-side
exclusion (excluded_files) was just removed as undocumented.
…irely

Removes ServiceConfig.WorkerRootPath()/the settable worker_root_path
field along with repomanager.Params.WorkerRootPath — none of it is
documented in config/README.md, and RepoManager already owns
RepoManagerClonePath, so it can derive its own .workers subdirectory
(<repo_manager_clone_path>/.workers/<repo>/worker-{1..N}/) instead of
being handed a second, independently-configurable path for the same
tree.
@yushan8 yushan8 force-pushed the yushan/config-readme-followup branch from b154f1a to 6eaa518 Compare July 15, 2026 17:44
@yushan8 yushan8 force-pushed the yushan/remove-undocumented-config-fields branch from adf29cc to 2224a38 Compare July 15, 2026 17:44
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.

2 participants