Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.5 dd v3.5.14 dd.1 #2

Closed
wants to merge 196 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
620a623
remove stack log when etcdutl restore
kkkkun Jun 13, 2023
19a6ec1
etcd: upgrade go version to 1.20.9
0scvr Oct 9, 2023
c8286f4
Merge pull request #16730 from 0scvr/0scvr/upgrade-r3.5-go-1.20.9
ahrtr Oct 10, 2023
24ee8e4
bump golang.org/x/net to 0.17.0
dusk125 Oct 11, 2023
b916aff
Bump go to v1.20.10
dusk125 Oct 11, 2023
246f2a8
Merge pull request #16745 from dusk125/gobump-3.5
ahrtr Oct 11, 2023
c669e0c
Merge pull request #16743 from dusk125/3.5-http2
serathius Oct 12, 2023
404eeaa
Return to default write scheduler since golang.org/x/[email protected] star…
serathius Oct 10, 2023
9776cec
Merge pull request #16750 from serathius/roundrobin-3.5
serathius Oct 12, 2023
db16069
backport #14125 to release-3.5: Update to grpc-1.47 (and fix the conn…
chaochn47 Sep 20, 2023
3921831
Merge pull request #16625 from chaochn47/release-3.5-backport-gRPC-go…
wenjiaswe Oct 16, 2023
6f4fa5a
[release-3.5]: upgrade gRPC-go to v1.52.0
chaochn47 Oct 17, 2023
976378c
Merge pull request #16781 from chaochn47/release-3.5-backport-gRPC-up…
serathius Oct 17, 2023
04cfb4c
etcdserver: add cluster id check for hashKVHandler
CaojiamingAlan May 18, 2023
4cf9ef8
Merge pull request #16070 from kkkkun/rm-stack-log
serathius Oct 17, 2023
5b8150a
Backport corrupt check test fix "etcd server shouldn't wait for the r…
serathius Oct 2, 2023
1aa4aa8
3.5: upgrade gRPC-go to 1.58.3
chaochn47 Oct 17, 2023
31b7c58
Merge pull request #16637 from serathius/check-cluster-id-release-3.5
serathius Oct 17, 2023
3521aaa
Merge pull request #16790 from chaochn47/3.5-grpc-update
ahrtr Oct 19, 2023
88beb6c
bump bbolt to 1.3.8 for etcd 3.5
ahrtr Oct 26, 2023
aa04f5d
Merge pull request #16833 from ahrtr/bump_bbolt_1.3.8_20231026
serathius Oct 27, 2023
0223ca5
version: bump up to 3.5.10
serathius Oct 27, 2023
e1aa1b9
etcd: upgrade go version from 1.20.10 to 1.20.11
arjunmalhotra1 Nov 12, 2023
a0cb92e
Merge pull request #16915 from arjunmalhotra1/release-3.5
ahrtr Nov 13, 2023
f9f38bc
github workflow: run arm64 tests on every push
ivanvc Nov 12, 2023
f26074a
CVE-2023-47108: Backport go.opentelemetry.io/[email protected] and go.open…
Nov 15, 2023
7f7b915
upgrade github.com/stretchr/testify,google.golang.org/genproto/google…
Nov 15, 2023
a733d92
Merge pull request #16946 from sharathsivakumar/release-3.5
ahrtr Nov 16, 2023
0b46d43
Merge pull request #16921 from ivanvc/enable-arm64-builds-for-every-p…
ahrtr Nov 20, 2023
3a54851
Backport server: Add sampling rate to distributed tracing.
jmhbnz Nov 16, 2023
5a564d5
Backport server: Have tracingExporter own resources it initialises.
jmhbnz Nov 25, 2023
f952197
Backport embed: Add tracing integration test.
jmhbnz Nov 25, 2023
0e64a6d
Merge pull request #16951 from jmhbnz/fix-distributed-tracing
serathius Nov 26, 2023
9e21048
Backport server: Don't follow redirects when checking peer urls.
jmhbnz Nov 27, 2023
c6784a7
server: Use named struct initialization in healthcheck test
serathius Jan 27, 2022
2f6c84e
server: Rename test case expect fields
serathius Jan 27, 2022
eed94f6
server: Run health check tests in subtests
serathius Jan 27, 2022
9db8ddb
server: Refactor health checks
serathius Jan 27, 2022
8ab1c0f
server: Cover V3 health with tests
serathius Jan 27, 2022
46e3942
server: Split metrics and health code
serathius Jan 27, 2022
d4e8610
Merge pull request #17000 from siyuanfoundation/livez-bp-3.5-step1
serathius Nov 27, 2023
2b54660
http health check bug fixes
chaochn47 Oct 6, 2023
f5d7f99
etcdserver: add livez and ready http endpoints for etcd.
siyuanfoundation Sep 25, 2023
293fc21
etcdserver: add metric counters for livez/readyz health checks.
siyuanfoundation Oct 16, 2023
ce4ae2b
Merge pull request #17024 from jmhbnz/backport-ssrf-fix
serathius Nov 28, 2023
98aa466
server: disable redirects in peer communication
ivanvc Dec 5, 2023
7df2e90
Merge pull request #17070 from ivanvc/release-3.5-backport-ssrf
ahrtr Dec 6, 2023
795dced
tests: Extract e2e cluster setup to separate package
serathius Oct 8, 2021
13bafdf
etcd: Update go version to 1.20.12
jonasrdl Dec 6, 2023
ebb7e79
etcdserver: add linearizable_read check to readyz.
siyuanfoundation Nov 20, 2023
33cf21c
Merge pull request #17077 from jonasrdl/release-3.5-update-to-go-1.20.12
ahrtr Dec 6, 2023
6f125ce
Merge pull request #17039 from siyuanfoundation/release-3.5-step2
serathius Dec 7, 2023
3b252db
version: bump up to 3.5.11
serathius Dec 7, 2023
fa0eb07
Merge pull request #17075 from siyuanfoundation/3.5-e2e-fw
serathius Dec 7, 2023
b8d5e79
[3.5] backport health check e2e tests.
siyuanfoundation Dec 6, 2023
cb65c1f
test: enable gofail in release e2e test.
siyuanfoundation Dec 9, 2023
39330e3
Merge pull request #17083 from siyuanfoundation/livez-bp-step3
serathius Dec 12, 2023
a2e9dc8
Don't redeclare err and snapshot variable, fixing validation of consi…
serathius Dec 20, 2023
d6d263a
Check if be is nil to avoid panic when be is overriden with nil by re…
serathius Dec 20, 2023
ae3b43a
Merge pull request #17151 from serathius/fix-bootstrap
serathius Dec 20, 2023
bd587c0
member replace e2e test
ZhouJianMS Dec 29, 2023
b075426
Backport testutils.ExecuteUntil to 3.5 branch
amit-rastogi Dec 31, 2023
f87048a
Add missing flag in etcd help.
ishan16696 Jan 2, 2024
d0ebcb5
Merge pull request #17190 from ishan16696/add/missing-flag
serathius Jan 3, 2024
af1fb6f
Merge pull request #17177 from amit-rastogi/release-3.5
ahrtr Jan 3, 2024
0ac8e50
Add a unit tests and missing flags in etcd help.
ishan16696 Jan 5, 2024
8d88e43
Merge pull request #17201 from ishan16696/backport-PR16465
ahrtr Jan 5, 2024
5f571ba
Backport adding digest for etcd base image.
jmhbnz Jan 8, 2024
f3a27b3
Don't flock snapshot files
serathius Jan 4, 2024
5777a37
Merge pull request #17206 from serathius/dont-flock-3.5
serathius Jan 8, 2024
fe32cf9
Merge pull request #17205 from jmhbnz/backport-reproducible-image-builds
ahrtr Jan 9, 2024
880004c
Merge pull request #17123 from ZhouJianMS/member-place-3.5
ahrtr Jan 11, 2024
f219ab4
add tests to test tx delete consistency.
siyuanfoundation Jan 11, 2024
2d531a3
commit bbolt transaction if there is any pending deleting operations
siyuanfoundation Jan 11, 2024
0c302d4
Merge pull request #17230 from siyuanfoundation/txBuf-3.5
ahrtr Jan 12, 2024
02d5599
dependency: update go version to 1.20.13
ivanvc Jan 18, 2024
0ed58e9
Merge pull request #17275 from ivanvc/3.5-update-golang-to-1.20.13
ahrtr Jan 19, 2024
2c3b614
mvcc: Printing etcd backend database related metrics inside scheduleC…
rahulbapumore Jan 22, 2024
c7bcb5f
Merge pull request #17291 from rahulbapumore/backport-feature
ahrtr Jan 23, 2024
926d022
print error log when creating peer listener failed
ahrtr Jan 24, 2024
a0ff8e4
Merge pull request #17315 from ahrtr/3.5_configure_peer_log_20240124
ahrtr Jan 25, 2024
0f494e0
test: fix TestHashKVWhenCompacting: ensure all goroutine finished
ahrtr Jan 25, 2024
141232e
Merge pull request #17320 from ahrtr/3.5_TestHashKVWhenCompacting_202…
ahrtr Jan 25, 2024
8599d48
Bump golang.org/x/crypto to v0.17+ to address CVE-2023-48795
serathius Jan 30, 2024
378a196
Merge pull request #17346 from serathius/crypto-3.5
serathius Jan 31, 2024
e7b3bb6
version: bump up to 3.5.12
serathius Jan 31, 2024
3d64877
[3.5] Update to go1.21
dusk125 Feb 1, 2024
a13f676
[3.5] backport: add backoff to client config
dusk125 Jan 17, 2024
3c8e389
Merge pull request #17363 from dusk125/3.5-backport-retry-config
ahrtr Feb 5, 2024
588023c
Merge pull request #17362 from dusk125/3.5-to-go1.21
ahrtr Feb 5, 2024
26bae5e
tests/e2e: move etcdctl to framework/e2e
ivanvc Feb 5, 2024
a965801
etcdserver: drain leaky goroutines before test completed
fuweid Feb 6, 2024
76e7fe7
Merge pull request #17382 from fuweid/backport-17365-to-35
ahrtr Feb 6, 2024
62a4bb3
etcd: Add OpenBSD-specific files for SetKeepAlivePeriod handling
tangruize May 3, 2023
c37d33c
tests/e2e: implement EtcdProcess Etcdctl
ivanvc Feb 6, 2024
8b24932
tests/e2e: implement EtcdProcessCluster WaitLeader
ivanvc Feb 6, 2024
c2b458c
Merge pull request #17387 from Elbehery/backport_35_SetKeepAlivePerio…
ahrtr Feb 7, 2024
07c4dcb
tests/e2e: use WaitLeader in corrupt test
ivanvc Feb 8, 2024
b2aa3a1
Merge pull request #17381 from ivanvc/3.5-backport-wait-leader
serathius Feb 8, 2024
ae7d493
Merge pull request #17396 from ivanvc/3.5-use-wait-leader-in-corrupt-…
ahrtr Feb 9, 2024
e179686
Make CGO_ENABLED configurable for etcd 3.5
Feb 13, 2024
1115eb1
tests/e2e: implement EtcdProcess GoFailClientTimeout
ivanvc Feb 13, 2024
3b99fee
Merge pull request #17421 from ArkaSaha30/configure_cgo_3.5
ahrtr Feb 14, 2024
b795a8f
Merge pull request #17427 from ivanvc/release-3.5-implement-etcd-proc…
ahrtr Feb 15, 2024
b9b4f1b
server: fix comment to match function name
vivekpatani Feb 16, 2024
f4633c8
*: fix failing shellchecks
vivekpatani Feb 16, 2024
c6e9488
Merge pull request #17433 from vivekpatani/fix-goword
ahrtr Feb 16, 2024
ae64528
Merge pull request #17434 from vivekpatani/fix-shellcheck
ahrtr Feb 16, 2024
7ebbc0f
tools/mod: go mod tidy
vivekpatani Feb 16, 2024
16963f1
Merge pull request #17439 from vivekpatani/fix-tools-mod
ahrtr Feb 17, 2024
9635525
*: add test-smoke to the pipeline and update test-smoke
vivekpatani Feb 16, 2024
c486b58
tests/e2e: backport e2e cluster setup
ivanvc Feb 17, 2024
4a90575
Backport ignore old leader's leases revoking request
ivanvc Feb 18, 2024
31f097e
added dial-keepalive-time、dial-keepalive-timeout、permit-without-strea…
Feb 18, 2024
c213177
Merge pull request #17435 from vivekpatani/fix-fmt-job
ahrtr Feb 18, 2024
9ffba74
Merge pull request #17425 from ivanvc/release-3.5-backport-ignore-old…
ahrtr Feb 18, 2024
1a9062e
pkg/types: Support Unix sockets in NewURLS
Nov 12, 2020
80e2064
Add unix socket test to TestNewURLsValue
Dec 23, 2020
a1aaa51
add uds test cases into e2e TestAuthority
chaochn47 Jun 8, 2023
9b9c049
Merge pull request #17447 from halleyshx/add-keepalive-clientParams-t…
ahrtr Feb 20, 2024
5cc7239
Merge pull request #15940 from HubertZhang/backport-12469-3.5
ahrtr Feb 20, 2024
f1d1029
dependency: bump github.com/sirupsen/logrus to v1.9.3
vivekpatani Feb 24, 2024
f9b7cce
Merge pull request #17482 from vivekpatani/fix-logrus
ahrtr Feb 24, 2024
d76d847
Bump bbolt to 1.3.9 for 3.5
ahrtr Feb 24, 2024
2b4ad26
Merge pull request #17483 from ahrtr/3.5_bump_bbolt_1.3.9
ahrtr Feb 26, 2024
722e5cb
Update go version to 1.21.8
liangyuanpeng Mar 6, 2024
72a7e28
Merge pull request #17537 from liangyuanpeng/3.5_go_1.21.8
ahrtr Mar 6, 2024
e6d95c8
dependency: bump google.golang.org/protobuf to v1.33.0
ivanvc Mar 8, 2024
65c10bc
Merge pull request #17553 from ivanvc/release-3.5-bump-google-protobu…
ahrtr Mar 8, 2024
67afad6
Add govuln GitHub workflow
ivanvc Mar 7, 2024
d0a0281
Merge pull request #17550 from ivanvc/release-3.5-add-govuln-github-w…
ahrtr Mar 8, 2024
579b22c
Fix progress notification for watch that doesn't get any events
serathius Mar 8, 2024
8383107
Merge pull request #17566 from serathius/progressrequest-new-watch-3.5
serathius Mar 12, 2024
46d2caa
[release-3.5] backport fix watch event loss after compaction
chaochn47 Mar 19, 2024
2ee038d
Merge pull request #17612 from chaochn47/release-3.5-backport-fix-wat…
ahrtr Mar 19, 2024
59e3f7d
build(deps): bump distroless/static-debian11 from `9be3fcc` to `7e5c6a2`
dependabot[bot] Mar 21, 2024
38f3eb3
Merge pull request #17625 from etcd-io/dependabot/docker/release-3.5/…
ahrtr Mar 21, 2024
c9063a0
version: bump up to 3.5.13
jmhbnz Mar 29, 2024
0c2f208
Fix retry requests when receiving ErrGPRCNotSupportedForLearner
ptabor May 17, 2021
d1eb35d
build(deps): bump distroless/static-debian11 from `7e5c6a2` to `046b92c`
dependabot[bot] Apr 1, 2024
cbd0aed
Merge pull request #17689 from etcd-io/dependabot/docker/release-3.5/…
jmhbnz Apr 1, 2024
107412f
Backport update for release script to use ssh.
jmhbnz Apr 2, 2024
1868848
Backport rename of release script to release.sh.
jmhbnz Apr 2, 2024
953a023
Backport updates to shellcheck ignores for release.sh script.
jmhbnz Apr 2, 2024
61a85b7
Backport initialization of mu in NewCtxClient to release-3.5
henrybear327 Apr 3, 2024
130cfe9
Merge pull request #17699 from henrybear327/backport-3.5/add-initiali…
ahrtr Apr 4, 2024
f5092bc
Merge pull request #17641 from sheyt0/v3.5.13
ahrtr Apr 4, 2024
5776e21
Bump go-version to 1.21.9 for release-3.5 due to CVE-2023-45288
henrybear327 Apr 4, 2024
600b6bf
Bump golang.org/x/net to v0.23.0
henrybear327 Apr 4, 2024
01851da
Merge pull request #17708 from henrybear327/cve/3.5-bump-go-1.21.9
ahrtr Apr 4, 2024
b78b214
.github: enable failpoints for integration tests
fuweid Apr 4, 2024
94a1d0c
*: LeaseTimeToLive returns error if leader changed
fuweid Apr 4, 2024
1404f5a
[3.5]Add trivy scan as a job in release workflow
ArkaSaha30 Apr 4, 2024
86d9874
Merge pull request #17704 from fuweid/35-cp-17462
ahrtr Apr 5, 2024
7f18f30
Merge pull request #17716 from ArkaSaha30/trivy-scan-head-3.5
ahrtr Apr 6, 2024
b6df59c
Add approvals gh workflows.
liangyuanpeng Mar 20, 2024
51f3134
feat: observe wal write at one time
Mar 19, 2024
4ffa5c5
Merge pull request #17619 from liangyuanpeng/approve_ghaction_3.5
serathius Apr 7, 2024
b671991
Merge pull request #17616 from Akiqqqqqqq/feature-wal-write-metrics
ahrtr Apr 8, 2024
10e469e
Merge pull request #17732 from jmhbnz/fix-release-script
ahrtr Apr 8, 2024
c06ec72
test: add mix version e2e test.
siyuanfoundation Feb 7, 2024
dad2bab
Merge pull request #17531 from siyuanfoundation/3.5-downgrade-test
serathius Apr 10, 2024
464df4a
add experimental-snapshot-catchup-entries flag.
siyuanfoundation Apr 15, 2024
9331ee3
[backport-3.5] server: ignore raft messages if member id mismatch #17078
henrybear327 Apr 17, 2024
692c2d2
Merge pull request #17813 from henrybear327/backport-3.5/ignore-raft-…
ahrtr Apr 18, 2024
c391d69
test: add checking snapshot be sent in mix_version_test.
siyuanfoundation Apr 15, 2024
91e9dd3
Merge pull request #17808 from siyuanfoundation/3.5-downgrade-test
serathius Apr 19, 2024
adf1c3f
Update the compaction log when bootstrap and update compact's signature
ahrtr Apr 21, 2024
6dce9b2
Merge pull request #17830 from ahrtr/3.5_update_compact_log_bootstrap…
ahrtr Apr 23, 2024
6b03446
server/mvcc: introduce compactBeforeSetFinishedCompact failpoint
fuweid Apr 24, 2024
7beff57
tests/e2e: reproduce #17780
fuweid Apr 17, 2024
c06b17b
server/storage: update currentRev if scheduledCompact > currentRev
fuweid Apr 18, 2024
0af22ab
server/mvcc: should update currentRev in revMu
fuweid Apr 24, 2024
a7a8fb8
Merge pull request #17865 from fuweid/backport-17815-35
ahrtr Apr 24, 2024
daec41c
e2e: add mix version test of adding last ver to current ver.
siyuanfoundation Apr 26, 2024
31a87cf
Merge pull request #17888 from siyuanfoundation/3.5-downgrade-test
serathius Apr 30, 2024
750bc0b
gRPC health server sets serving status to NOT_SERVING on defrag
tjungblu Apr 30, 2024
22ca615
build(deps): bump distroless/static-debian11 from `046b92c` to `6d31326`
dependabot[bot] May 1, 2024
2c7f6d6
Merge pull request #17920 from etcd-io/dependabot/docker/release-3.5/…
jmhbnz May 2, 2024
cee181d
v3rpc: run health notifier to listen on online defrag state change
tjungblu May 6, 2024
a5eec4d
Bump bbolt to 1.3.10 for 3.5
tjungblu May 6, 2024
a5cf841
Merge pull request #17943 from tjungblu/bboltbump_1.3.10
ahrtr May 6, 2024
99a6434
Add cluster downgrade test.
siyuanfoundation May 3, 2024
f2cbef2
Merge pull request #17931 from siyuanfoundation/3.5-downgrade-test
ahrtr May 6, 2024
0f0af63
Merge pull request #17914 from tjungblu/backport_35_grpc_defragserv
serathius May 7, 2024
6abc349
server: Implement WithMmapSize option for backend config
ivanvc May 10, 2024
9e1dadd
etcdutl: Fix snapshot restore memory alloc issue
ivanvc May 10, 2024
8f6d2dc
Merge pull request #17977 from ivanvc/release-3.5-backport-etcdutl-me…
serathius May 10, 2024
f715ffd
update the go v1.21.10
lavishpal May 10, 2024
297130d
Merge pull request #17980 from lavishpal/upgrade/go-to-1.21.10
ahrtr May 10, 2024
4740315
.*: sync go toolchain version and add ability to verify versions
MadhavJivrajani May 15, 2024
3c990bc
scripts: default to using .go-version's version for tests and builds
MadhavJivrajani May 15, 2024
3afe949
Merge pull request #18017 from MadhavJivrajani/go-version-setup-35
ahrtr May 16, 2024
8bc3271
config: support AllowedCN and AllowedHostname through config file
clwluvw Apr 23, 2024
47c5fb8
Merge pull request #18063 from ArkaSaha30/backport-config-support
ahrtr May 23, 2024
bf51a53
version: bump up to 3.5.14
jmhbnz May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
echo "${TARGET}"
case "${TARGET}" in
linux-amd64-e2e)
CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' make test-e2e-release
make install-gofail
CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' FAILPOINTS='true' make test-e2e-release
;;
linux-386-e2e)
GOARCH=386 CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' make test-e2e
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/gh-workflow-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Approve GitHub Workflows

