Skip to content

Simplify uap plugin architecture#2316

Open
rafaelwestphal wants to merge 3 commits into
ops_agent_3.0from
westphalrafael/simplify-uap-plugin
Open

Simplify uap plugin architecture#2316
rafaelwestphal wants to merge 3 commits into
ops_agent_3.0from
westphalrafael/simplify-uap-plugin

Conversation

@rafaelwestphal
Copy link
Copy Markdown
Contributor

Description

With Fluent Bit completely removed, there is no longer a need to maintain complex lifecycle synchronization across multiple subagents. We have simplified the cmd/ops_agent_uap_plugin subagent loops to execute OTel collector directly:

  • Removed sync.WaitGroup and goroutine spawning from runSubagents on both Linux and Windows.
  • Removed sync.WaitGroup parameters and defer wg.Done() from runSubAgentCommand.
  • Simplified RunSubAgentCommandFunc type definition to omit the WaitGroup parameter.
  • Deleted sync package imports from service_linux.go and service_windows.go.
  • Simplified all UAP plugin linux/windows unit tests to remove WaitGroup declarations and calls.

Related issue

b/517494318

How has this been tested?

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

@rafaelwestphal rafaelwestphal force-pushed the westphalrafael/simplify-uap-plugin branch 7 times, most recently from 2d0eb15 to 7af0d98 Compare May 29, 2026 17:27
@rafaelwestphal rafaelwestphal changed the title Westphalrafael/simplify uap plugin Simplify uap plugin architecture May 29, 2026
@rafaelwestphal rafaelwestphal force-pushed the westphalrafael/simplify-uap-plugin branch 2 times, most recently from 39a6bf9 to a76595d Compare June 1, 2026 01:33
…d packaging

With Fluent Bit completely gone from Ops Agent 3.0, the google-cloud-ops-agent-wrapper
supervisor binary is completely obsolete. We have purged it entirely from the repository:

- Deleted cmd/agent_wrapper/ Go package (9 files deleted!).
- Deleted builds/agent_wrapper.sh build script.
- Removed wrapper build stages and COPY commands from dockerfiles/template and Dockerfile.
- Removed wrapper build block from Dockerfile.windows.
- Cleared out wrapper binaries from RPM/DEB/Goo package manifests and scripts.

TAG=agy
BUG=b/517494318
CONV=a3aefa50-102a-4eb8-ac21-894088d8c5df
With Fluent Bit completely removed, there is no longer a need to maintain complex
lifecycle synchronization across multiple subagents. We have simplified the
cmd/ops_agent_uap_plugin subagent loops to execute OTel collector directly:

- Removed sync.WaitGroup and goroutine spawning from runSubagents on both Linux and Windows.
- Removed sync.WaitGroup parameters and defer wg.Done() from runSubAgentCommand.
- Simplified RunSubAgentCommandFunc type definition to omit the WaitGroup parameter.
- Deleted sync package imports from service_linux.go and service_windows.go.
- Simplified all UAP plugin linux/windows unit tests to remove WaitGroup declarations and calls.

TAG=agy
BUG=b/517494318
CONV=a3aefa50-102a-4eb8-ac21-894088d8c5df
@rafaelwestphal rafaelwestphal force-pushed the westphalrafael/simplify-uap-plugin branch from 2677b8c to b4aed70 Compare June 1, 2026 17:31
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.

1 participant