Build shared mod source recovery pipeline #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #5. Scope: all 49 frozen 0.6.6 package records.
The full source pipeline has run. Inventory and Java 8 syntax checks pass. Raw CFR failures remain preserved; selected Vineflower output and reviewed source patches resolve them.
Source recovery and selected-source validation pass. Evidence: vendor/pack-manifests/tekkit-lite/source-inventory.json and verification.json; docs/mod-source-recovery.md. Newly recovered mod compilation, bytecode agreement, and runtime integration are tracked in #18. Existing IC2 strict comparison still has 3627 matching entries and zero differences. No tests were written.
Official BuildCraft and IC2 package zips are ready under their package/ directories. IC2 shipped input exactly matches its existing original jar and must keep its maintained source intact. BuildCraft 3.4.3 differs from maintained 3.4.6, so preserve raw exact 3.4.3 recovery even if staging is skipped for the existing module. Coordinator is acquiring the historical BuildCraft tag source separately.
Batch input for #10 is ready: cofhcore, thermalexpansion, mfr, netherores, omnitools, powerconverters, powercrystalscore. All seven need exact binary recovery; four upstream release-number matches are reference-only until build revisions are proven. MFR, ThermalExpansion, and OmniTools include third-party API classes. PowerCrystalsCore 1.0.3-34 is a coremod: preserve META-INF/MANIFEST.MF, FMLCorePlugin, MCVersion, and BuildNumber.
Run from the repository root after source research finishes:
./gradlew :tools:bytecode:recoverMods
./gradlew :tools:bytecode:recoverMods -PmodRecoveryIds=lumyskinpatch,flatbedrock
Use Java 21 for Gradle and provide Java 8 as JAVA8_HOME if it is not detected. On this machine: JAVA_HOME=$HOME/.gradle/jdks/eclipse_adoptium-21-amd64-linux.2 JAVA8_HOME=/tmp/tekkit-recovery-jdk8 ./gradlew :tools:bytecode:recoverMods. The temporary Java 8 installation may need replacement later.
Each package gets recovery-report.json, with package MD5/SHA-256, archive paths and counts, class-bearing artifacts, class coverage, missing sources, CFR errors and staging conflicts. Raw sources and resources are under decompiled//; CFR logs are beside them. Package wrappers without classes also retain resources. Existing BuildCraft and IC2 source is never staged. Other existing files are never replaced; differing content is a reported conflict.
The task fails if any package, archive, decompiler, coverage, or staging error is found. Coverage uses SourceFile/outer-name matching and does not prove source correctness or bytecode agreement. Nested jars and zips have separate output paths. The remapper indexes all selected artifacts as hierarchy inputs for each artifact; a full run can be slow. Package archives above 256 MiB per entry or deeper than 12 levels are rejected and reported. CFR output is not verified by compilation. compileJava passed; no tests, mod builds, game, or recovery runs were performed.
Full primary batch finished. It inventoried 51 class-bearing artifacts / 7617 classes. Hard remap failure: lumyskinpatch has duplicate output net/minecraft/client/multiplayer/ServerAddress.class; this needs version/namespace-aware handling, not dropping classes. CFR coverage gaps include basemods amq$1/sv$1/uq$1 and nei-plugins CarpenterRecipeHandler (check SourceFile attribution). Failures/warnings: chickenchunks, codechickencore, computercraft, dimensional-doors, factorization, redpower TileDiskDrive, reisminimap, tubestuff, wrcbe, basemods CodecJOrbis. RedPower staging conflicts are summary.txt and signed META-INF files, not Java classes. Preserve raw metadata separately; these are unsuitable for merged rebuilt resources. Follow-up Terra worker is implementing fallback and coverage correction.
Coordinator is handling generated staging cleanup separately: summary.txt belongs with raw output, and original jar signatures cannot be copied into rebuilt resources. RedPower conflicts currently involve only summary.txt and signed META-INF metadata. Original manifests must remain in raw output because coremod manifest attributes matter for later Gradle integration. Please leave RedPower metadata cleanup/report edits to coordinator; fallback worker should focus on source repairs and coverage.
For #17 I am implementing a separate Lumy variant recovery helper. Please register a Gradle JavaExec entrypoint for dev.tekkitlite.tools.bytecode.LumyRecovery with arguments: rootProject.projectDir, cfr.asPath. I will not edit your ModRecovery.java or build.gradle.kts. Please confirm when available; I will coordinate tool compilation.
I will run the Lumy helper through a temporary Gradle init script, so compilation and recovery can proceed without editing your build file. Please still register the permanent task when convenient.