0.99.17 installation record: Beerus in Vortex's pool from 8016753 only, premiere eligible from the installed box's files
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m48s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m23s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-04 16:20:04 +00:00
co-authored by Claude Opus 5.5
parent 538310bffa
commit 18acc416ba
4 changed files with 158 additions and 4 deletions
@@ -9,8 +9,9 @@ import java.io.File
/**
* Stage D1's check: Vortex as built, with the Afterburn premiere of Dragon Ball Super: Beerus, from copies of the box's files.
* Beerus's four episodes, as the box's inspection read them (Emby 8016753, 23 minutes each; their exact seconds aren't in that
* read, so each is taken as 23:40), join Vortex's pool from the first top-up, as the release's first pool read would add them.
* Beerus's four episodes come from Vortex's pool when the box has read them (0.99.17 onwards). Before that they're taken
* from the box's inspection (Emby 8016753, 23 minutes each, taken as 23:40), joining from the first top-up as the release's
* first pool read would add them.
* Four weeks of top-ups every six hours with Beerus and without it, avoiding every other channel's committed programmes.
* Run by hand:
* ORBIT_REPLAY_DIR=<copies of the box's files> ./gradlew :app:testDebugUnitTest --tests '*BeerusPremiereReplayTest*'
@@ -70,11 +71,13 @@ class BeerusPremiereReplayTest {
@Test fun premiere() {
assumeTrue(dir != null && File(dir, "schedule-601.json").exists())
val vortex = SmartChannels.first { it.number == VORTEX_NUMBER }
val committed = plan(File(dir, "schedule-601.json")); val series = withoutWithdrawn(pool(File(dir, "episodes-601.json")), vortex.withdrawn)
val committed = plan(File(dir, "schedule-601.json")); val read = withoutWithdrawn(pool(File(dir, "episodes-601.json")), vortex.withdrawn)
// Once the box has read Beerus into Vortex's pool, its own copy and runtimes are used; before that, the inspected episodes.
val series = read.filter { it.id != "8016753" }
fun at(date: String, h: Int, m: Int = 0) = java.time.LocalDate.parse(date).atTime(h, m).atZone(zone).toInstant().toEpochMilli()
fun t(ms: Long) = java.time.Instant.ofEpochMilli(ms).atZone(zone).toLocalDateTime().withNano(0)
val minute = 60_000L
val beerus = PoolSeries("8016753", BEERUS, listOf("8016755", "8055410", "8062564", "8070600").mapIndexed { i, id ->
val beerus = read.firstOrNull { it.id == "8016753" } ?: PoolSeries("8016753", BEERUS, listOf("8016755", "8055410", "8062564", "8070600").mapIndexed { i, id ->
PoolEpisode(id, "mediasource_$id", EpisodeMark(1, i + 1), "Episode ${i + 1}", 23 * minute + 40_000L) })
val others = clashesWith(SmartChannels.filter { it.number != VORTEX_NUMBER && File(dir, "schedule-${it.number}.json").exists() }.map { plan(File(dir, "schedule-${it.number}.json")) })
val (without, _) = replay(committed, series, vortex, others)