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
100 changes: 100 additions & 0 deletions .github/workflows/full-parity-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: full-parity-nightly

on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:

jobs:
full-parity:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
lfs: true

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

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
python -m pip install --upgrade pip
python -m pip install -e .[dev,docs,notebooks]
python -m pip install reportlab pillow

- name: Checkout upstream MATLAB nSTAT repo snapshot
run: |
GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 https://github.com/cajigaslab/nSTAT.git /tmp/upstream-nstat

- name: Prepare deterministic validation images
run: |
python tools/parity/prepare_validation_images.py

- name: Run full parity and notebook gates
run: |
python tools/parity/build_parity_snapshot.py \
--matlab-root /tmp/upstream-nstat \
--fail-on medium
python tools/parity/build_numeric_drift_report.py \
--fixtures-manifest tests/parity/fixtures/matlab_gold/manifest.yml \
--thresholds parity/numeric_drift_thresholds.yml \
--report-out parity/numeric_drift_report.json \
--fail-on-violation
python tools/parity/check_functional_parity_progress.py \
--report parity/function_example_alignment_report.json \
--policy parity/functional_gate_policy.yml
python tools/parity/check_example_output_spec.py \
--report parity/function_example_alignment_report.json \
--spec parity/example_output_spec.yml
python tools/notebooks/run_notebooks.py --group all --timeout 900

- name: Generate full validation PDF
run: |
python tools/reports/generate_validation_pdf.py \
--repo-root "$GITHUB_WORKSPACE" \
--matlab-help-root /tmp/upstream-nstat/helpfiles \
--notebook-group all \
--timeout 900 \
--skip-command-tests \
--parity-mode gate

- name: Enforce visual validation gate
run: |
python tools/reports/check_validation_visuals.py \
--report-pdf 'output/pdf/*.pdf' \
--images-root tmp/pdfs/validation_report/notebook_images \
--min-unique-images-per-topic 1 \
--max-duplicate-pdf-pages 0

- name: Upload parity artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: nightly-parity-artifacts
path: |
parity/function_example_alignment_report.json
parity/numeric_drift_report.json
parity/parity_gap_report.json
parity/method_probe_report.json
parity/method_closure_sprint.md
if-no-files-found: warn

- name: Upload validation PDF artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: nightly-validation-pdf
path: output/pdf/*.pdf
if-no-files-found: warn

- name: Upload notebook image artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: nightly-validation-images
path: tmp/pdfs/validation_report/notebook_images
if-no-files-found: warn
3 changes: 3 additions & 0 deletions .github/workflows/release-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,15 @@ jobs:

- name: Generate RC release notes
run: |
PREV_TAG="$(git tag --list 'v*-rc*' | sort -V | grep -vx "$TAG_NAME" | tail -n 1)"
echo "Using previous RC tag: ${PREV_TAG}"
python tools/release/generate_rc_release_notes.py \
--repo-root "$GITHUB_WORKSPACE" \
--tag "$TAG_NAME" \
--commit "$GITHUB_SHA" \
--run-url "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
--validation-pdf "${{ steps.pdf.outputs.name }}" \
--previous-tag "${PREV_TAG}" \
--output release_notes.md

- name: Publish RC release
Expand Down
2 changes: 1 addition & 1 deletion docs/help/parity_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ artifacts in the `parity/` directory.
| Required topics checked | 30 |
| Topics passed | 31 |
| Topics failed | 0 |
| Metrics checked | 126 |
| Metrics checked | 180 |
| Metrics failed | 0 |

## Frozen MATLAB data snapshot
Expand Down
Loading