francoismichel / francoismichel/ssh3
[BeforeSuite] [FAILED] [8.752 seconds]
- Dominant language
- Go
- Stars
- 5k
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Description
We run tests when building ssh3 package. Our build environment does not have access to Internet for security and reproducible builds purpose. Tests for 0.1.4 were OK but tests for 0.1.6 fail with:
```
++ go run github.com/onsi/ginkgo/v2/ginkgo --no-color --flake-attempts=4 ./integration_tests
Running Suite: Integration Test Suite - /usr/src/RPM/BUILD/ssh3-0.1.6/integration_tests
=======================================================================================
Random Seed: 1706439786
Will run 17 of 17 specs
------------------------------
[BeforeSuite] [FAILED] [8.752 seconds]
[BeforeSuite]
/usr/src/RPM/BUILD/ssh3-0.1.6/integration_tests/ssh3_test.go:59
Timeline >>
11:03AM DBG version francoismichel/ssh3 0.1.6
Server started, listening on 127.0.0.1:4433/ssh3-tests
11:03AM INF Server started, listening on 127.0.0.1:4433/ssh3-tests
[FAILED] in [BeforeSuite] - /usr/src/RPM/BUILD/ssh3-0.1.6/integration_tests/ssh3_test.go:90 @ 01/28/24 11:03:17.155
<< Timeline
[FAILED] Unexpected error:
<*exec.ExitError | 0xc0003361c0>:
exit status 1
{
ProcessState: {
pid: 1583,
status: 256,
rusage: {
Utime: {Sec: 0, Usec: 1021},
Stime: {Sec: 0, Usec: 6156},
Maxrss: 10172,
Ixrss: 0,
Idrss: 0,
Isrss: 0,
Minflt: 306,
Majflt: 312,
Nswap: 0,
Inblock: 1176,
Oublock: 0,
Msgsnd: 0,
Msgrcv: 0,
Nsignals: 0,
Nvcsw: 655,
Nivcsw: 0,
},
},
Stderr: nil,
}
occurred
In [BeforeSuite] at: /usr/src/RPM/BUILD/ssh3-0.1.6/integration_tests/ssh3_test.go:90 @ 01/28/24 11:03:17.155
------------------------------
Summarizing 1 Failure:
[FAIL] [BeforeSuite]
/usr/src/RPM/BUILD/ssh3-0.1.6/integration_tests/ssh3_test.go:90
Ran 0 of 17 Specs in 8.756 seconds
FAIL! -- A BeforeSuite node failed so all tests were skipped.
--- FAIL: TestMessage (8.76s)
FAIL
Ginkgo ran 1 suite in 10.734722948s
Test Suite Failed
exit status 1
```
Looks like it tries to run `go install github.com/francoismichel/ssh3/cmd/ssh3-server` since commit 53d7264847ba5d6d86b97644636b09bf8cbd388a.
Maybe it's possible to make tests work without access to Internet? (Without `go install` basically.)
It's pity to disable integration tests run.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with integration_tests/ssh3_test.go, especially the BeforeSuite setup around lines 59 and 90, and reproduce the Ginkgo command shown in the report in an offline environment. Trace the server setup and the go install invocation introduced by commit 53d7264847ba5d6d86b97644636b09bf8cbd388a; done means the integration suite runs without Internet access and does not install the server from the repository.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100