Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4041051
refactor the codebase
ankurankan Jun 11, 2026
a374865
Remove Makevars
ankurankan Jun 11, 2026
e01652b
Another claude pass
ankurankan Jun 11, 2026
18efff5
docs: design golden fixture parity gate
ankurankan Jul 18, 2026
ddb106b
docs: plan golden fixture parity gate
ankurankan Jul 18, 2026
979e0c5
Updates
ankurankan Jul 18, 2026
b0a6001
Updates
ankurankan Jul 18, 2026
098cd25
Updates
ankurankan Jul 21, 2026
9e325d6
docs: design pgmpy parity and simplification
ankurankan Aug 12, 2026
1776c65
docs: plan parity completion and simplification
ankurankan Aug 12, 2026
5935a8d
test: add reproducible golden parity fixture
ankurankan Aug 12, 2026
03e09de
test: cover mismatched fixture column lengths
ankurankan Aug 12, 2026
498db49
test: enforce complete golden result contract
ankurankan Aug 12, 2026
098f2e0
test: compare golden cases with current pgmpy
ankurankan Aug 12, 2026
4adff91
fix: distinguish missing pgmpy dof
ankurankan Aug 12, 2026
1387e1e
ci(python): restore lint type and parity gates
ankurankan Aug 12, 2026
a6f24e0
docs(python): fix Fisher-Z result example
ankurankan Aug 12, 2026
953572b
ci: restore JavaScript and R quality gates
ankurankan Aug 12, 2026
ff8cf2a
docs: document parity workflow and trim dependencies
ankurankan Aug 12, 2026
a4e0d54
docs: clarify continuous degrees of freedom
ankurankan Aug 12, 2026
1bc0632
fix(js): synchronize clean-install lockfile
ankurankan Aug 12, 2026
3d9b6d8
fix: close final parity and packaging gaps
ankurankan Aug 12, 2026
ee913ae
compliance(r): retain extendr vendor notice
ankurankan Aug 12, 2026
63bc765
fix(r): correct extendr notice attribution
ankurankan Aug 12, 2026
cf8c187
docs: design first-wave package simplification
ankurankan Aug 13, 2026
4557499
docs: plan first-wave package simplification
ankurankan Aug 13, 2026
60183ab
build: trim unused statistical dependencies
ankurankan Aug 13, 2026
d42cd6d
fix: preserve locked dependency versions
ankurankan Aug 13, 2026
0bbd56d
build(js): use one npm dependency graph
ankurankan Aug 13, 2026
db35b02
ci: remove redundant build setup
ankurankan Aug 13, 2026
0d7b4ed
test(core): centralize discrete family contracts
ankurankan Aug 13, 2026
55fdd40
docs: align package guides with data-bound API
ankurankan Aug 13, 2026
7fd06aa
fix: keep simplification reports ephemeral
ankurankan Aug 13, 2026
35fd57d
fix(docs): keep packaged core links valid
ankurankan Aug 13, 2026
499c7a2
fix: keep all task reports ephemeral
ankurankan Aug 13, 2026
1e1c66d
fix(js): restore lockfile runtime dependency
ankurankan Aug 13, 2026
83570c4
fix: align simplification contracts
ankurankan Aug 13, 2026
2aa00bb
Fixes ci
ankurankan Aug 13, 2026
60a18b2
Updates
ankurankan Aug 13, 2026
62eb34e
Updatess"
ankurankan Aug 13, 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
9 changes: 0 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Install system dependencies
run: sudo apt-get install -y libopenblas-dev

- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -85,9 +82,6 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Install system dependencies
run: sudo apt-get install -y libopenblas-dev

- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -121,9 +115,6 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Install system dependencies
run: sudo apt-get install -y libopenblas-dev

- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

Expand Down
34 changes: 30 additions & 4 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
name: JS CI

