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

ci: enable error detection #111

Closed
wants to merge 5 commits into from
Closed

ci: enable error detection #111

wants to merge 5 commits into from

Conversation

derekbit
Copy link
Member

Which issue(s) this PR fixes:

Issue longhorn/longhorn#7985

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context

@derekbit derekbit self-assigned this Feb 21, 2024
@derekbit derekbit requested a review from innobead February 21, 2024 02:55
@derekbit
Copy link
Member Author

The error is due to #110

@innobead
Copy link
Member

the PR check failed.

@derekbit
Copy link
Member Author

derekbit commented Feb 21, 2024

The CI test always failed.

...

	/go/src/github.com/longhorn/longhorn-spdk-engine/vendor/github.com/longhorn/nsfilelock/nsfilelock.go:105 +0x82
created by github.com/longhorn/nsfilelock.(*NSFileLock).Lock in goroutine 5894
	/go/src/github.com/longhorn/longhorn-spdk-engine/vendor/github.com/longhorn/nsfilelock/nsfilelock.go:100 +0x845

goroutine 22401 [runnable]:
internal/poll.runtime_pollWait(0x7f80583e7878, 0x72)
	/usr/local/go/src/runtime/netpoll.go:343 +0x85
internal/poll.(*pollDesc).wait(0xc00c8338e0, 0xc00e5c1c00?, 0x1)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0xb1
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc00c8338c0, {0xc00e5c1c00, 0x200, 0x200})
	/usr/local/go/src/internal/poll/fd_unix.go:164 +0x3e5
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0xc000f96608, {0xc00e5c1c00, 0x200, 0x200})
	/usr/local/go/src/os/file.go:118 +0xad
bytes.(*Buffer).ReadFrom(0xc00e164540, {0xfb4300, 0xc000f96608})
	/usr/local/go/src/bytes/buffer.go:211 +0x110
io.copyBuffer({0xfb4840, 0xc00e164540}, {0xfb4300, 0xc000f96608}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:416 +0x1bf
io.Copy(...)
	/usr/local/go/src/io/io.go:389
os/exec.(*Cmd).writerDescriptor.func1()
	/usr/local/go/src/os/exec/exec.go:560 +0x5b
os/exec.(*Cmd).Start.func2(0xc0022786c0)
	/usr/local/go/src/os/exec/exec.go:717 +0x3d
created by os/exec.(*Cmd).Start in goroutine 22400
	/usr/local/go/src/os/exec/exec.go:716 +0xf3a
FAIL	github.com/longhorn/longhorn-spdk-engine/pkg	300.459s

https://drone-pr.longhorn.io/longhorn/longhorn-spdk-engine/134/1/3

@shuo-wu Can you help check it? Should we enable CI test for now?

@FrankYang0529
Copy link
Contributor

Not sure why the go vet error doesn't break the pipeline first 🤔

Running: go vet
# github.com/longhorn/longhorn-spdk-engine/pkg/spdk
pkg/spdk/replica.go:523:14: result of fmt.Errorf call not used

@derekbit
Copy link
Member Author

Not sure why the go vet error doesn't break the pipeline first 🤔

Running: go vet
# github.com/longhorn/longhorn-spdk-engine/pkg/spdk
pkg/spdk/replica.go:523:14: result of fmt.Errorf call not used

Is it an error or warning?

@FrankYang0529
Copy link
Contributor

Not sure why the go vet error doesn't break the pipeline first 🤔

Running: go vet
# github.com/longhorn/longhorn-spdk-engine/pkg/spdk
pkg/spdk/replica.go:523:14: result of fmt.Errorf call not used

Is it an error or warning?

I think it's error. We have to remove this line too.

Copy link
Member

@innobead innobead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but waiting for resolving the failed PR check.

@derekbit derekbit force-pushed the fix-ci branch 3 times, most recently from a7f4a84 to 6e6d4f4 Compare February 26, 2024 14:09
Longhorn 7985

Signed-off-by: Derek Su <[email protected]>
Longhorn 7985

Signed-off-by: Derek Su <[email protected]>
Longhorn 7985

Signed-off-by: Derek Su <[email protected]>
Longhorn 7985

Signed-off-by: Derek Su <[email protected]>
Longhorn 7985

Signed-off-by: Derek Su <[email protected]>
Copy link

mergify bot commented Apr 17, 2024

This pull request is now in conflict. Could you fix it @derekbit? 🙏

1 similar comment
Copy link

mergify bot commented Apr 24, 2024

This pull request is now in conflict. Could you fix it @derekbit? 🙏

@derekbit
Copy link
Member Author

We don't need this anymore. The CI error due to the spdk_tgt timeout is fixed in #158. Error detection is always enabled.

cc @innobead @FrankYang0529

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