Skip to content

Make the full test suite runnable - #2

Open
asp24 wants to merge 1 commit into
masterfrom
up/test-suite
Open

Make the full test suite runnable#2
asp24 wants to merge 1 commit into
masterfrom
up/test-suite

Conversation

@asp24

@asp24 asp24 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Candidate for minio/simdjson-go. Cut from upstream master, nothing fork-specific in it.

go test ./... fails on upstream master today: TestNdjsonCountWhere2 panics with a nil pointer dereference in loadFile. Two of the corpora it fetches on demand (parking-citations-1M.json.zst, RC_2009-01.json.zst) answer 404, and the error path calls err.Error() on the nil error http.Get returns when the request succeeded and only the status was bad. Upstream CI last ran on 2025-08-26 and was green, which is why nobody noticed.

loadFile now takes a testing.TB and skips its caller when a corpus cannot be obtained, while a corrupt archive or an unwritable cache stays fatal. The response body gets closed, which it never was.

Test files and .gitignore only; the library is untouched.

About the red CI here. Test and Test Noasm pass in every cell of upstream's matrix. The one cell that fails is 1.22.x + macos-latest, in the -race step, before any test runs: dyld: missing LC_UUID load command - that toolchain against the current macOS runner image. The same commit passes the same step on 1.23.x and 1.24.x macOS, so it is the cell and not the code; fail-fast then cancels the rest of the matrix, which is what the other red marks are.

`go test ./...` fails on master: TestNdjsonCountWhere2 dies with a nil pointer
dereference inside loadFile. Two of the corpora fetched on demand answer 404 now, and
the error path calls err.Error() on the nil error http.Get returns when the request
itself succeeded and only the status was bad.

loadFile now takes a testing.TB and skips the caller when a corpus cannot be obtained -
there is nothing wrong with the code under test - while a corrupt archive or an
unwritable cache stays fatal. It also closes the response body, which it never did.

.gitignore was absent, so the corpora the tests download appear as untracked files; it
now covers those, test binaries and profiling output.

Test files and .gitignore only; no change to the library.
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.

1 participant