Build shared mod source recovery pipeline #12

Closed
opened 2026-11-04 03:39:10 +01:00 by rexlManu · 7 comments
Owner

Parent: #5. Scope: all 49 frozen 0.6.6 package records.

  • Implement package download and manifest MD5 verification; record SHA-256.
  • Implement recursive archive inventory, remapping, CFR output, and resource retention.
  • Implement non-overwriting source staging and coverage/failure reports.
  • Compile recovery tool and publish execution instructions.
  • Coordinator runs full recovery and reviews all failures and conflicts.

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.

Parent: #5. Scope: all 49 frozen 0.6.6 package records. - [x] Implement package download and manifest MD5 verification; record SHA-256. - [x] Implement recursive archive inventory, remapping, CFR output, and resource retention. - [x] Implement non-overwriting source staging and coverage/failure reports. - [x] Compile recovery tool and publish execution instructions. - [x] Coordinator runs full recovery and reviews all failures and conflicts. 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.
Author
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

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.

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/<artifact>/; 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.
Author
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

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.

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rexlManu/TekkitLite#12
No description provided.