Commit Graph

22602 Commits

Author SHA1 Message Date
0108677e86 dependency: bump github.com/spf13/pflag from 1.0.5 to 1.0.6
Reference:
- https://github.com/etcd-io/etcd/pull/19321

Signed-off-by: Chun-Hung Tseng <henrytseng@google.com>
2025-02-05 14:34:36 +00:00
b17b6fe726 Merge pull request #19335 from marcelfranca/issue/19333-main
Update golang toolchain to 1.23.6
2025-02-05 10:11:19 +00:00
85931e1d8b Merge pull request #19332 from mmorel-35/testifier/tests
chore: use testify instead of testing in tests/integration
2025-02-05 09:37:07 +00:00
7f8d40d568 bumping go to version 1.23.6
Signed-off-by: Marcel Franca <marcel@marcelfranca.com>
2025-02-04 19:15:39 -03:00
d62cdeee48 Merge pull request #19254 from serathius/align-defaults
Align NewConfig with AddFlags defaults
2025-02-04 20:35:18 +01:00
3842a5afc2 Merge pull request #19252 from henrybear327/e2e/downgrade_cancellation_partial
Add downgrade cancellation e2e tests
2025-02-04 19:27:43 +00:00
837285c34d Merge pull request #19331 from ivanvc/changelog-3.5-19280
CHANGELOG(3.5): Add entry for #19280
2025-02-04 19:25:56 +00:00
d1adc37597 chore: use testify instead of testing in tests/integration
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-02-04 20:22:56 +01:00
ade8edd8f6 Merge pull request #19329 from ahrtr/learner_log_20250204
Add learner id into log when being promoted
2025-02-04 18:47:02 +00:00
84b5c89b52 CHANGELOG(3.5): Add entry for https://github.com/etcd-io/etcd/pull/19280
Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-02-04 10:11:24 -08:00
4d1a20730c Complete partial downgraded cluster cancellation
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com>
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-02-04 17:31:43 +00:00
dfbdd8853c Add learner id into log when being promoted
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-02-04 13:10:42 +00:00
e13196b2a2 Merge pull request #19326 from redwrasse/redwrasse/redundant-continue-removematchfile
fileutil: removes redundant continue statement in RemoveMatchFile
2025-02-04 10:43:32 +00:00
2eca8972ca Merge pull request #19323 from etcd-io/dependabot/github_actions/github/codeql-action-3.28.8
build(deps): bump github/codeql-action from 3.28.5 to 3.28.8
2025-02-04 10:41:23 +00:00
cd7de9bada Merge pull request #19325 from gangli113/downgradetest
fix test.sh to download correct binary for mac os
2025-02-04 07:50:02 +00:00
cf258b83aa Squashed commit of the following:
commit 1897d8af05b3627ac4374f1d2fb285fb7af5199e
Author: Gang Li <gangligit@gmail.com>
Date:   Mon Feb 3 16:35:20 2025 -0800

    use uname -s to get os name

    Signed-off-by: Gang Li <gangligit@gmail.com>

commit 889dd974d5873b8c5e7ccd55732279146db1bcc3
Author: Gang Li <gangligit@gmail.com>
Date:   Mon Feb 3 11:34:13 2025 -0800

    download correct binary for mac os

    Signed-off-by: Gang Li <gangligit@gmail.com>

