Skip to content

Add cbcollect logging and network trace capture functionality#7

Open
chiragbytes7 wants to merge 3 commits into
couchbaselabs:mainfrom
chiragbytes7:cbcollect-network-capture
Open

Add cbcollect logging and network trace capture functionality#7
chiragbytes7 wants to merge 3 commits into
couchbaselabs:mainfrom
chiragbytes7:cbcollect-network-capture

Conversation

@chiragbytes7

Copy link
Copy Markdown
Contributor

Fix incomplete runner setup bug by safely aborting

@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch from af5f192 to 5056ef2 Compare March 13, 2026 06:34
Comment thread src/gorgon/cmd/runner.go Outdated
Comment thread src/gorgon/cmd/runner.go Outdated
Comment thread src/gorgon/cmd/runner.go
Comment thread src/gorgon/cmd/main.go Outdated

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

Adds RPC-driven cbcollect log collection and network trace (tshark) capture to the Couchbase Gorgon runner, and introduces new CLI flags intended to improve runner setup/teardown behavior.

Changes:

  • Register new worker RPC handlers for cbcollect and network trace capture/stop.
  • Add CLI options and database-side helpers to trigger cbcollect and start/stop network capture across nodes.
  • Adjust runner teardown/check behavior (including optional non-zero exit on consistency-check failures).

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/gorgon_couchbase/main.go Registers new RPC handlers on worker nodes.
src/gorgon_couchbase/kv/db.go Starts/stops capture and runs cbcollect via RPC clients; wires to Options flags.
src/gorgon/rpcs/cbcollect_rpc.go Implements RPC method to run cbcollect_info and write a zip file.
src/gorgon/rpcs/networktrace_rpc.go Implements RPC methods to start tshark capture and stop it.
src/gorgon/interface.go Adds Options fields for log directory, cbcollect, capture, and error-on-test-fail.
src/gorgon/cmd/main.go Adds new CLI flags to populate the new Options fields.
src/gorgon/cmd/runner.go Adds teardown-on-partial-setup logic and optional error return on check failures.
docker/gorgon_couchbase/node/Dockerfile Installs tshark and creates capture/log directory in the node image.
docker/gorgon_couchbase/control/run.sh Enables cbcollect + network capture flags in one run scenario.
src/gorgon/go.sum Updates porcupine dependency checksums.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/gorgon/rpcs/cbcollect_rpc.go Outdated
Comment thread src/gorgon/rpcs/networktrace_rpc.go
Comment thread src/gorgon/rpcs/networktrace_rpc.go Outdated
Comment thread src/gorgon/cmd/runner.go Outdated
Comment thread src/gorgon/cmd/runner.go
Comment thread src/gorgon/cmd/runner.go Outdated
Comment thread src/gorgon_couchbase/kv/db.go
Comment thread src/gorgon/rpcs/cbcollect_rpc.go
@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch 6 times, most recently from 9b7031d to 7956414 Compare March 19, 2026 11:45
Comment thread docker/gorgon_couchbase/node/Dockerfile Outdated
Comment thread docker/gorgon_couchbase/node/Dockerfile Outdated
@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch 2 times, most recently from 13a837c to 2b42c2b Compare March 23, 2026 05:13
Comment thread src/gorgon/cmd/main.go
Comment thread src/gorgon/interface.go
Comment thread src/gorgon/cmd/runner.go Outdated
Comment thread src/gorgon/cmd/runner.go Outdated
@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch 3 times, most recently from e7dea27 to 0d57ca2 Compare March 26, 2026 06:06
@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch from 0d57ca2 to c17c5e1 Compare April 13, 2026 10:35
@chiragbytes7

Copy link
Copy Markdown
Contributor Author

rebased and forced push this branch on upstream/main

@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch from c17c5e1 to c63336d Compare April 24, 2026 07:41
@chiragbytes7

Copy link
Copy Markdown
Contributor Author

flag parsing for cli option for "Allow terminating with non-zero status when a test fails" was missing, amended the latest commit and force pushed

@chiragbytes7

Copy link
Copy Markdown
Contributor Author

added test timeout handling here, set and return exit code 3

Fix incomplete runner setup bug by safely aborting
added constants to represent timeouts for both linearizability and sequential, test failures still have higher priority over test timeouts
@chiragbytes7 chiragbytes7 force-pushed the cbcollect-network-capture branch from 1462980 to 9d037c6 Compare May 11, 2026 09:22
@chiragbytes7

Copy link
Copy Markdown
Contributor Author

changed the default dir for artefacts.
These are currently on the worker nodes, but will be collected during jenkins artefacts collection

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