# NOTE: The build/test commands below were verified by running them locally
# against this branch. They are NOT exercised on GitHub Actions until this
# workflow runs there, so the exact runner setup may still need tweaks.
#
# Build: a *real* wasm-pack (installed via jetli/wasm-pack-action) plus the
# wasm32-unknown-unknown target build the package into crates/ci-js/pkg, which
# the vitest suite imports as ../pkg/ci_js.js. `wasm-opt` is disabled via the
# crate's package metadata (crates/ci-js/Cargo.toml) because the locally
# installed wasm-opt is too old to parse the modern wasm the core emits; it only
# shrinks the binary, so disabling it does not affect correctness. CI may
# re-enable it once a newer wasm-opt is guaranteed on the runner.
#
# The root npm script discovers tests/*.test.js; the golden parity suite
# (golden.test.js) covers all 80 fixture cases.

on:
push:
branches: [master, development]
paths:
- "crates/ci-js/**"
- "crates/ci-core/**"
- "tests/fixtures/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/js.yml"
pull_request:
paths:
- "crates/ci-js/**"
- "crates/ci-core/**"
- "tests/fixtures/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/js.yml"
Expand Down Expand Up @@ -70,20 +87,29 @@ jobs:

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2

# A real wasm-pack release (not the placeholder installer script).
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
uses: jetli/wasm-pack-action@v0.4.0
with:
version: 0.15.0

# Verified locally: builds into crates/ci-js/pkg (wasm-opt disabled via the
# crate's package metadata). The vitest suite imports ../pkg/ci_js.js.
- name: Build WASM package
working-directory: crates/ci-js
run: wasm-pack build --target nodejs --out-dir pkg
run: wasm-pack build crates/ci-js --target nodejs

# Verified locally: `npm ci && npm test` in crates/ci-js runs the root
# script, which discovers tests/*.test.js; the golden suite covers all 80
# fixture cases.
- name: Install dependencies
working-directory: crates/ci-js
run: npm ci

- name: Run tests
working-directory: crates/ci-js
run: npx vitest run --passWithNoTests
run: npm test
63 changes: 45 additions & 18 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
name: Python CI

# NOTE: The build/test commands below were verified by running them locally
# against this branch. They are NOT exercised on GitHub Actions until this
# workflow runs there, so the exact runner setup may still need tweaks.
#
# The bindings are built with maturin. On a Python newer than the installed
# PyO3 supports, set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 (the crate already
# enables the `abi3-py310` feature, so a single abi3 wheel covers 3.10+). On CI
# we pin a supported Python (3.11-3.13) where that env var is not needed.
#
# The redesign removed the generated stubs / stub_gen binary, so there is no
# longer a "stubs up-to-date" job; the checked-in .pyi is maintained by hand.

on:
push:
branches: [master, development]
paths:
- 'crates/ci-python/**'
- 'crates/ci-core/**'
- 'crates/ci-r/**'
- 'crates/ci-js/Cargo.toml'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/python.yml'
- '.github/workflows/js.yml'
- '.github/workflows/r.yml'
pull_request:
paths:
- 'crates/ci-python/**'
- 'crates/ci-core/**'
- 'crates/ci-r/**'
- 'crates/ci-js/Cargo.toml'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/python.yml'
- '.github/workflows/js.yml'
- '.github/workflows/r.yml'

concurrency:
group: python-${{ github.ref }}
Expand All @@ -34,11 +56,12 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"

- name: Install ruff
run: pip install ruff

# Verified locally: `ruff format --check .` / `ruff check .` in crates/ci-python.
- name: Check formatting
working-directory: crates/ci-python
run: ruff format --check .
Expand All @@ -47,49 +70,54 @@ jobs:
working-directory: crates/ci-python
run: ruff check .

python-stubs:
name: Python Stubs Up-to-date
golden-fixture:
name: Golden Fixture
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
python-version: "3.12"

- uses: Swatinem/rust-cache@v2
- name: Install fixture dependencies
run: pip install pytest -r tests/fixtures/requirements.txt

- name: Regenerate stubs
run: cargo run --release --bin stub_gen
- name: Test fixture tooling
run: pytest tests