on:
pull_request_target:
types:
- labeled
- synchronize

jobs:
approve:
name: Approve ok-to-test
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test')
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Update PR
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
debug: ${{ secrets.ACTIONS_RUNNER_DEBUG == 'true' }}
script: |
const result = await github.rest.actions.listWorkflowRunsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
event: "pull_request",
status: "action_required",
head_sha: context.payload.pull_request.head.sha,
per_page: 100
});

for (var run of result.data.workflow_runs) {
await github.rest.actions.approveWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: run.id
});
}
19 changes: 19 additions & 0 deletions .github/workflows/govuln.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Go Vulnerability Checker
on: [push, pull_request]
permissions: read-all
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: date
- run: |
set -euo pipefail

go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...
42 changes: 40 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- name: release
Expand All @@ -30,3 +30,41 @@ jobs:
- name: test-image
run: |
VERSION=3.5.99 ./scripts/test_images.sh
- name: save-image
run: |
docker image save -o /tmp/etcd-img.tar gcr.io/etcd-development/etcd
- name: upload-image
uses: actions/upload-artifact@v3
with:
name: etcd-img
path: /tmp/etcd-img.tar
retention-days: 1
trivy-scan:
needs: main
strategy:
fail-fast: false
matrix:
platforms: [amd64, arm64, ppc64le, s390x]
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
runs-on: ubuntu-latest
steps:
- name: get-image
uses: actions/download-artifact@v3
with:
name: etcd-img
path: /tmp
- name: load-image
run: |
docker load < /tmp/etcd-img.tar
- name: trivy-scan
uses: aquasecurity/trivy-action@d710430a6722f083d3b36b8339ff66b32f22ee55 # v0.19.0
with:
image-ref: 'gcr.io/etcd-development/etcd:v3.5.99-${{ matrix.platforms }}'
severity: 'CRITICAL,HIGH'
format: 'sarif'
output: 'trivy-results-${{ matrix.platforms }}.sarif'
- name: upload scan results
uses: github/codeql-action/upload-sarif@956f09c2ef1926b580554b9014cfb8a51abf89dd # v2.16.6
with:
sarif_file: 'trivy-results-${{ matrix.platforms }}.sarif'
32 changes: 32 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Static Analysis
on: [push, pull_request]
permissions: read-all
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: |
set -euo pipefail

