Skip to content

refactor(config): remove deprecated operator_workers/scheduler_workers aliases#457

Draft
Kiran01bm wants to merge 1 commit into
block:mainfrom
Kiran01bm:kiran01bm/schemabot-driver-alias-removal
Draft

refactor(config): remove deprecated operator_workers/scheduler_workers aliases#457
Kiran01bm wants to merge 1 commit into
block:mainfrom
Kiran01bm:kiran01bm/schemabot-driver-alias-removal

Conversation

@Kiran01bm

Copy link
Copy Markdown
Collaborator

What

Removes the deprecated operator_workers and scheduler_workers config aliases (and their KnownFields(true) compat fields), along with the resolveDeprecatedDrivers fold logic and its Validate() call. drivers is now the only accepted key for operator concurrency. Docs and tests updated to match.

Why

The aliases were kept for exactly one release after #438 renamed the key to drivers, so existing configs would keep loading under KnownFields(true) with a deprecation warning. With the rename soaked, the compat layer is no longer needed.

⚠️ Do not merge until #438 has soaked for one release. This depends on that rename being live; merging early would reject configs still using the old keys.

Copilot AI review requested due to automatic review settings June 21, 2026 23:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Removes the now-expired YAML compatibility layer for operator concurrency configuration by dropping the deprecated operator_workers / scheduler_workers aliases so drivers is the only accepted key. This simplifies config parsing under KnownFields(true) and removes the associated folding/validation logic and documentation references.

Changes:

  • Removed operator_workers and scheduler_workers fields from ServerConfig and deleted the resolveDeprecatedDrivers folding helper (and its Validate() invocation).
  • Updated tests to stop asserting deprecated-key folding behavior.
  • Updated docs to remove references to the deprecated aliases, documenting drivers as the sole operator concurrency key.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
pkg/api/operator_test.go Removes tests that exercised deprecated alias folding into drivers.
pkg/api/config.go Deletes deprecated config fields and the alias-resolution/fold logic from validation.
docs/configuration.md Removes deprecation note for operator_workers / scheduler_workers in the Drivers section.
docs/architecture.md Updates operator concurrency documentation to reference only drivers.

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

…s aliases

drivers is now the only accepted key for operator concurrency; the compat
aliases were retained only for one release after the rename soaked.
@Kiran01bm Kiran01bm force-pushed the kiran01bm/schemabot-driver-alias-removal branch from a83fd14 to 02763d3 Compare June 22, 2026 07:08
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.

3 participants