Signed-off-by: Gang Li <gangligit@gmail.com>
2025-02-03 16:51:09 -08:00
0f97c9712c fileutil: removes redundant continue statement in RemoveMatchFile
Signed-off-by: redwrasse <mail@redwrasse.io>
2025-02-03 13:30:37 -08:00
3cc3dafded Merge pull request #19282 from jmao-dd/jmao/19061-migrate-mlock3
migrate experimental-memory-mlock flag to memory-mlock
2025-02-03 18:13:18 +00:00
9c078bbdfc build(deps): bump github/codeql-action from 3.28.5 to 3.28.8
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.5 to 3.28.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f6091c0113...dd746615b3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 17:39:35 +00:00
f6713f8466 Merge pull request #19315 from mmorel-35/testifier/pkg
fix: use testify instead of t.Fatal or t.Error in pkg package
2025-02-03 15:25:58 +00:00
d4173b280d Merge pull request #18971 from mmorel-35/testifier/server
fix: use testify instead of t.Fatal or t.Error in server package (part 1)
2025-02-03 14:54:11 +00:00
e6e4edd14b Merge pull request #18820 from mmorel-35/tests/integration/testifier/require-error
fix: use require instead of t.Fatal(err) in tests/integration package
2025-02-03 14:45:23 +00:00
2abdba6f81 Merge pull request #18860 from mmorel-35/testifier/tests/common
fix: use testify instead of t.Fatal in tests/common package (part 2)
2025-02-03 14:32:44 +00:00
2bddcd4801 Merge pull request #19317 from siyuanfoundation/downgrade-robust-1
Remove some HealthInterval to reduce the time to run DowngradeUpgradeMembers
2025-02-03 10:22:08 +01:00
de82ea2036 Merge pull request #19319 from fuweid/fix-19292
*: introduce (*Op) Limit() interface for robustness
2025-02-03 10:21:11 +01:00
136dfbe5b5 *: introduce (*Op) Limit() interface for robustness
Since #19137, kubernetes traffic profile is unable to send List request
with page size, because limit in option is not accessable. To fix it,
this fix is to introduce Limit() interface.

Fixes: #19292

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2025-02-02 22:16:22 -05:00
6b0a9cd763 Remove some HealthInterval to reduce the time to run DowngradeUpgradeMembers.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-02-02 14:54:29 -08:00
cad3fce1a0 fix: use testify instead of t.Fatal or t.Error in pkg package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-02-02 16:30:18 +01:00
0795f6b957 migrate experimental-memory-mlock flag to memory-mlock
Signed-off-by: Jiayin Mao <jiayin.mao@datadoghq.com>
2025-02-01 22:57:54 +00:00
b197332b13 Merge pull request #19313 from fuweid/deflaky-TestSnapshotStatus
deflaky: TestSnapshotStatus
2025-01-31 21:14:58 +00:00
12bbee7c1c deflaky: TestSnapshotStatus
Root Cause

The backend commits pending changes into boltdb per 100 ms by default.
When brand-new member starts, that member will save member into
backend by `MustSaveMemberToBackend`. However, it doesn't force change
into boltdb. It depends on backend's auto-commit per 100ms.

If auto-commit happens after `UpdateStorageVersion`, the `UpdateStorageVersion`
will fail on `missing confstate information`. The confstate information
is handled by commit-prehook. Once `UpdateStorageVersion` fails,
`TestSnapshotStatus` won't have another chance to do that because that
server has been closed. So without storage version information, hash of boltdb
data is not expected.

How to reproduce it?

```diff
diff --git a/etcdutl/snapshot/v3_snapshot_test.go b/etcdutl/snapshot/v3_snapshot_test.go
index c2b3d5202..cd88ff995 100644
--- a/etcdutl/snapshot/v3_snapshot_test.go
+++ b/etcdutl/snapshot/v3_snapshot_test.go
@@ -141,6 +141,7 @@ func createDB(t *testing.T, generateContent func(*etcdserver.EtcdServer)) string
        t.Helper()

        cfg := embed.NewConfig()
+       cfg.BackendBatchInterval = 5 * time.Second
        cfg.LogLevel = "fatal"
        cfg.Dir = t.TempDir()
```

```bash
➜  snapshot git:(deflaky-TestSnapshotStatus) ✗ go test -v -run "^TestSnapshotStatus$" -count 1 ./
=== RUN   TestSnapshotStatus
    v3_snapshot_test.go:47:
                Error Trace:    /home/weifu/workspace/etcd/etcdutl/snapshot/v3_snapshot_test.go:47
                Error:          Not equal:
                                expected: 0x62132b4d
                                actual  : 0x6bf96324
                Test:           TestSnapshotStatus
--- FAIL: TestSnapshotStatus (0.14s)
FAIL
FAIL    go.etcd.io/etcd/etcdutl/v3/snapshot     0.154s
FAIL
```