make verify
- run: |
set -euo pipefail

make fix

DIFF=$(git status --porcelain)

if [ -n "$DIFF" ]; then
echo "These files were modified:"
echo
echo "$DIFF"
echo
exit 1
fi
76 changes: 76 additions & 0 deletions .github/workflows/tests-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: Reusable Tests Workflow
on:
workflow_call:
inputs:
arch:
required: true
type: string
runs-on:
required: true
type: string
targets:
required: false
type: string

jobs:
test:
runs-on: ${{ inputs.runs-on }}
# this is to prevent arm64 jobs from running at forked projects
if: inputs.arch == 'amd64' || github.repository == 'etcd-io/etcd'
strategy:
fail-fast: false
matrix:
target: ${{ fromJSON(inputs.targets) }}
steps:
- uses: actions/checkout@v2
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: date
- env:
TARGET: ${{ matrix.target }}
run: |
set -euo pipefail

echo "${TARGET}"
case "${TARGET}" in
linux-test-smoke)
GOARCH=${{ inputs.arch }} CPU=4 RACE='false' make test-smoke
;;
linux-integration-1-cpu)
make install-gofail
GOARCH=${{ inputs.arch }} CPU=1 RACE='false' FAILPOINTS='true' make test-integration
;;
linux-integration-2-cpu)
make install-gofail
GOARCH=${{ inputs.arch }} CPU=2 RACE='false' FAILPOINTS='true' make test-integration
;;
linux-integration-4-cpu)
make install-gofail
GOARCH=${{ inputs.arch }} CPU=4 RACE='false' FAILPOINTS='true' make test-integration
;;
linux-unit-4-cpu-race)
GOARCH=${{ inputs.arch }} RACE='true' CPU='4' GO_TEST_FLAGS='-p=2' make test-unit
;;
linux-386-unit-1-cpu)
GOOS=linux GOARCH=386 CPU=1 GO_TEST_FLAGS='-p=4' make test-unit
;;
all-build)
GOARCH=amd64 PASSES='build' ./test.sh
GOARCH=386 PASSES='build' ./test.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=amd64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=arm64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=windows GOARCH=amd64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=ppc64le ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=s390x ./build.sh
;;
*)
echo "Failed to find target"
exit 1
;;
esac
84 changes: 22 additions & 62 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,65 +1,25 @@
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- linux-amd64-fmt
- linux-amd64-integration-1-cpu
- linux-amd64-integration-2-cpu
- linux-amd64-integration-4-cpu
- linux-amd64-unit-4-cpu-race
- all-build
- linux-386-unit-1-cpu
steps:
- uses: actions/checkout@v2
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: date
- env:
TARGET: ${{ matrix.target }}
run: |
set -euo pipefail

