Commit Graph
24171 Commits
Author SHA1 Message Date
Ivan Valdes 64f366f2a7 Simplify running tests
* Remove iteration over packages; with the Go workspace, we don't need
  to iterate.
* Replace `KEEP_GOING_TESTS` behavior by using the Go `-failfast` test
  flag.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2026-01-09 13:58:50 -08:00
Marek Siarkowicz 65b1be4e2f Merge pull request #21070 from henrybear327/robustness/watch-refactor-pr1
robustness: rename RunTrafficLoop and add RunWatchLoop method
2026-01-02 09:32:55 +01:00
Chun-Hung Tseng d3e3308cd0 robustness: rename RunTrafficLoop and add RunWatchLoop method
Rename RunTrafficLoop to RunKeyValueLoop to better reflect that it
handles key-value operations (get, put, delete, etc.).

Add a new RunWatchLoop method to the Traffic interface that will
create watches in a controlled loop with configurable QPS and
revision offset parameters. This provides better lifecycle control
than the previous periodic background watch mechanism.

The RunWatchLoop implementations are stubs that will be filled in
a subsequent commit.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com>
2026-01-02 14:37:08 +09:00
Marek Siarkowicz c196a03bc6 Merge pull request #21054 from serathius/robustness-read-wal
Robustness reads all entries from WAL with no consideration for snapshots
2025-12-31 11:19:53 +01:00
Marek Siarkowicz 05deb6085f Merge pull request #21062 from majiayu000/fix-21032-find-and-classify-all-the-exit-1230-1437
Documentation: add comprehensive exit codes reference
2025-12-31 10:27:31 +01:00
majiayu000andBenjamin Wang c19d997fe3 docs: add etcdserver exit codes reference
Add comprehensive documentation for all exit codes returned by the
etcd server, addressing issue #21032.

Coverage:
- Exit code 0: Success scenarios (help, version, normal shutdown, graceful signal shutdown for PID 1)
- Exit code 1: General errors (18 scenarios covering logger, config, discovery, listener failures)
- Exit code 2: Argument parsing errors
- Signal termination: SIGTERM (143) and SIGINT (130) for non-PID 1 processes on Linux/Unix

All code references use GitHub permalinks. Signal-based exit codes (128 + signal number)
are specific to Linux/Unix systems; on other platforms etcd returns 0 on success and 1 on error.

Fixes #21032

