Repository navigation
Conflict Testing
Design stage. Nothing here is implemented.
A boot takes roughly three minutes. Several can run at once, but they are still the slowest step in the pipeline by two orders of magnitude, so everything below is arranged to make boots rare.
| Tier | Catches | Cost |
|---|---|---|
| Known conflicts | Every pair previously proven incompatible on this Minecraft version | 0 s — graph lookup |
| Metadata scan | Missing required dependencies · duplicate mod IDs · Minecraft or NeoForge range mismatch · explicitly declared incompatible pairs · the same mod present twice at different versions | ~2 s, no JVM |
| Boot + idle soak | Mixin injection collisions · duplicate registry registration · load-order faults · datapack and tag errors · anything that only appears when classes actually load together | ~3 min per attempt |
Each jar carries META-INF/neoforge.mods.toml, which declares its mod ID, version, and its dependencies with a type of required, optional, incompatible or discouraged, plus a versionRange.
That incompatible type is a free win — a mod author telling you directly that their mod cannot coexist with another. Parsing it costs a zip entry read.
The scan also catches the deterministic failures that never need a JVM to confirm:
- a required dependency absent from the set
- two jars declaring the same mod ID
- a mod whose declared Minecraft or NeoForge range excludes this server
- the same mod present twice at different versions
Every one of these caught statically is a three-minute boot that never has to happen.
What the metadata tier cannot see is the interesting case: two mods that declare nothing about each other and still collide at class-load time. That is what the boot tier is for.
-
Materialize. Build a scratch server from a template into
/var/minecraft/test/<run-id>/— hardlinked mods, superflat world, view-distance 4, offline mode, a scratch port nobody else uses. -
Launch under
systemd-run --scopewith resource limits and a raisedoom_score_adj, so a pathological test is reclaimed by the kernel before anything a player is connected to. -
Wait for readiness. Watch the log for
Done (…)! For help, type "help". No such line inside the timeout is a failure. - Hold. Keep the server idle for several minutes. Some conflicts only surface after the first few ticks.
- Stop cleanly and capture the log.
- Judge, then delete the directory.
A run fails on any of:
- a file appearing in
crash-reports/ - a
FATALline in the log - a mixin apply or injection error
- a duplicate registry registration error
- a loaded-mod count that does not match the modset
- readiness timeout
- non-zero exit before the hold period completes
The verdict and the log are retained; the scratch directory is not.
The test runner may only ever write beneath
/var/minecraft/test/, validated by path before anything starts.
Three rules:
- Never touch a live world directory. Every run gets a fresh throwaway world.
- Never bind a public port. Test servers are loopback-only and offline-mode.
- Limits are enforced by cgroup, not by convention. This is not about rationing capacity; it is about a mod that leaks or spins never being able to take a live server down with it.
Boot-plus-idle-soak proves a set loads and survives unattended. It cannot prove that gameplay works — and buying that proof up front, by scripting play or running real clients, makes every bisection round enormously expensive.
The cheaper route is to harvest the evidence players generate anyway.
Live crash reports are free bisection input. When a server crashes it writes crash-reports/crash-*.txt, and NeoForge reports usually name the offending mod in the stack trace or the mod list section. The engine watches that directory on every live server. A new crash report is parsed, attributed to a mod where possible, and attached to the deployed digest.
That turns a player-visible failure into a specific, actionable record: this digest crashed, this mod appears in the trace, here is the report. Where the attribution is confident, it can propose a quarantine and a re-plan without the offending mod. Where it is not, it is still a bug report with the exact set attached — which is far more than "someone said it crashed last week".
Player reports carry the digest. A report submitted through the site records which version and which digest was deployed at that moment. Bug reports against modpacks are usually useless because nobody knows what was installed; this makes that question answerable by construction.
Neither of these is a test. They are a feedback loop that costs nothing to run and improves the conflict graph with exactly the failures boot validation misses.
A validation harness that silently stops detecting failures is worse than no harness, because everything it passes is believed. This is a normal way for such systems to rot: a log format changes, a pattern stops matching, and every run goes green forever.
The guard is a canary: periodically run a set containing a pair already proven incompatible, and assert the run fails. If a known-bad set passes, the detector is broken and the results since the last successful canary are suspect.
Cheap — one boot on a schedule — and it is the only thing standing between a broken matcher and months of false confidence.
Tests run on demand, several at a time, capped at a configured number of concurrent sessions. The cap exists so a large bisection campaign cannot spawn sessions without limit, not because capacity is scarce.
A validation campaign is still a background activity measured in tens of minutes rather than seconds, so the pipeline is built around that: proposals queue, and results arrive when they arrive. See Bisection for how concurrency shortens fault localization.
Design stage — not implemented
Design
Validation
Trust
Interfaces
Operations
Project
Reference