Buckets:

download
raw
5.04 kB
/**
* Focused unit tests for the garbage-collection SPI and its {@code mark-sweep} reference implementation, driven
* against a real {@code FilesystemArtifactStore} on a JUnit
* {@code @TempDir} with an injectable test clock and the shared fault-injecting store, so every data-safety claim
* is exercised without a network: the no-op default (nothing installed or selected reclaims nothing); an orphan is
* condemned by one pass and collected only by a later one, so a blob younger than one collection interval always
* survives; a referenced, re-linked (the dedup re-publish race: condemn, re-link, un-condemn) or unrecognisable
* blob is never deleted - including across a crashed reference flush, where the walk's flush-before-checkpoint
* ordering must keep a committed cursor from lying about a lost reference; the dry-run {@code plan} previews the
* due blobs and writes nothing; condemned bookkeeping and superseded reference shards converge idempotently across
* kills at each phase boundary; and per-segment claims keep a second collector off a live pass until the holder's
* lease expires. The reference-lending seam is exercised against its negative control: a format whose served blobs
* are reachable only through a stored document loses them to the sweep when it lends nothing, keeps every one when
* it lends, is asked only about keys beneath its own declared roots, and fails the whole pass rather than answering
* a short set - a short set being indistinguishable from a complete one, and every hash missing from it a live blob
* deleted.
*
* @jenesis.release 25
* @jenesis.test build.jenesis.repository.gc
* @jenesis.pin com.github.ben-manes.caffeine/caffeine 3.2.4 SHA-256/9d9d2cfd681fd9272ded3d27c9930db12f89f732345975aa113ebc223bbf1224
* @jenesis.pin com.google.errorprone/error_prone_annotations 2.49.0 SHA-256/3b1003e51b8ae56fdbd7c71073e81d1683b97e6c4dff5a9151164d59b769d13c
* @jenesis.pin net.bytebuddy/byte-buddy 1.18.3 SHA-256/d78396e3c5bce3f2865c9186647481e5589d34cacc632484715b686108d17c66
* @jenesis.pin org.apiguardian/apiguardian-api 1.1.2 SHA-256/b509448ac506d607319f182537f0b35d71007582ec741832a1f111e5b5b70b38
* @jenesis.pin org.assertj.core 3.27.7
* @jenesis.pin org.assertj/assertj-core 3.27.7 SHA-256/c4a445426c3c2861666863b842cc4ec7bbb1c4226fefd370b6d2fe83d6c4ff0f
* @jenesis.pin org.jspecify/jspecify 1.0.0 SHA-256/1fad6e6be7557781e4d33729d49ae1cdc8fdda6fe477bb0cc68ce351eafdfbab
* @jenesis.pin org.junit.jupiter 6.0.3
* @jenesis.pin org.junit.jupiter.api 6.0.3
* @jenesis.pin org.junit.jupiter/junit-jupiter 6.0.3 SHA-256/784b65815f479a0c99a9d3a573b142e2a525efb6025d97f751b19e72f90aeda3
* @jenesis.pin org.junit.jupiter/junit-jupiter-api 6.0.3 SHA-256/d655d7e6f0c7ae07f10a2f3bbaaebb6d30e9b26204a068ad9e9b3950aa28792c
* @jenesis.pin org.junit.jupiter/junit-jupiter-engine 6.0.3 SHA-256/1e2fab61ad27ea08fc7c70dd9677cf8c6d1ae5434d42dcfdd633b12c7e7c04d0
* @jenesis.pin org.junit.jupiter/junit-jupiter-params 6.0.3 SHA-256/cf2947e2302b9f8c8a059259a277881c1cadae8fbc2514c16a925cfeb7beb2e5
* @jenesis.pin org.junit.platform.commons 6.0.3
* @jenesis.pin org.junit.platform.console 6.0.3
* @jenesis.pin org.junit.platform/junit-platform-commons 6.0.3 SHA-256/39f262d09c3d52719fe0b77f080e90a3695e285d779a41b232e17963ae5da200
* @jenesis.pin org.junit.platform/junit-platform-console 6.0.3 SHA-256/aee6094514f5761d15d469a187305c123a524153ee303473fcd836e0df7e1942
* @jenesis.pin org.junit.platform/junit-platform-engine 6.0.3 SHA-256/491e9e4f745f161b8a8e4186a1a7c6a450ea12c70930c9aedae427215301d947
* @jenesis.pin org.junit.platform/junit-platform-launcher 6.0.3 SHA-256/315608372e4dc44bca0ccb3ae8a07ecc206b3367033fa05748a03ccd563f1301
* @jenesis.pin org.junit.platform/junit-platform-reporting 6.0.3 SHA-256/f19c5be871c37ebed493f3152b67a909f89a44dff67c2db8016dfe34167d5730
* @jenesis.pin org.opentest4j 1.3.0
* @jenesis.pin org.opentest4j.reporting/open-test-reporting-tooling-spi 0.2.4 SHA-256/04ac4ecfcaf60abe0e6d5b18e8306320aec7cd9cbf15e59eeac54fa9faa16902
* @jenesis.pin org.opentest4j/opentest4j 1.3.0 SHA-256/48e2df636cab6563ced64dcdff8abb2355627cb236ef0bf37598682ddf742f1b
* @jenesis.pin org.slf4j/slf4j-api 2.0.18 SHA-256/44508fd1576500688c790b190acdd16fec4f8c79a3e0b900afd70503cf055f55
*/
open module build.jenesis.repository.gc.test {
requires build.jenesis.repository.gc;
requires build.jenesis.repository.gc.store;
// The reference-lending seam, exercised through a format-neutral stand-in: the collector's half of is that
// it unions a lender's set into the shards the sweep reads, not how any one format spells its documents.
requires build.jenesis.repository.format;
requires build.jenesis.repository.walk;
requires build.jenesis.repository.walk.store;
requires build.jenesis.repository.observation;
requires build.jenesis.repository.store;
requires build.jenesis.repository.store.filesystem;
requires build.jenesis.repository.store.testkit;
requires org.junit.jupiter;
requires org.assertj.core;
}

Xet Storage Details

Size:
5.04 kB
·
Xet hash:
aee1187287676e184b67c4aba91b820f7698a351fe5fe60ed9e2468f677aaa06

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.