Co-authored-by: Benjamin Wang <benjamin.wang@broadcom.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-31 00:34:29 +08:00
Marek Siarkowicz f57a28fa8a Read all entries from WAL with no consideration for snapshots
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2025-12-30 16:24:40 +01:00
Benjamin Wang aef0361938 Merge pull request #21038 from ahrtr/20251219_metrics
Add a new metrics etcd_server_request_duration_seconds to track e2e duration for each request
2025-12-30 12:05:05 +00:00
Marek Siarkowicz e0a72cf470 Merge pull request #21061 from nwnt/add-missing-range-options-for-test-clients
Add the missing range options for test clients
2025-12-30 09:29:48 +01:00
Nont d63076256b Add the missing range options for test clients
Signed-off-by: Nont <nont@duck.com>
2025-12-29 22:17:02 -06:00
Benjamin Wang 40c5aaba63 Merge pull request #20006 from dmvolod/export-etcd-client-debug-level-func
Client: Rename etcdClientDebugLevel function to the ClientLogLevel
2025-12-29 17:54:16 +00:00
Dmitry Volodin 166463c668 Client: Rename etcdClientDebugLevel function to the ClientLogLevel
Signed-off-by: Dmitry Volodin <dmvolod@gmail.com>
2025-12-29 16:58:25 +03:00
Benjamin Wang 5e543d7e6d Merge pull request #21047 from huajianxiaowanzi/main
cleanup: remove redundant panicAlternativeStringer
2025-12-24 12:43:09 +00:00
Benjamin Wang afbc014bd2 Merge pull request #20192 from Jille/lgMu
client: Use an atomic.Pointer instead of a mutex to guard the logger
2025-12-23 15:56:40 +00:00
A.D 3553655ff5 cleanup: remove redundant panicAlternativeStringer
Signed-off-by: A.D <1695316070@qq.com>
2025-12-23 20:27:56 +08:00
Benjamin Wang 7d7f95139c Merge pull request #21046 from etcd-io/dependabot/github_actions/github/codeql-action-4.31.9
build(deps): bump github/codeql-action from 4.31.8 to 4.31.9
2025-12-23 11:07:46 +00:00
Benjamin Wang 849e9ee60c Merge pull request #21049 from ivanvc/dependency-bump-2025-12-22
[2025-12-22] Manual Dependency Bump
2025-12-23 11:00:19 +00:00
Benjamin Wang 6a8fcc8473 Merge pull request #21045 from dims/fix-robustness-test-package-path
test: fix robustness tests failing with undefined -bin-dir flag
2025-12-23 10:26:10 +00:00
Ivan Valdes c6ead5fcc3 build(deps): bump golang.org/x/tools from 0.39.0 to 0.40.0 in /tools/mod
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.39.0 to 0.40.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Reference: https://github.com/etcd-io/etcd/pull/21018

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-22 22:45:00 -08:00
Ivan Valdes 8505dec782 build(deps): bump go.opentelemetry.io/otel/sdk from 1.38.0 to 1.39.0
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.38.0 to 1.39.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-go@v1.38.0...v1.39.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-version: 1.39.0
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Reference: https://github.com/etcd-io/etcd/pull/21002

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-22 22:44:56 -08:00
Ivan Valdes 4f99d2c03a build(deps): bump github.com/golangci/golangci-lint/v2 in /tools/mod
Bumps [github.com/golangci/golangci-lint/v2](https://github.com/golangci/golangci-lint) from 2.6.2 to 2.7.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/main/CHANGELOG.md)
- [Commits](golangci/golangci-lint@v2.6.2...v2.7.2)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint/v2
  dependency-version: 2.7.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Reference: https://github.com/etcd-io/etcd/pull/21001

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-22 22:44:48 -08:00
Ivan Valdes ff30e0dcdd Fix revive var-naming warning in errors package
Updating github.com/golangci/golangci-lint/v2 to 2.7.2 raises the
following error:

% 'golangci-lint' 'run' '--config'
  '/var/home/ivan/Code/Personal/etcd/etcd/tools/.golangci.yaml' '--fix'
  './...' './api/...' './cache/...' './client/pkg/...' './client/v3/...'
  './ etcdctl/...' './etcdutl/...' './pkg/...' './server/...'
  './tests/...' './tools/mod/...' './tools/rw-heatmaps/...'
  './tools/testgrid-analysis/...'

../server/etcdserver/errors/errors.go:15:9: var-naming: avoid package
names that conflict with Go standard library package names (revive)
package errors ^ 1 issues:
* revive: 1

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-22 22:44:48 -08:00
Ivan Valdes 94ca02160f build(deps): bump github.com/olekukonko/tablewriter from 1.1.1 to 1.1.2
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 1.1.1 to 1.1.2.
- [Commits](olekukonko/tablewriter@v1.1.1...v1.1.2)

---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
  dependency-version: 1.1.2
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Reference: https://github.com/etcd-io/etcd/pull/20986

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-22 22:44:40 -08:00
dependabot[bot] 8d5764c9ed build(deps): bump github/codeql-action from 4.31.8 to 4.31.9
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.8 to 4.31.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1b168cd39490f61582a9beae412bb7057a6b2c4e...5d4e8d1aca955e8d8589aabd499c5cae939e33c7)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-22 17:03:35 +00:00
Davanum Srinivas 386eb3023d test: fix robustness tests failing with undefined -bin-dir flag
The robustness CI jobs are failing with "flag provided but not defined:
-bin-dir" because the test path includes subpackages (./tests/robustness/...)
that don't register this flag.

PR 20962 changed the test invocation to use ./tests/robustness/... which
runs tests in all subpackages. The validate/ and model/ subpackages contain
unit tests that don't import framework/e2e (which registers -bin-dir), so
they fail when this flag is passed.

PR 21039 attempted to fix the issue but only changed the test runner
function, not the package path.

This change removes the /... suffix to only run tests in the main
robustness package, restoring the original behavior.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-21 16:08:06 -05:00
Jille Timmermans 24d2d3157c client: Use an atomic.Pointer instead of a mutex to guard the logger
The mutex just synchronizes against concurrent replacement of the
logger, an atomic is much cheaper for that.

The RWMutex was definitely overkill, given how short it was held for.

Signed-off-by: Jille Timmermans <jille@quis.cx>
2025-12-20 22:30:45 +01:00
Jille Timmermans 67a6ef4a3c client: Fix reading Client.lg without holding the mutex
WithLogger() might write to c.lg which would cause a data race

Signed-off-by: Jille Timmermans <jille@quis.cx>
2025-12-20 22:18:41 +01:00
Benjamin Wang 9cdb1cf8fb Add a new metrics etcd_server_request_duration_seconds to track e2e duration for each request
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-12-20 09:16:28 +00:00
Fu Wei 88feab3eec Merge pull request #21030 from tjungblu/www_lls 2025-12-19 13:00:45 -08:00
Benjamin Wang 7e385a1ad0 Merge pull request #21041 from ivanvc/changelog-3.6-x-crypto-0.45.0
Changelog: `golang.org/x/net` version bump to 0.45.0 entry
2025-12-19 20:21:32 +00:00
Ivan Valdes d33106e898 CHANGELOG(3.6): Add golang.org/x/crypto bump to v0.45.0 entry
Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-19 10:08:58 -08:00
Ivan Valdes e6b302581a CHANGELOG: Add blank entries for upcoming releases
Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-19 10:08:33 -08:00
Benjamin Wang c5db858bdb Merge pull request #20280 from seshachalam-yv/etcdctl-diagnosis
`etcdctl`: Migrate `etcd-diagnosis` as a new subcommand `diagnosis`
2025-12-19 14:39:26 +00:00
Thomas Jungblut 71a9ffe87e Instrument watchstream send loop
This PR adds a few more timing metrics to the watch send loop.
We're currently trying to track down some sort of contention affecting
all gRPC endpoints, we see a hard QPS ceiling when the apiserver restarts with
watch cache inits.

