Boulder: TestRecheckCAAFail appears to be flakey

Created on 4 Jun 2019  路  5Comments  路  Source: letsencrypt/boulder

Rarely so, but has hit a PR of mine recently.

areintegration kinbug kintests

All 5 comments

If you can attach a raw build log with the flake that would be helpful.

From here, about the only useful bit is:

--- FAIL: TestRecheckCAAFail (0.11s)
    ra_test.go:2094: false != true
FAIL
FAIL    github.com/letsencrypt/boulder/ra   21.051s

(Can't repro locally after running ~100 times, likely due to a slow host.)

Saw this a few times in CI today. Probably worth pulling into next week's sprint. I don't mind taking it.

Adding some debugging prints and running the test a bunch locally with --count 10 helped me spot the bug:

SubErr: errors.SubBoulderError{BoulderError:(*errors.BoulderError)(0xc000158360), Identifier:identifier.ACMEIdentifier{Type:"dns", Value:"a.com"}}
SubErr detail: "CAA invalid for a.com"

SubErr: errors.SubBoulderError{BoulderError:(*errors.BoulderError)(0xc0003e68d0), Identifier:identifier.ACMEIdentifier{Type:"dns", Value:"b.com"}}
SubErr detail: "CAA invalid for c.com"

The ra_test.go:2094: false != true failure is from the unit test looking for a sub problem for the c.com identifier which is mocked to have invalid CAA.

In the buggy output above you can see in the second sub-problem the detail message correctly identifies c.com but the sub-problem is for the wrong identifier (b.com).

The fix is in https://github.com/letsencrypt/boulder/pull/4259

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Darkspirit picture Darkspirit  路  3Comments

ibukanov picture ibukanov  路  3Comments

jschleus picture jschleus  路  4Comments

pauladams8 picture pauladams8  路  4Comments

bmw picture bmw  路  3Comments