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

Error when running sample robustness tests in a pristine developer machine #17879

Open
4 tasks done
karuppiah7890 opened this issue Apr 25, 2024 · 0 comments
Open
4 tasks done

Comments

@karuppiah7890
Copy link
Contributor

karuppiah7890 commented Apr 25, 2024

Bug report criteria

What happened?

I'm a developer trying to contribute to etcd repo for the first time. I setup my machine for the first time for contributing to etcd, so it's a new 🆕 setup / pristine setup. I was trying to run make test-robustness-issue14370 in the latest main, but I got an error -

% env GO111MODULE=off go get github.com/myitcv/gobin
stderr: go: modules disabled by GO111MODULE=off; see 'go help modules'
FAIL: (code:1):
  % env GO111MODULE=off go get github.com/myitcv/gobin

Full Logs -

$ make test-robustness-issue14370
go install go.etcd.io/gofail@v0.1.0
rm -rf /tmp/etcd-v3.5.4-failpoints/
mkdir -p /tmp/etcd-v3.5.4-failpoints/
cd /tmp/etcd-v3.5.4-failpoints/; \
	  git clone --depth 1 --branch v3.5.4 https://github.com/etcd-io/etcd.git .; \
	  go get go.etcd.io/gofail@v0.1.0; \
	  (cd server; go get go.etcd.io/gofail@v0.1.0); \
	  (cd etcdctl; go get go.etcd.io/gofail@v0.1.0); \
	  (cd etcdutl; go get go.etcd.io/gofail@v0.1.0); \
	  FAILPOINTS=true ./build;
Cloning into '.'...
remote: Enumerating objects: 1603, done.
remote: Counting objects: 100% (1603/1603), done.
remote: Compressing objects: 100% (1428/1428), done.
remote: Total 1603 (delta 351), reused 577 (delta 139), pack-reused 0
Receiving objects: 100% (1603/1603), 4.16 MiB | 6.09 MiB/s, done.
Resolving deltas: 100% (351/351), done.
Note: switching to '08407ff7600eb16c4445d5f21c4fafaf19412e24'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

go: added go.etcd.io/gofail v0.1.0
go: upgraded github.com/stretchr/testify v1.7.0 => v1.8.1
go: added go.etcd.io/gofail v0.1.0
\e[91mDEPRECATED!!! Use build.sh script instead.\e[0m

% env GO111MODULE=off go get github.com/myitcv/gobin
stderr: go: modules disabled by GO111MODULE=off; see 'go help modules'
FAIL: (code:1):
  % env GO111MODULE=off go get github.com/myitcv/gobin

What did you expect to happen?

No errors to occur as I followed the development guide properly and didn't miss any steps

How can we reproduce it (as minimally and precisely as possible)?

Just ensure you have a pristine developer machine / environment (say a pristine docker container), have golang installed in it, say version 1.22.2 that's mentioned by latest main branch, clone the latest main and run make test-robustness-issue14370

Anything else we need to know?

I know a fix, which is to install gobin before hand in this case

There might be similar issues in running other robustness test targets in make / Makefile, where some tool installation is required - and the tool is not present and some old version's branch is checked out and that branch's code assumes an older golang version and tries to run go commands assuming older golang version

Etcd version (please run commands below)

$ etcd --version
# paste output here

$ etcdctl version
# paste output here

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

$ etcdctl member list -w table
# paste output here

$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here

Relevant log output

$ make test-robustness-issue14370
go install go.etcd.io/gofail@v0.1.0
rm -rf /tmp/etcd-v3.5.4-failpoints/
mkdir -p /tmp/etcd-v3.5.4-failpoints/
cd /tmp/etcd-v3.5.4-failpoints/; \
	  git clone --depth 1 --branch v3.5.4 https://github.com/etcd-io/etcd.git .; \
	  go get go.etcd.io/gofail@v0.1.0; \
	  (cd server; go get go.etcd.io/gofail@v0.1.0); \
	  (cd etcdctl; go get go.etcd.io/gofail@v0.1.0); \
	  (cd etcdutl; go get go.etcd.io/gofail@v0.1.0); \
	  FAILPOINTS=true ./build;
Cloning into '.'...
remote: Enumerating objects: 1603, done.
remote: Counting objects: 100% (1603/1603), done.
remote: Compressing objects: 100% (1428/1428), done.
remote: Total 1603 (delta 351), reused 577 (delta 139), pack-reused 0
Receiving objects: 100% (1603/1603), 4.16 MiB | 6.09 MiB/s, done.
Resolving deltas: 100% (351/351), done.
Note: switching to '08407ff7600eb16c4445d5f21c4fafaf19412e24'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

go: added go.etcd.io/gofail v0.1.0
go: upgraded github.com/stretchr/testify v1.7.0 => v1.8.1
go: added go.etcd.io/gofail v0.1.0
\e[91mDEPRECATED!!! Use build.sh script instead.\e[0m

% env GO111MODULE=off go get github.com/myitcv/gobin
stderr: go: modules disabled by GO111MODULE=off; see 'go help modules'
FAIL: (code:1):
  % env GO111MODULE=off go get github.com/myitcv/gobin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants