Core regression / Python core, intervention UI and release configuration (push) Successful in 4m35s
Core regression / JavaScript syntax (push) Successful in 6s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 3m54s
Core regression / JavaScript syntax (pull_request) Successful in 4s
159 lines
7.7 KiB
YAML
159 lines
7.7 KiB
YAML
name: Core regression
|
|
|
|
on:
|
|
push:
|
|
branches: [main, 'codex/**']
|
|
tags: ['v*']
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
portable-regression:
|
|
name: Python core, intervention UI and release configuration
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:20-bookworm
|
|
timeout-minutes: 20
|
|
env:
|
|
QT_QPA_PLATFORM: offscreen
|
|
DSH_TELEMETRY_DISABLED: '1'
|
|
PATH: /opt/ci-node/node_modules/.bin:/opt/ci-python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
steps:
|
|
- name: Checkout tested commit
|
|
run: |
|
|
git init .
|
|
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
|
git fetch --depth=1 origin "${GITHUB_SHA}"
|
|
git checkout --detach FETCH_HEAD
|
|
- name: Install runner Python and test dependencies
|
|
run: |
|
|
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
|
[ -f "$apt_source" ] || continue
|
|
sed -i 's|http://deb.debian.org|https://deb.debian.org|g' "$apt_source"
|
|
done
|
|
if ! apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update; then
|
|
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
|
[ -f "$apt_source" ] || continue
|
|
sed -i 's|https://deb.debian.org|https://mirrors.ustc.edu.cn|g' "$apt_source"
|
|
done
|
|
apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update
|
|
fi
|
|
DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=2 install -y --no-install-recommends python3 python3-venv libegl1 libopengl0 libgl1 libxkbcommon0 libdbus-1-3 libfontconfig1 libglib2.0-0 libxcb-cursor0 fonts-dejavu-core libnss3 libasound2 libxcomposite1 libxdamage1 libxrandr2 libxtst6 libgbm1 libxkbfile1 libxss1 libxshmfence1 libx11-xcb1
|
|
python3 -m venv /opt/ci-python
|
|
/opt/ci-python/bin/python3 -m pip install 'pytest>=8,<9' 'pytest-qt>=4.4,<5' 'PySide6>=6.7,<7' 'openpyxl>=3.1,<4'
|
|
/opt/ci-python/bin/python3 --version
|
|
/opt/ci-python/bin/python3 -c "from PySide6.QtWebEngineCore import QWebEnginePage; from PySide6.QtWebEngineWidgets import QWebEngineView; print('Qt WebEngine native libraries loaded')"
|
|
- name: Install supported Node and locked offline Harness dependencies
|
|
run: |
|
|
# The cached Node 20 image boots this runner; Harness requires Node 24.9+.
|
|
npm install --prefix /opt/ci-node --no-audit --no-fund node@24.11.1
|
|
node --version
|
|
npm ci --prefix integration/dsh --no-audit --no-fund
|
|
- name: Read-only model availability (real Harness, no remote model calls)
|
|
run: |
|
|
node tools/verify_dsh_model_availability.mjs
|
|
node --test tests/integration/test_dsh_standard_compat.mjs
|
|
node tools/verify_dsh_incident_restart.mjs
|
|
- name: Compile application and build helpers
|
|
run: python3 -m compileall -q src packaging tools
|
|
- name: Core regression (no CAD or production credentials)
|
|
run: >-
|
|
python3 -m pytest -q
|
|
tests/dsh/test_core.py
|
|
tests/dsh/test_failure_policy.py
|
|
tests/dsh/test_decision_log.py
|
|
tests/dsh/test_experience.py
|
|
tests/dsh/test_issue_broker.py
|
|
tests/dsh/test_incidents.py
|
|
tests/dsh/test_availability.py
|
|
tests/dsh/test_availability_harness.py
|
|
tests/dsh/test_availability_retry.py
|
|
tests/dsh/test_health.py
|
|
tests/ui/test_dsh_native_menu.py
|
|
tests/ui/test_dsh_blockers.py
|
|
tests/ui/test_dsh_blocker_sources.py
|
|
tests/ui/test_dsh_diagnosis_lifecycle.py
|
|
tests/ui/test_dsh_status_indicator.py
|
|
tests/ui/test_nonblocking_controls.py
|
|
tests/ui/test_pr10_review_edges.py
|
|
tests/ui/test_query_observability.py
|
|
tests/packaging/test_dsh_runtime_staging.py
|
|
tests/packaging/test_release_configuration.py
|
|
tests/packaging/test_self_extracting_release.py
|
|
tests/trial_task_center/test_bom_template_contract.py
|
|
tests/trial_task_center/test_bom_import_review.py
|
|
tests/v1_1/test_cad_dialogs.py
|
|
tests/v1_1/test_lxb_blocking_recovery.py
|
|
tests/v1_1/test_nonblocking_items.py
|
|
tests/v1_1/test_component_scope.py
|
|
tests/v1_1/test_deferred_problem_pass.py
|
|
tests/v1_1/test_problem_workflow.py
|
|
tests/v1_1/test_problem_pass_outcomes.py
|
|
tests/v1_1/test_multi_project_regression.py
|
|
tests/v1_1/test_worker_cleanup_confirmation.py
|
|
tests/v1_1/test_headless_core.py
|
|
tests/v1_1/test_nonblocking_acceptance.py
|
|
tests/v1_1/test_nonblocking_resume.py
|
|
tests/v1_1/test_project_session_health.py
|
|
tests/v1_1/test_bom_actual_metadata.py
|
|
tests/v1_1/test_manual_dialog_native.py
|
|
tests/v1_1/test_workspace_execution.py
|
|
tests/v1_1/test_nonblocking_bom_values.py
|
|
tests/v1_1/test_value_readback.py
|
|
tests/dsh/test_run_journal.py
|
|
tests/dsh/test_incident_admission.py
|
|
tests/dsh/test_native_runtime.py
|
|
tests/dsh/test_impact.py
|
|
tests/dsh/test_pr27_run_finalization.py
|
|
tests/v1_1/test_pr27_bom_failures.py
|
|
tests/v1_1/test_pr27_netlist_pause.py
|
|
tests/v1_1/test_native_cli_netlist.py
|
|
tests/v1_1/test_netlist_execution.py
|
|
tests/v1_1/test_pr27_watchdog.py
|
|
tests/v1_1/test_pr27_pre_dispatch_failure.py
|
|
tests/v1_1/test_pr27_process_launch.py
|
|
tests/ui/test_pr27_confirmation_admission.py
|
|
tests/ui/test_dsh_ai_nonblocking.py
|
|
tests/ui/test_dsh_ai_nonblocking_main.py
|
|
tests/ui/test_dsh_task_lifecycle.py
|
|
tests/ui/test_dsh_operations.py
|
|
--junitxml=build/ci-results.xml --tb=short
|
|
- name: Report whether regressions actually executed
|
|
if: always()
|
|
run: |
|
|
summary="${GITHUB_STEP_SUMMARY:-/tmp/dsh-ci-summary}"
|
|
if [ ! -f build/ci-results.xml ]; then
|
|
echo 'Regression tests did not execute. Inspect checkout and dependency installation steps.' | tee "$summary"
|
|
else
|
|
python3 -c "import xml.etree.ElementTree as E; r=E.parse('build/ci-results.xml').getroot(); s=list(r.iter('testsuite')); print('Executed:',sum(int(x.get('tests',0)) for x in s),'Failures:',sum(int(x.get('failures',0)) for x in s),'Errors:',sum(int(x.get('errors',0)) for x in s),'Skipped:',sum(int(x.get('skipped',0)) for x in s))" | tee "$summary"
|
|
fi
|
|
- name: Windows release scope
|
|
run: |
|
|
echo 'Windows PyInstaller, Qt WebEngine startup, full runtime file hashes and extracted EXE smoke are validated on the Windows build host.'
|
|
echo 'This Linux job does not claim Windows/CAD or live model acceptance.'
|
|
|
|
javascript-regression:
|
|
name: JavaScript syntax
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:20-bookworm
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout tested commit
|
|
run: |
|
|
git init .
|
|
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
|
git fetch --depth=1 origin "${GITHUB_SHA}"
|
|
git checkout --detach FETCH_HEAD
|
|
- name: Check runtime syntax
|
|
run: |
|
|
node --check integration/dsh/start.mjs
|
|
node --check integration/dsh/task-plugin/host.mjs
|
|
node --check integration/dsh/task-plugin/client.js
|
|
node --check integration/dsh/model_availability.mjs
|
|
- name: Intervention panel and bounded model views (no model or network)
|
|
run: |
|
|
node tools/verify_dsh_incident_panel.mjs
|
|
node tools/verify_dsh_model_results.mjs
|
|
node tools/verify_dsh_diagnosis_cancel.mjs
|