echo "${TARGET}"
case "${TARGET}" in
linux-amd64-fmt)
GOARCH=amd64 PASSES='fmt bom dep' ./test.sh
;;
linux-amd64-integration-1-cpu)
GOARCH=amd64 CPU=1 RACE='false' make test-integration
;;
linux-amd64-integration-2-cpu)
GOARCH=amd64 CPU=2 RACE='false' make test-integration
;;
linux-amd64-integration-4-cpu)
GOARCH=amd64 CPU=4 RACE='false' make test-integration
;;
linux-amd64-unit-4-cpu-race)
GOARCH=amd64 RACE='true' CPU='4' GO_TEST_FLAGS='-p=2' make test-unit
;;
all-build)
GOARCH=amd64 PASSES='build' ./test.sh
GOARCH=386 PASSES='build' ./test.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=amd64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=arm64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=windows GOARCH=amd64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm64 ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=ppc64le ./build.sh
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=s390x ./build.sh
;;
linux-386-unit-1-cpu)
GOARCH=386 RACE='false' CPU='1' GO_TEST_FLAGS='-p=4' make test-unit
;;
*)
echo "Failed to find target"
exit 1
;;
esac
amd64:
uses: ./.github/workflows/tests-template.yaml
with:
arch: amd64
runs-on: ubuntu-latest
targets: "['linux-test-smoke',
'linux-integration-1-cpu',
'linux-integration-2-cpu',
'linux-integration-4-cpu',
'linux-unit-4-cpu-race',
'linux-386-unit-1-cpu',
'all-build']"
arm64:
uses: ./.github/workflows/tests-template.yaml
with:
arch: arm64
runs-on: actuated-arm64-8cpu-32gb
targets: "['linux-test-smoke',
'linux-integration-1-cpu',
'linux-integration-2-cpu',
'linux-integration-4-cpu',
'linux-unit-4-cpu-race']"
37 changes: 0 additions & 37 deletions .github/workflows/trivy-nightly-scan.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.8
1.21.10
2 changes: 1 addition & 1 deletion Dockerfile-release.amd64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 gcr.io/distroless/static-debian11
FROM --platform=linux/amd64 gcr.io/distroless/static-debian11@sha256:6d31326376a7834b106f281b04f67b5d015c31732f594930f2ea81365f99d60c

ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-release.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm64 gcr.io/distroless/static-debian11
FROM --platform=linux/arm64 gcr.io/distroless/static-debian11@sha256:6d31326376a7834b106f281b04f67b5d015c31732f594930f2ea81365f99d60c

ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-release.ppc64le
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/ppc64le gcr.io/distroless/static-debian11
FROM --platform=linux/ppc64le gcr.io/distroless/static-debian11@sha256:6d31326376a7834b106f281b04f67b5d015c31732f594930f2ea81365f99d60c

ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-release.s390x
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/s390x gcr.io/distroless/static-debian11
FROM --platform=linux/s390x gcr.io/distroless/static-debian11@sha256:6d31326376a7834b106f281b04f67b5d015c31732f594930f2ea81365f99d60c

ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
Loading
Loading