Buckets:

download
raw
4.42 kB
/**
* The walk-consumer contract kit: the executable {@code WalkConsumer} contract and the fixture seam one consumer
* registers with.
*
* <p>{@code WalkConsumerContract} states the two promises the walk SPI has always made in prose - idempotent delivery
* and at-least-once crash-resume - as checks: a corpus spanning several checkpoint strides is enumerated, the pass is
* killed at six named points (before the first delivery, mid-stride, a full stride with the cursor commit dying before
* it lands, the same with it landing but the caller never learning, the terminal segment commit, and the
* pass-completion hook), the consumer is rebuilt as a <em>fresh instance</em> - a crashed process keeps no memory -
* and the pass is resumed. {@code WalkConsumerFixture} is how one consumer registers, and the reason the kit can span
* consumers that hold entirely different bytes: the fixture declares {@code projection}, its own normalised view of
* its durable state, and {@code Delivery}, the durability it actually rides. Convergence is then an equality between
* what the fixture declared and what the store holds - never a comparison of layouts the kit has no business owning -
* and no consumer is held to a guarantee stronger than its declared class, which for a pass-snapshot rebuilder means
* "converged <em>or</em> visibly degraded, but never a fragment published as a whole view".
*
* <p>The crash itself is the store testkit's {@code FaultInjectingStore}, armed off the consumer's own delivery count
* rather than off the walk's internal store-call sequence, so a crash point stays where it is named when the walk
* implementation changes - and every check re-derives from the durable pass state that the crash really landed there.
* {@code WalkHarness} is what the JUnit driver supplies: the walk, its checkpoint stride, and the ability to age a
* dead worker's claim past its lease so a resume is possible at all.
*
* <p>The module depends only on the walk SPI and the store testkit - no junit, no assertion library, no walk
* implementation, no server - so both this repository's and the downstream distribution's test modules can require it
* for their own consumer fixtures exactly as they already require the store testkit. The classes are test doubles;
* nothing here provides a service, so the module is inert on a runtime graph.
*
* @jenesis.release 25
* @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/assertj-core 3.27.7 SHA-256/c4a445426c3c2861666863b842cc4ec7bbb1c4226fefd370b6d2fe83d6c4ff0f
* @jenesis.pin org.jspecify/jspecify 1.0.0 SHA-256/1fad6e6be7557781e4d33729d49ae1cdc8fdda6fe477bb0cc68ce351eafdfbab
* @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/junit-platform-commons 6.0.3 SHA-256/39f262d09c3d52719fe0b77f080e90a3695e285d779a41b232e17963ae5da200
* @jenesis.pin org.junit.platform/junit-platform-engine 6.0.3 SHA-256/491e9e4f745f161b8a8e4186a1a7c6a450ea12c70930c9aedae427215301d947
* @jenesis.pin org.opentest4j/opentest4j 1.3.0 SHA-256/48e2df636cab6563ced64dcdff8abb2355627cb236ef0bf37598682ddf742f1b
* @jenesis.pin org.slf4j/slf4j-api 2.0.18 SHA-256/44508fd1576500688c790b190acdd16fec4f8c79a3e0b900afd70503cf055f55
*/
module build.jenesis.repository.walk.testkit {
requires transitive build.jenesis.repository.walk;
requires transitive build.jenesis.repository.store.testkit;
exports build.jenesis.repository.walk.testkit;
}

Xet Storage Details

Size:
4.42 kB
·
Xet hash:
0cbbc29be880de8f8fc8ecae60e3c0d10bbbb5cb073e1844359bce16c76f66f0

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