There's currently no metric to help us pinpoint where the time is going
to create such a ceiling, thus adding some more metrics here.

Somewhat related to #15402.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2025-12-19 15:16:11 +01:00
Yerasala Venkata, Seshachalam 8431a542b1 etcdctl: fix lint and build errors in diagnosis feature
- Fix markdown lint errors (MD024, MD004, MD007, MD012, MD022) in DIAGNOSIS section only
- Fix GCI import formatting in diagnosis plugins
- Fix 32-bit overflow by changing dbQuotaBytes from int to int64
- Remove unnecessary int64() conversion in epstatus plugin

Signed-off-by: Yerasala Venkata, Seshachalam <seshachalam.yerasala.venkata@sap.com>
2025-12-19 19:24:18 +05:30
Marek Siarkowicz c80e55ec97 Merge pull request #20796 from ronaldngounou/debug-performance-prow
Document how to debug performance of Prow jobs in etcd
2025-12-19 09:26:35 +01:00
Marek Siarkowicz 1cc2b2dd0e Merge pull request #21039 from ivanvc/fix-robustness-tests-execution
Fix robustness tests execution
2025-12-19 09:21:59 +01:00
Ivan Valdes 8fddf7d1fe Fix robustness tests execution
Remove running the tests for all the packages under ./tests/robustness.
Restore the old behavior of running only the tests from the top-level
robustness package.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-18 21:58:17 -08:00
Benjamin Wang 6536395288 Merge pull request #21034 from joshjms/update-changelog-3.4.40-3.5.26-3.6.7
Update CHANGELOG entries for releases v3.4.40, v3.5.26, and v3.6.7
2025-12-18 23:22:31 +00:00
Marek Siarkowicz 8287f7c7a6 Merge pull request #21016 from jihogh/add-member-id-etcdresponse
Add-member-id-etcdresponse
2025-12-18 09:43:34 +01:00
Marek Siarkowicz 605db2bb15 Merge pull request #21035 from ivanvc/fix-run-go-tests-expanding-packages
Fix run_go_tests_expanding_packages argument parsing
2025-12-18 09:32:29 +01:00
Yerasala Venkata, Seshachalam 5c0a838bca docs(etcdctl): document diagnosis subcommand and example report
Adds README section for `diagnose` command, flags, and output.

Fixes README link to the example.

Signed-off-by: Yerasala Venkata, Seshachalam <seshachalam.yerasala.venkata@sap.com>
2025-12-18 13:13:58 +05:30
Yerasala Venkata, Seshachalam b1ae123a73 etcdctl: add diagnosis subcommand with online checks and JSON output
Introduces `etcdctl diagnose` with plugin-based checks: endpoint status, membership, metrics, and read path.

Produces machine-readable JSON output.

Places engine and plugins under `etcdctl/ctlv3/command/diagnosis/...`.

Wires the subcommand into `ctlv3` CLI.

Signed-off-by: Yerasala Venkata, Seshachalam <seshachalam.yerasala.venkata@sap.com>
2025-12-18 13:13:58 +05:30
joshjms 4aec5babb1 update CHANGELOG entries for v3.4.40
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-12-18 09:58:28 +08:00
joshjms 36be9a9e55 update CHANGELOG entries for v3.5.26
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-12-18 09:58:28 +08:00
joshjms 9f17844015 update CHANGELOG entries for v3.6.7
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-12-18 09:58:18 +08:00
Ivan Valdes 5718233f0b Fix run_go_tests_expanding_packages argument parsing
Escape the regular expression, and ensure to capture go.etcd.io
packages, too. As defined in `run_go_tests`.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-12-17 16:30:55 -08:00
Jiho Lee 417e46d7eb model/robustness: add MemberID to EtcdResponse struct
Addresses issue #20932, Add MemberId to from response header to the model.EtcdResponse

Signed-off-by: Jiho Lee <52263235+jihogh@users.noreply.github.com>
2025-12-17 20:56:19 +00:00
Benjamin Wang 893aab08c6 Merge pull request #21019 from etcd-io/dependabot/github_actions/actions/upload-artifact-6.0.0
build(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0
2025-12-16 11:34:49 +00:00
Benjamin Wang aae1fced22 Merge pull request #21020 from etcd-io/dependabot/github_actions/antithesishq/antithesis-trigger-action-0.10
build(deps): bump antithesishq/antithesis-trigger-action from 0.9 to 0.10
2025-12-16 11:34:26 +00:00