- name: Check for diff
run: git diff --exit-code -- crates/ci-python/
- name: Check generated fixture
run: python tests/fixtures/generate_golden.py --check

python-test:
name: Python Tests
needs: [python-lint]
needs: [golden-fixture, python-lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# Use a Python supported by the installed PyO3; no forward-compat env
# var needed here. The abi3-py310 wheel also works on 3.10+ at runtime.
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5

- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}

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

- uses: Swatinem/rust-cache@v2

- name: Install Python dependencies
run: pip install maturin pytest numpy mypy
run: pip install maturin numpy pandas pandas-stubs pytest mypy

# Verified locally: maturin builds the extension; the golden parity test
# (crates/ci-python/test/test_golden.py) reproduces all 80 fixture cases.
# On a too-new interpreter, prefix with
# PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 (not required for 3.11-3.13).
- name: Build and install extension
working-directory: crates/ci-python
run: pip install -e . --no-build-isolation
Expand All @@ -98,7 +126,6 @@ jobs:
working-directory: crates/ci-python
run: mypy test/

# Verified locally: `pytest crates/ci-python/test/` -> golden = 80/80.
- name: Run tests
working-directory: crates/ci-python
shell: bash
run: pytest || [ "$?" -eq 5 ]
run: pytest crates/ci-python/test/
54 changes: 46 additions & 8 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
name: R CI

# Toolchain: R + rextendr (which compiles the embedded Rust crate), devtools,
# testthat, and jsonlite. rextendr::document() regenerates the extendr wrappers,
# then the workflow tests and checks the built source package archive.
#
# We use r-lib/actions/setup-r (a standard CRAN R), which does NOT require the
# LD_LIBRARY_PATH workaround. (A *conda* R does: there you must export
# LD_LIBRARY_PATH=$(Rscript -e 'cat(R.home("lib"))') so the embedded Rust can
# link libR — not needed with the standard action below.)
#
# Commands are run from the repo root with the package path passed explicitly.

on:
push:
branches: [master, development]
paths:
- 'crates/ci-r/**'
- 'crates/ci-core/**'
- 'tests/fixtures/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/r.yml'
pull_request:
paths:
- 'crates/ci-r/**'
- 'crates/ci-core/**'
- 'tests/fixtures/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/r.yml'
Expand Down Expand Up @@ -43,7 +56,9 @@ jobs:

- name: Check R formatting
working-directory: crates/ci-r
run: styler::style_pkg(dry = "fail")
run: |
files <- setdiff(list.files("R", pattern = "[.]R$", full.names = TRUE), "R/extendr-wrappers.R")
styler::style_file(files, dry = "fail", include_roxygen_examples = FALSE)
shell: Rscript {0}

- name: Lint R code
Expand All @@ -69,23 +84,46 @@ jobs:
with:
r-version: release

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Rust MSRV
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.81.0

- uses: Swatinem/rust-cache@v2

- name: Check packaged source and fixture drift
run: python crates/ci-r/tools/sync_package_assets.py --check

# jsonlite is declared in Suggests for the golden suite; install it
# alongside devtools/rextendr/testthat.
- name: Install R package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: crates/ci-r
extra-packages: any::devtools, any::rextendr
extra-packages: any::devtools, any::rextendr, any::testthat, any::jsonlite

- name: Generate Makevars and R wrappers
working-directory: crates/ci-r
run: rextendr::document()
run: rextendr::document("crates/ci-r")
shell: Rscript {0}

- name: Run R tests
working-directory: crates/ci-r
run: devtools::test(reporter = "summary")
run: devtools::test("crates/ci-r", reporter = "summary")
shell: Rscript {0}

- name: Build and check source package
run: |
archive <- devtools::build(
"crates/ci-r",
path = tempdir(),
manual = FALSE,
vignettes = FALSE
)
message("Checking built source archive: ", archive)
devtools::check_built(
archive,
cran = FALSE,
manual = FALSE,
args = "--no-manual",
error_on = "warning"
)
shell: Rscript {0}
Loading
Loading