Archive incari-client (client, 26.3, clean)

This commit is contained in:
2026-11-28 00:54:38 -06:00
parent 7a6174687f
commit 12838e838c
2383 changed files with 280266 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# Changes here need a human reviewer. Agents may
# open pull requests that touch these paths, but a person approves them.
# Patches into Mojang code and the manifest of replaced classes.
/patches/ @incari-client
# Graphics and networking.
/render-*/ @incari-client
/tools/shaders/ @incari-client
/net/ @incari-client
# Licensing, and the guards and workflow that keep the repo legal.
/LICENSE @incari-client
/LICENSE-EXCEPTION.txt @incari-client
/DCO.txt @incari-client
/docs/adr/0002-* @incari-client
/.github/ @incari-client
/tools/ci/ @incari-client
/tools/copycheck/ @incari-client
# The architecture's allowed dependencies.
/gradle/module-boundaries.txt @incari-client
@@ -0,0 +1,51 @@
name: Bug report
description: Something in Incari Client doesn't work as it should.
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for reporting! Please don't attach or link a playable build, and don't share passwords or recovery codes.
- type: textarea
id: what
attributes:
label: What happened
description: What you did, what you expected, and what happened instead.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: |
1. Join a 1.8.9 server
2. Open the module menu
3. ...
- type: input
id: version
attributes:
label: Incari Client version
description: Shown at the bottom left of the title screen.
- type: dropdown
id: build
attributes:
label: Build
options:
- Fast
- Compatible
- Offline HTML file
- Not sure
- type: input
id: browser
attributes:
label: Browser and device
placeholder: Chrome 141 on a school Chromebook
- type: input
id: server
attributes:
label: Server and its version (if any)
- type: textarea
id: extra
attributes:
label: Anything else
description: Screenshots, the browser console's errors (F12), what you've tried.
+8
View File
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Feedback and ideas
url: https://github.com/incari-client/incari-client/discussions/new?category=feedback
about: Suggestions, feature ideas and what you think of Incari Client go to Discussions.
- name: Security problem
url: https://github.com/incari-client/incari-client/security/advisories/new
about: Report vulnerabilities privately, never in a public issue (see SECURITY.md).
+25
View File
@@ -0,0 +1,25 @@
## What
<!-- One concern per pull request. What does it change? -->
## Why
<!-- The issue or need, and the reason for this approach. -->
## Performance impact
<!-- Download size, load time, heap, frame time: numbers from the CI report or a local run, or
"none" with a reason. Renderer and networking changes always need numbers. -->
## Screenshots
<!-- Visual changes only. Never attach a playable build or a link to one. -->
## Checklist
- [ ] `./gradlew check` and `npm run check` pass locally
- [ ] `./incari rebuild --check` and `./incari copycheck` pass (if Java or patches changed)
- [ ] Patches are one- or two-line hooks into Incari modules, marked `// Incari start: <reason>` / `// Incari end`
- [ ] No Mojang content, builds or links to playable builds; nothing copied from the decompiled game
- [ ] Tests cover the change, and the module README still describes it
- [ ] Every commit is signed off (`git commit -s`)
+140
View File
@@ -0,0 +1,140 @@
# CI for the Incari repo. It builds and tests, and never publishes anything: every Incari build
# contains Mojang code (CONTRIBUTING.md). tools/ci/check-no-publishing.sh enforces that on this file.
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
guards:
name: Repo guards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: No Mojang content or builds tracked
run: tools/ci/check-repo-content.sh
- name: No workflow publishes builds
run: tools/ci/check-no-publishing.sh
- name: Every commit is signed off (DCO)
if: github.event_name == 'pull_request'
run: tools/ci/check-dco.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
- name: Patch budget
run: tools/ci/check-patch-budget.sh
- name: Every feature has a Rust status
run: tools/ci/check-rust-status.sh
- name: No hard-coded Minecraft version
run: tools/ci/check-version-literals.sh
- name: Install glslang
run: sudo apt-get install -y --no-install-recommends glslang-tools
- name: Shaders validate
run: tools/ci/check-glsl.sh
typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 26
cache: npm
- run: npm ci
- name: Types, lint, format and tests
run: npm run check
rust:
name: Rust build's mods
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# The mods' own logic, without Horizon: the Rust build itself needs the game's files.
- name: Format, lints and tests
working-directory: rust
run: |
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
java:
name: Java, patches and vendor build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- uses: gradle/actions/setup-gradle@v5
# Downloads the pinned jar from Mojang and decompiles it inside the runner. The result stays
# in work/ on the runner and is never cached or uploaded.
- name: Fresh clone to patched tree
run: ./incari setup
- name: Patches round-trip (and replaced classes stamped)
run: ./incari rebuild --check
- name: Library pins match Minecraft's
run: tools/ci/check-mojang-pins.sh
# Formatting, Error Prone and NullAway, module boundaries, ArchUnit and unit tests, and the
# full client compiled from the patched tree. That includes the tests that parse
# app-web/download-budget.properties; the size check itself (:app-web:checkDownloadSize) runs
# where the browser build is compiled, which needs more memory (a 20 GB heap) than a hosted
# runner has.
- name: Build and check
run: ./gradlew check
# Translates every shader the game can compile to GLSL ES 3.00 for the WebGL2 backend, and has
# glslang compile and link each program (required in CI). Seconds, unlike the browser build.
# The output holds translated Mojang shaders: it stays on the runner and is never uploaded.
- name: Install glslang
run: sudo apt-get install -y --no-install-recommends glslang-tools
- name: Shaders translate for WebGL2
run: ./gradlew :app-web:shaders
- name: No Incari code copied from the game
run: ./incari copycheck
# The performance report (ADR 0021). The browser build needs more memory (a 20 GB heap)
# and a GPU than a hosted runner has, so this runs on a self-hosted runner labelled incari-perf
# (docs/benchmark.md sets one up), and only once the repository variable
# INCARI_PERF_RUNNER is 'true'. Never for pull requests from forks, whose code would run on that
# machine. The build, the world and every render stay on the runner; only the figures reach the
# job summary, which is the pull request's performance report. A figure that regressed past its
# rule against the runner's baseline (app-web/benchmark/baseline.properties) fails the job.
perf:
name: Performance report
if: >-
vars.INCARI_PERF_RUNNER == 'true' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
runs-on: [self-hosted, incari-perf]
timeout-minutes: 120
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
# The page's scripts are TypeScript, stripped by Node.
- uses: actions/setup-node@v7
with:
node-version: 26
# The game, decompiled and patched, and its asset index, in work/ on the runner only.
- name: Fresh clone to patched tree
run: ./incari setup
- name: Asset index
run: ./incari assets
# Compiles the browser build (build/teavm/, never uploaded) and measures the download. The
# release build: what players get, and what the budgets are about (ADR 0025).
- name: Download size
run: ./gradlew :app-web:checkDownloadSize -PdownloadSize.noBrotli -Pteavm.release
- name: Benchmark
run: >-
./gradlew :app-web:benchmark -Pbenchmark.skipBuild -Pteavm.release
-Pbenchmark.machine=${{ vars.INCARI_PERF_MACHINE || 'desktop' }}