Skip to content

refactor(go): move command /foreign/go/internal/command#2881

Merged
numinnex merged 4 commits into
apache:masterfrom
chengxilo:move-command-to-single-directory
Mar 9, 2026
Merged

refactor(go): move command /foreign/go/internal/command#2881
numinnex merged 4 commits into
apache:masterfrom
chengxilo:move-command-to-single-directory

Conversation

@chengxilo
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Follow-up to #2737

Rationale

foreign/go/contract currently contains many different types, but they serve different purposes, such as data definition, and commands.

This PR aims to separate command-related types from the contract directory to improve maintainability and readability. In addition, this separation will make it easier to implement tests for command serialization methods.

What changed?

Move command types to /foreign/go/internal/command

Local Execution

  • Passed
  • Pre-commit hooks ran

AI Usage

None

@chengxilo chengxilo changed the title refactor: move command /foreign/go/internal/command refactor(go): move command /foreign/go/internal/command Mar 5, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 14.35644% with 346 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.32%. Comparing base (315bfb0) to head (abead99).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
foreign/go/internal/command/user.go 0.00% 92 Missing ⚠️
foreign/go/internal/command/topic.go 28.37% 51 Missing and 2 partials ⚠️
foreign/go/internal/command/consumer_group.go 0.00% 36 Missing ⚠️
foreign/go/internal/command/partition.go 0.00% 34 Missing ⚠️
foreign/go/internal/command/access_token.go 0.00% 21 Missing ⚠️
foreign/go/internal/command/system.go 0.00% 19 Missing ⚠️
foreign/go/internal/command/message.go 64.58% 12 Missing and 5 partials ⚠️
foreign/go/internal/command/stream.go 28.57% 15 Missing ⚠️
...ign/go/client/tcp/tcp_consumer_group_management.go 0.00% 11 Missing ⚠️
foreign/go/client/tcp/tcp_user_management.go 0.00% 7 Missing ⚠️
... and 15 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2881      +/-   ##
============================================
- Coverage     68.48%   68.32%   -0.17%     
  Complexity      739      739              
============================================
  Files          1053     1036      -17     
  Lines         84752    84240     -512     
  Branches      61286    60776     -510     
============================================
- Hits          58046    57559     -487     
+ Misses        24327    24324       -3     
+ Partials       2379     2357      -22     
Files with missing lines Coverage Δ
foreign/go/contracts/partitions.go 0.00% <ø> (-14.78%) ⬇️
foreign/go/client/tcp/cluster.go 0.00% <0.00%> (ø)
foreign/go/contracts/identifier.go 54.71% <0.00%> (ø)
foreign/go/client/tcp/tcp_clients_management.go 0.00% <0.00%> (ø)
foreign/go/client/tcp/tcp_messaging.go 0.00% <0.00%> (ø)
foreign/go/client/tcp/tcp_partition_management.go 0.00% <0.00%> (ø)
foreign/go/client/tcp/tcp_utilities.go 0.00% <0.00%> (ø)
...reign/go/client/tcp/tcp_access_token_management.go 0.00% <0.00%> (ø)
foreign/go/client/tcp/tcp_core.go 0.00% <0.00%> (ø)
foreign/go/client/tcp/tcp_offset_management.go 0.00% <0.00%> (ø)
... and 16 more

... and 60 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@atharvalade atharvalade left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Contributor

@atharvalade atharvalade left a comment

Choose a reason for hiding this comment

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

I reviewed this and everything looks good to me.

@numinnex numinnex merged commit 8c1d844 into apache:master Mar 9, 2026
34 checks passed
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.

5 participants