Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ra: temporarily remove flaky test #7820

Closed
wants to merge 1 commit into from
Closed

Conversation

jsha
Copy link
Contributor

@jsha jsha commented Nov 15, 2024

This test is flaking a lot on main. We'll restore it soon but in the meantime we shouldn't have flaky tests.

We'll use #7812 to track re-adding this test.

This test is flaking a lot on main. We'll restore it soon but in the meantime we
shouldn't have flaky tests.
@jsha jsha requested a review from a team as a code owner November 15, 2024 19:58
@jsha jsha requested a review from aarongable November 15, 2024 19:58
@jsha
Copy link
Contributor Author

jsha commented Nov 15, 2024

Got an integration test failure:

--- FAIL: TestCertificatesPerDomain (2.36s)
    ratelimit_test.go:57: Somehow managed to issue third certificate: expected error but received none
FAIL
FAIL	github.com/letsencrypt/boulder/test/integration	32.988s
FAIL

I suspect this is also a flake and I'm re-running that CI task now.

@beautifulentropy
Copy link
Member

beautifulentropy commented Nov 15, 2024

Got an integration test failure:

--- FAIL: TestCertificatesPerDomain (2.36s)
    ratelimit_test.go:57: Somehow managed to issue third certificate: expected error but received none
FAIL
FAIL	github.com/letsencrypt/boulder/test/integration	32.988s
FAIL

I suspect this is also a flake and I'm re-running that CI task now.

I think the fix is to make this call synchronous:

boulder/ra/ra.go

Line 1361 in 2502113

go ra.countCertificateIssued(ctx, int64(acctID), slices.Clone(parsedCertificate.DNSNames), isRenewal)

Copy link
Member

@beautifulentropy beautifulentropy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly to what I've noted on countCertificateIssued. I think the fix for this is to make countValidationsFailed synchronous:

boulder/ra/ra.go

Lines 2001 to 2006 in 2502113

go func() {
err := ra.countFailedValidations(vaCtx, authz.RegistrationID, authz.Identifier)
if err != nil {
ra.log.Warningf("incrementing failed validations: %s", err)
}
}()

@jsha
Copy link
Contributor Author

jsha commented Nov 15, 2024

Ooh excellent catch! I'll try that instead.

@beautifulentropy
Copy link
Member

Ooh excellent catch! I'll try that instead.

I would sign off on fixing both in this PR 👍🏻

@beautifulentropy
Copy link
Member

As we discussed offline, closing in favour of: #7824

@aarongable aarongable deleted the disable-test-pause-resets branch November 15, 2024 21:46
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.

2 participants