[Bug]: Test failures (revoke_test.go:1097: '-1' and '0' are not equal)
Maintainers usually reply within 1 day
@hslatman is already working on this.
Since Oct 14, 2025.
Assessment
This issue has not been assessed yet.
Description
Steps to Reproduce
I built certificates 0.28.4 on https://copr.fedorainfracloud.org with both the fedora-42-x86_64 and fedora-43-x86_64 chroots enabled. The Fedora 42 build was fine but the Fedora 43 build fails in the tests. Fedora 43 has golang 1.25.1. Build command (within the spec file):
BUILD_DATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%Y-%m-%d %H:%M UTC')"
GO_ENVS="CGO_ENABLED=1" go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X \"main.Version=0.28.4\" -X \"main.BuildTime=${BUILD_DATE}\"" \
-o bin/step-ca ./cmd/...
The build log is available here:
https://download.copr.fedorainfracloud.org/results/patrickl/dev/fedora-43-x86_64/09669585-step-ca/builder-live.log.gz
FAIL snippets below:
Output:
...
=== RUN TestHandler_RevokeCert/ok/using-account-key
revoke_test.go:1097: '-1' and '0' are not equal
--- FAIL: TestHandler_RevokeCert (0.00s)
--- PASS: TestHandler_RevokeCert/fail/no-payload (0.00s)
--- PASS: TestHandler_RevokeCert/fail/prov.AuthorizeRevoke (0.00s)
--- PASS: TestHandler_RevokeCert/fail/ca.Revoke (0.00s)
--- PASS: TestHandler_RevokeCert/fail/no-account (0.00s)
--- PASS: TestHandler_RevokeCert/fail/nil-account (0.00s)
--- PASS: TestHandler_RevokeCert/fail/account-not-authorized (0.00s)
--- PASS: TestHandler_RevokeCert/fail/unauthorized-certificate-key (0.00s)
--- PASS: TestHandler_RevokeCert/fail/certificate-revoked-check-fails (0.00s)
--- PASS: TestHandler_RevokeCert/fail/certificate-already-revoked (0.00s)
--- FAIL: TestHandler_RevokeCert/ok/using-certificate-key (0.00s)
--- PASS: TestHandler_RevokeCert/fail/no-jws (0.00s)
--- PASS: TestHandler_RevokeCert/fail/nil-jws (0.00s)
--- PASS: TestHandler_RevokeCert/fail/no-provisioner (0.00s)
--- PASS: TestHandler_RevokeCert/fail/unmarshal-payload (0.00s)
--- PASS: TestHandler_RevokeCert/fail/wrong-certificate-encoding (0.00s)
--- PASS: TestHandler_RevokeCert/fail/no-certificate-encoded (0.00s)
--- PASS: TestHandler_RevokeCert/fail/account-not-valid (0.00s)
--- PASS: TestHandler_RevokeCert/fail/ca.Revoke-already-revoked (0.00s)
--- PASS: TestHandler_RevokeCert/fail/nil-provisioner (0.00s)
--- PASS: TestHandler_RevokeCert/fail/nil-payload (0.00s)
--- PASS: TestHandler_RevokeCert/fail/db.GetCertificateBySerial (0.00s)
--- PASS: TestHandler_RevokeCert/fail/different-certificate-contents (0.00s)
--- PASS: TestHandler_RevokeCert/fail/invalid-reasoncode (0.00s)
--- FAIL: TestHandler_RevokeCert/ok/using-account-key (0.00s)
...
--- PASS: TestWireIntegration (0.01s)
FAIL
...
FAIL github.com/smallstep/certificates/acme/api 0.091s
=== RUN TestDB_getDBAccount
...
Your Environment
- OS - Fedora 43 x86_64
step-caVersion - 0.28.4
Expected Behavior
All tests PASS.
Actual Behavior
Some tests FAIL(ed)
Additional Context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
- Dominant language
- Go
- Stars
- 8.9k
- Forks
- 599
- Avg merge
- 21h 20m
- Merged PRs (30d)
- 15
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from smallstep/certificates
-
bug needs triage
Difficulty 1/5 Under an hour Newbie friendliness 84/100
smallstep/certificates#2863 ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 1/5 Under an hour Newbie friendliness 65/100
smallstep/certificates#2788 ·
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
smallstep/certificates#2730 · 1 comment · 2 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
smallstep/certificates#2860 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: Tokens fail validation after the identity provider rotates its signing key until the JWKS cache expiresPossibly taken @APWHY claimed this 100 days ago. Openbug needs triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
smallstep/certificates#2831 · 3 comments ·
Maintainers usually reply within 1 day
All issues in smallstep/certificates
Similar issues
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
go good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/prometheus-collector#1828 · 1 comment ·
Maintainers usually reply within 2 days