Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,55 @@ jobs:
name: native-abi-evidence-packet
path: target/native-abi-evidence-packet/

# ---------------------------------------------------------------------------
# Gap-suite conformance smoke (every PR + main push)
# ---------------------------------------------------------------------------
conformance-smoke:
# 2026-07-02 audit §11: nothing on the default PR path exercised
# TypeScript SEMANTICS — lint/cargo-test/api-docs-drift build and unit-
# test the compiler but never diff a compiled program against node, so
# behavioral regressions landed silently between tags (the 2026-06-23
# 851-case test262 regression and the #5763 setPrototypeOf boot breakage
# both shipped through green required checks). This job runs the gap
# suite — every test-files/test_gap_*.ts (258) AOT-compiled and diffed
# byte-for-byte against `node --experimental-strip-types` — and fails on
# any failure NOT already triaged in test-parity/known_failures.json
# (run_gap_tests.sh's no-new-untriaged gate).
#
# MEASUREMENT PHASE: deliberately not yet in the branch-protection
# required set. Once wall-time on real PRs is confirmed acceptable, add
# `conformance-smoke` to the required contexts; until then a red here is
# a loud non-blocking signal.
continue-on-error: true
if: github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v7

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2
with:
shared-key: "${{ runner.os }}-perry"
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'

- name: Run gap suite
run: ./scripts/run_gap_tests.sh

- name: Upload gap report
if: always()
uses: actions/upload-artifact@v7
with:
name: gap-suite-report
path: test-parity/reports/

# ---------------------------------------------------------------------------
# Parity tests (Perry output vs Node.js)
# ---------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.5.1224 — gap-suite conformance smoke on every PR (#5936)

New `conformance-smoke` CI job: every pull_request and push runs `scripts/run_gap_tests.sh` — 258 gap tests AOT-compiled and diffed byte-for-byte against node, failing on any failure not triaged in test-parity/known_failures.json. Closes the audit's headline CI gap: nothing on the default PR path exercised TypeScript semantics, which is how the 2026-06 test262 regression (851 cases) and the #5763 setPrototypeOf boot breakage merged through green required checks. Measurement phase: continue-on-error and not yet in the branch-protection required set — flip it required (add `conformance-smoke` to protected contexts) once wall-time on real PRs is confirmed.

## v0.5.1223 — audit-found capability-doc drift corrected; npm publish loop survives per-package failures (#5935)

Docs: lookbehind regex WORKS (regex→fancy-regex hybrid) — removed from CLAUDE.md categorical gaps and rewritten in porting.md (section/table/scan-list); CLAUDE.md GC facts refreshed (~55 registered scanners, conservative scan production-off, module vars uniformly NaN-boxed + rooted — module_var_data_ids is long gone); limitations.md prototype section rewritten around reality (prototype-method assignment + setPrototypeOf supported; the two real gaps: `obj.__proto__ = x` assignment form, literal `{__proto__: []}` not visible to instanceof); gap-suite count 235→258. CI: release-packages.yml platform-publish loop no longer aborts on the first failure under set -e (the mechanism that left npm linux/windows stale while darwin updated) — failures are recorded, the loop continues, the step fails at the end with the full list.
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

Perry is a native TypeScript compiler written in Rust that compiles TypeScript source code directly to native executables. It uses SWC for TypeScript parsing and LLVM for code generation.

**Current Version:** 0.5.1223
**Current Version:** 0.5.1224


## TypeScript Parity Status
Expand Down
Loading
Loading