boulder/test/integration
Aaron Gable 6a450a2272
Improve CRL shard leasing (#7030)
Simplify the index-picking logic in the SA's leaseOldestCrlShard method.
Specifically, more clearly separate it into "missing" and "non-missing"
cases, which require entirely different logic: picking a random missing
shard, or picking the oldest unleased shard, respectively.

Also change the UpdateCRLShard method to "unlease" shards when they're
updated. This allows the crl-updater to run as quickly as it likes,
while still ensuring that multiple instances do not step on each other's
toes.

The config change for shardWidth and lookbackPeriod instead of
certificateLifetime has been deployed in prod since IN-8445. The config
change changing the shardWidth is just so that the tests neither produce
a bazillion shards, nor have to do a bazillion SA queries for each chunk
within a shard, improving the readability of test logs.

Part of https://github.com/letsencrypt/boulder/issues/7023
2023-08-08 17:05:00 -07:00
..
testdata grpc: Allow for some SRV resolution failures (#7014) 2023-08-01 12:55:05 -04:00
admin_test.go admin: add clear-email subcommand (#6919) 2023-06-01 14:33:24 -04:00
akamai_purger_drain_queue_test.go cmd: TLSConfig values should be string not *string (#6872) 2023-05-08 13:21:42 -04:00
ari_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
authz_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
bad_key_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
caa_test.go Add relevant domain to CAA errors and logs (#6886) 2023-05-22 15:08:56 -04:00
cert_storage_failed_test.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
common_mock.go ctpolicy: Remove deprecated codepath and fix metrics (#6485) 2022-11-07 11:31:20 -08:00
common_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
crl_test.go Improve CRL shard leasing (#7030) 2023-08-08 17:05:00 -07:00
errors_test.go Probs: remove divergences from RFC8555 (#6877) 2023-05-15 12:35:12 -07:00
issuance_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
nonce_test.go test: Fix naming of integration test config structs (#7020) 2023-08-01 16:24:42 -07:00
ocsp_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
otel_test.go OTel Integration test using jaeger (#6842) 2023-05-05 10:41:29 -04:00
ratelimit_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
revocation_test.go Stop using DIRECTORY env var in integration tests (#6854) 2023-05-03 09:54:48 -04:00
srv_resolver_test.go test: Fix naming of integration test config structs (#7020) 2023-08-01 16:24:42 -07:00
wfe_test.go test: Replace sd-test-srv with consul (#6389) 2022-09-19 16:13:53 -07:00