How to fix?

Change `BackendBatchLimit` to `1` so that we can force-commit during
`MustSaveMemberToBackend`.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2025-01-31 15:06:14 -05:00
d52bceb2f1 Merge pull request #19192 from wodeyoulai/main
Correct compaction period comments
2025-01-31 18:45:31 +00:00
05f700fa77 Merge pull request #19305 from ivanvc/test-prow-job
scripts/test_images.sh: refactor to import job into the prow infrastructure
2025-01-31 17:56:30 +00:00
497d9b5f0e Merge pull request #19311 from ahrtr/changelog_grpc_prom_20250131
Update 3.6 changelog to cover the go-grpc-middleware/providers/promet…
2025-01-31 17:55:29 +00:00
83ff4fff1f Merge pull request #19195 from dims/switch-from-grpc-ecosystem/go-grpc-prometheus-to-grpc-ecosystem/go-grpc-middleware/providers/prometheus-take-2
Switch from grpc-ecosystem/go-grpc-prometheus to grpc-ecosystem/go-grpc-middleware/providers/prometheus
2025-01-31 17:55:18 +00:00
49c22492ee Update 3.6 changelog to cover the go-grpc-middleware/providers/prometheus change
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-31 15:04:51 +00:00
6d8c6af06a Update the import items
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-31 14:40:32 +00:00
1f33bafd01 Remove the integration test case TestAllMetricsGenerated
Refer to https://github.com/etcd-io/etcd/pull/19195#issuecomment-2627486682

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-31 14:31:27 +00:00
3648220e22 incorporate feedback from review
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-31 06:44:29 -05:00
1216d08769 Merge pull request #19297 from jmhbnz/main
Mark etcd-local-tester as deprecated so we can remove it in future
2025-01-31 10:37:58 +00:00
51820dfd3f Merge pull request #19310 from ivanvc/fix-goword-errors
Fix goword errors
2025-01-31 07:46:22 +00:00
df6ecb2b23 Merge pull request #19300 from sebastiangaiser/main
fix(alerts): set severity of 'ectdMembersDown' from 'critical' to 'wa…
2025-01-31 07:44:26 +00:00
c136d5a73c Fix goword errors
For some reason, the goword check has been passing while the file
`tests/integration/embed/embed_proxy_test.go` has an error in the godoc.
Update it so it doesn't show the error anymore.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-01-30 22:41:07 -08:00
91c07650ec fix: use require instead of t.Fatal(err) in tests/integration package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-01-30 22:30:51 +00:00
0ac24a804d Refactor scripts/test_images.sh
* Wrap script in functions, add a main function, and call them from it.
* Make environment variables local inside the function scope to avoid
  unexpected behaviors by the running environment-supplied variables.
* Fix the typo in the "REPOSITORY" environment variable.
* Rename the input "IMAGE" to "TEST_IMAGE" to avoid clashing with the
  environment variable from the Prow infrastructure.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-01-30 13:24:51 -08:00
488f21564f Merge pull request #19308 from ahrtr/http_20250130
[test] Close the http response body
2025-01-30 15:00:31 +00:00
73700e30c4 Close the http response body
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-01-30 14:05:44 +00:00
c3e4df6de1 Switch from grpc-ecosystem/go-grpc-prometheus to grpc-ecosystem/go-grpc-middleware/providers/prometheus
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-30 08:43:53 -05:00
575b484ba0 fix(alerts): set severity of 'ectdMembersDown' from 'critical' to 'warning'
Downgraded severity of 'etcdMembersDown' from 'critical' to 'warning' as a single etcd member being not available should not be a problem for etcd's quorum. If the quorum would not be fulfilled, 'etcdInsufficientMembers' should fire. In addition the 'for' interval was extended from '10m' to '20m' as e.g. a node reboot with a big physical node takes usually longer than 10 minutes.

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
2025-01-30 09:51:19 +00:00
f5973c9c27 Merge pull request #19302 from ahrtr/metrics_20250129
Add e2e metrics test case to ensure no any metrics missing in future PRs
2025-01-30 09:13:39 +00:00