╔══════════════════════════════════════╗
║ custom-ci test runner ║
╚══════════════════════════════════════╝
📦 Cloning https://github.com/nad279444/custom-ci.git
📌 Commit: 4ac3bbac
Cloning into 'repo'...
── Checking out 4ac3bbac ──
Note: switching to '4ac3bbac5773f77c974a968880d9fd1444612147'.
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
HEAD is now at 4ac3bba merge and fix go.mod go.sum
── Downloading dependencies ──
── Running go vet ──
⚠️ go vet found issues: timed out after 5m0s
── Running go test ./... ──
=== RUN TestHealthEndpoint
--- PASS: TestHealthEndpoint (0.00s)
=== RUN TestJobStatusValues
--- PASS: TestJobStatusValues (0.00s)
=== RUN TestJobDuration
--- PASS: TestJobDuration (0.00s)
=== RUN TestJobDurationNotStarted
--- PASS: TestJobDurationNotStarted (0.00s)
=== RUN TestVerifySignature
--- PASS: TestVerifySignature (0.00s)
=== RUN TestNewDispatcher
dispatcher_test.go:99: NewDispatcher failed: init db: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
--- FAIL: TestNewDispatcher (0.00s)
=== RUN TestGetJobsEmpty
--- FAIL: TestGetJobsEmpty (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5c38fc]
goroutine 25 [running]:
testing.tRunner.func1.2({0x5ea6c0, 0x7da770})
/usr/local/go/src/testing/testing.go:1631 +0x24a
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1634 +0x377
panic({0x5ea6c0?, 0x7da770?})
/usr/local/go/src/runtime/panic.go:770 +0x132
github.com/nad279444/custom-ci/dispatcher.(*Dispatcher).handleGetJobs(0x6238f7?, {0x68aa08, 0xc0000a2ac0}, 0x9?)
/tmp/ci-runner/b57880d0-7554-4613-b3f2-2b855cf02f90/repo/dispatcher/main.go:312 +0x3c
github.com/nad279444/custom-ci/dispatcher.TestGetJobsEmpty(0xc0000c9040)
/tmp/ci-runner/b57880d0-7554-4613-b3f2-2b855cf02f90/repo/dispatcher/dispatcher_test.go:126 +0xf1
testing.tRunner(0xc0000c9040, 0x64eef8)
/usr/local/go/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 1
/usr/local/go/src/testing/testing.go:1742 +0x390
FAIL github.com/nad279444/custom-ci/dispatcher 0.010s
=== RUN TestRunnerWorkDir
--- PASS: TestRunnerWorkDir (0.01s)
=== RUN TestRunnerUniqueID
--- PASS: TestRunnerUniqueID (0.00s)
=== RUN TestRunnerStatusValues
--- PASS: TestRunnerStatusValues (0.00s)
=== RUN TestGetEnvFallback
--- PASS: TestGetEnvFallback (0.00s)
=== RUN TestGetEnvSet
--- PASS: TestGetEnvSet (0.00s)
PASS
ok github.com/nad279444/custom-ci/runner 0.178s
=== RUN TestJobDurationFormatting
--- PASS: TestJobDurationFormatting (0.00s)
=== RUN TestJobDurationNoTimes
--- PASS: TestJobDurationNoTimes (0.00s)
=== RUN TestJobShortSHA
--- PASS: TestJobShortSHA (0.00s)
=== RUN TestJobShortSHATooShort
--- PASS: TestJobShortSHATooShort (0.00s)
=== RUN TestJobShortRunner
--- PASS: TestJobShortRunner (0.00s)
=== RUN TestJobShortRunnerEmpty
--- PASS: TestJobShortRunnerEmpty (0.00s)
=== RUN TestStatusIcon
--- PASS: TestStatusIcon (0.00s)
=== RUN TestCalcStats
--- PASS: TestCalcStats (0.00s)
=== RUN TestCalcStatsEmpty
--- PASS: TestCalcStatsEmpty (0.00s)
=== RUN TestTimeAgo
--- PASS: TestTimeAgo (0.00s)
PASS
ok github.com/nad279444/custom-ci/ui 0.002s
FAIL
❌ TESTS FAILED