Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
dfae09b
uorc client: LexLean-exported Rust compress/decompress, CLI, wasm, Pa…
claude Nov 8, 2026
6adfcc5
Export the client with shared-box LexLean; pin it; tighten wasm stack
claude Nov 8, 2026
f1918d5
Keep the client roots non-executable in the authority graph
claude Nov 8, 2026
31667b1
release: check out complete history
claude Nov 8, 2026
a8c670a
deny: license the exported client crates under the repository licence
claude Nov 8, 2026
8a7697e
Merge branch 'main' into claude/project-thread-jl6avw
afflom Nov 8, 2026
89b9536
client: pin LexLean to claude/uorc-pin (shared-box lowering #441 + in…
claude Nov 9, 2026
3ad64ef
client: ulz kernel archives (LZ + range coder as a UORC program graph)
claude Nov 9, 2026
d179aeb
client: raw archives decode by a rebuild check instead of the referen…
claude Nov 9, 2026
bf74609
client: smaller ulz kernel graph (2988 -> 2598 bytes)
claude Nov 9, 2026
1d4975c
Settle the open conformance rows and benchmark Silesia on release
claude Nov 9, 2026
9cb6d5a
registry: canonical lexlean fmt after retiring rows
claude Nov 9, 2026
160b21d
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 9, 2026
aae1267
Merge main (#110) and bind UC-API-01 and UC-OBJ-01 to the client comm…
claude Nov 9, 2026
96f4136
Merge branch 'main' into claude/project-thread-wg24ye
afflom Nov 9, 2026
6b696ab
Merge branch 'main' into claude/project-thread-wg24ye
afflom Nov 9, 2026
a7c31ac
uorc-wasm: inspect returns a JSON array since #112
claude Nov 9, 2026
3d5ccfa
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 9, 2026
ca1dfe9
Bind UC-BAS-01 to the standard basis and follow #116's level API
claude Nov 9, 2026
c961197
Merge branch 'main' into claude/project-thread-wg24ye
afflom Nov 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 34 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Builds the uorc client from the committed LexLean-exported Rust (generated/rust)
# and publishes it: native binaries, the library source bundle, the WebAssembly
# module, a benchmark run, and the GitHub Pages site that runs the client.
# module, a Canterbury and Silesia benchmark run, and the GitHub Pages site that runs the client.
name: release

on:
Expand Down Expand Up @@ -60,26 +60,49 @@ jobs:
name: native-${{ matrix.target }}
path: dist/*.tar.gz*
if-no-files-found: error
- name: Fetch the Canterbury corpus
if: matrix.target == 'x86_64-unknown-linux-gnu'

# Measurement only (UC-PERF-01): the release binary on the Canterbury and
# Silesia corpora against standard compressors. It runs on release, never on
# pull requests, and its table goes into the release notes and the Pages site.
bench:
name: benchmark
needs: native
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ env.TAG }}
fetch-depth: 0
persist-credentials: false
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
with:
name: native-x86_64-unknown-linux-gnu
path: dist
- name: Fetch the corpora and the comparison tools
run: |
set -euo pipefail
sudo apt-get install -y -qq zstd brotli >/dev/null
mkdir -p corpus/canterbury
curl -fsSL https://corpus.canterbury.ac.nz/resources/cantrbry.tar.gz | tar -xz -C corpus/canterbury
tar -C dist -xzf "dist/uorc-${TAG}-x86_64-unknown-linux-gnu.tar.gz"
mkdir -p corpus/canterbury corpus/silesia
curl -fsSL --retry 3 https://corpus.canterbury.ac.nz/resources/cantrbry.tar.gz | tar -xz -C corpus/canterbury
curl -fsSL --retry 3 -o silesia.zip https://sun.aei.polsl.pl/~sdeor/corpus/silesia.zip
unzip -q -d corpus/silesia silesia.zip
find corpus/silesia -mindepth 2 -type f -exec mv -t corpus/silesia {} +
- name: Benchmark the release binary
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: node scripts/bench.mjs --uorc "target/${{ matrix.target }}/release/uorc" --corpus corpus/canterbury --steps 0 --out bench
run: node scripts/bench.mjs --uorc "dist/uorc-${TAG}-x86_64-unknown-linux-gnu/uorc" --corpus corpus/canterbury,corpus/silesia --steps 0 --out bench
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: matrix.target == 'x86_64-unknown-linux-gnu'
with:
name: bench
path: bench/
path: |
bench/bench.json
bench/bench.md
bench/bench.html
if-no-files-found: error

wasm:
name: wasm and site
needs: native
needs: bench
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
Expand Down Expand Up @@ -128,7 +151,7 @@ jobs:

publish:
name: publish release
needs: [native, wasm]
needs: [native, bench, wasm]
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
Expand Down
88 changes: 22 additions & 66 deletions CONFORMANCE.md

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions crates/uorc-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,45 @@ pub extern "C" fn decompress_tree() -> i32 {
.map(|entries| write_entries(&entries))
}))
}

#[cfg(test)]
mod tests {
use super::*;

fn run(input: &[u8], op: impl FnOnce() -> i32) -> (i32, Vec<u8>) {
INPUT.with(|buffer| *buffer.borrow_mut() = input.to_vec());
let code = op();
(code, OUTPUT.with(|output| output.borrow().clone()))
}

/// The page's exports run the library's compress and decompress unchanged.
#[test]
fn wasm_exports_match_the_library_uc_api_01() {
let input = [0u8, 0xff, 0xc3, 0x28, b'a', b'b', b'a', b'b', 0];
for (best, level) in [(1, uorc::Level::Best), (0, uorc::Level::Fast)] {
let (code, archive) = run(&input, || compress(0, best));
assert_eq!(code, OK);
let library = uorc::compress(&input, 0, level).expect("library archive");
assert_eq!(archive, library, "{level:?}");
}
let (_, archive) = run(&input, || compress(0, 0));
assert_eq!(run(&archive, || decompress()), (OK, input.to_vec()));
assert_eq!(
run(b"not an archive", || decompress()),
(DECODE, Vec::new())
);

let (code, json) = run(&archive, || inspect());
assert_eq!(code, OK);
let info = uorc::inspect(&archive).expect("library inspect");
assert_eq!(json, format!("[{}]", info.to_json()).into_bytes());
ORIGINAL.with(|original| *original.borrow_mut() = input.to_vec());
let (code, json) = run(&archive, || verify(1));
assert_eq!(
(code, json),
(OK, format!("[{}]", info.to_json()).into_bytes())
);
ORIGINAL.with(|original| original.borrow_mut()[0] ^= 1);
assert_eq!(run(&archive, || verify(1)).0, MISMATCH);
}
}
Loading
Loading