Skip to content

refactor(build): remove unused interceptor - #633

Merged
chlins merged 1 commit into
mainfrom
refactor/remove-build-interceptor
Aug 13, 2026
Merged

refactor(build): remove unused interceptor#633
chlins merged 1 commit into
mainfrom
refactor/remove-build-interceptor

Conversation

@chlins

@chlins chlins commented Aug 13, 2026

Copy link
Copy Markdown
Member

This pull request removes the build "interceptor" feature from the codebase, including all related logic, configuration, and tests. The interceptor was previously used to intercept and modify the build process, but is no longer needed.

Removal of interceptor functionality:

  • Deleted the interceptor package and its interface, along with all related code in pkg/backend/build/interceptor/interceptor.go.
  • Removed the interceptor field and logic from the abstractBuilder struct and its methods in pkg/backend/build/builder.go, including the splitReader helper function and all associated concurrency code. [1] [2] [3] [4] [5]
  • Removed the WithInterceptor option and related configuration from pkg/backend/build/config.go. [1] [2]

Test cleanup:

  • Removed the TestPipeReader test and associated imports from pkg/backend/build/builder_test.go, as it was only used for the interceptor feature. [1] [2]

These changes simplify the codebase by eliminating unused interceptor logic and related complexity.

Signed-off-by: chlins <chlins.zhang@gmail.com>
@chlins
chlins requested a lite review from Copilot August 13, 2026 08:47
@chlins
chlins enabled auto-merge (squash) August 13, 2026 08:47

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

This pull request removes the previously supported (but now unused) build “interceptor” feature from the backend build pipeline, simplifying the builder implementation and eliminating related configuration and test code.

Changes:

  • Removed the interceptor package/interface and all builder integration points.
  • Dropped the WithInterceptor option and the corresponding config field.
  • Deleted the splitReader helper and its dedicated test (TestPipeReader) that only existed to support interceptor concurrency.

Reviewed changes

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

File Description
pkg/backend/build/interceptor/interceptor.go Deletes the interceptor interface/package that is no longer used.
pkg/backend/build/config.go Removes the interceptor option/field from builder configuration.
pkg/backend/build/builder.go Removes interceptor plumbing and the splitReader concurrency helper from the build path.
pkg/backend/build/builder_test.go Removes the now-obsolete TestPipeReader and related imports.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gaius-qi gaius-qi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@chlins
chlins merged commit 3ee4872 into main Aug 13, 2026
6 checks passed
@chlins
chlins deleted the refactor/remove-build-interceptor branch August 13, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants