Skip to content

test: test/saf_visor_smoke_v2 - #206

Merged
AnSergioFern merged 14 commits into
mainfrom
test/saf-visor-smoke-v2
Nov 19, 2026
Merged

AnSergioFern merged 14 commits into
mainfrom
test/saf-visor-smoke-v2

Conversation

@AnSergioFern

Copy link
Copy Markdown
Collaborator

Resolves #205

Summary

  • Replace the SAF smoke test’s external private POC dependency with an in-repository, PIM-free fixture using public SAF APIs.
  • Verify Chromium uploads of both VTP and VTU files through SAF, including Visor initialization, dataset loading, and saved geometry matching the input.
  • Add an installer that checks for the latest stable public SAF, BDM, and IAM packages and records dependency versions and run provenance.
  • Run the SAF smoke suite in each Python 3.11–3.14 CI matrix leg and include its JUnit report in the shared result check.
  • Update wheel packaging to include generated Dash bindings, and document local setup and test boundaries.

Validation

The CI workflow builds the current Visor wheel, installs the isolated SAF fixture, and runs both browser cases. Failure diagnostics include logs and screenshots, while passing runs remove saved geometry artifacts.

Relevant Details

  • Smoke test: test_smoke_saf_visor.py
  • SAF fixture solution and setup guide: saf_visor_solution
  • Supporting test utilities: visor_api_tool.py handles dataset and saved-state API calls. The test also uses the canvas-readiness, port-reservation, and process-cleanup helpers in utils.
  • Run artifacts: run is replaced on each run. It contains service logs (visor.log, api.log, ui.log), provenance, dependency versions, and per-case artifacts. Failed cases retain a screenshot and browser errors when present. Playwright traces are saved under traces.
  • CI reports: JUnit, HTML, and test-result logs are written to reports. The shared CI result check gates the workflow on the SAF JUnit report.
  • Scope: The fixture uses public SAF dependencies and local SQLite storage. It does not require PIM, private package feeds, credentials, or remote services.

AnSergioFern and others added 6 commits October 29, 2026 15:54
The wheel include paths pointed at a viewer dash folder that does not exist. Point them at the real dash folder so visordash and its generated sources ship in the wheel.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Independently authored SAF solution with a single visualization step. It initializes Visor and loads an uploaded VTP or VTU file through SAF transactions, without PIM, private feeds or licensed products.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
install_latest.py installs the current Visor wheel with the fixture, fails when any ansys-saf, ansys-bdm or ansys-iam package is behind its latest public release, runs pip check and pre-downloads the VTK WASM assets so the first browser case does not race the download. The README documents local execution and maintenance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Start the Visor management API and the GLOW API and UI per module, create a fresh SAF project per case and verify VTP and VTU uploads end to end, including the saved VTKHDF geometry. Drop the saf-project-dir option, update the saf marker and exclude the fixtures folder from test discovery.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SAF and Visor both support Python 3.11 to 3.14, so run the SAF smoke steps in all matrix legs, gate the SAF report in the shared result check and use a 30 minute timeout everywhere. Document the setup and add a changelog entry.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AnSergioFern AnSergioFern self-assigned this Nov 5, 2026
@AnSergioFern AnSergioFern added the test Work associated with testing label Nov 5, 2026
@github-actions github-actions Bot added the maintenance Operation not directly changing the production code - e.g., updating a devops pipeline label Nov 5, 2026
@AnSergioFern AnSergioFern changed the title test/saf_visor_smoke_v2 test: test/saf_visor_smoke_v2 Nov 5, 2026
Comment thread pyproject.toml Resolved
@AnSergioFern
AnSergioFern marked this pull request as ready for review November 9, 2026 11:24

@LKasianAnsys LKasianAnsys left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good to me! Two small comments inline.

Comment thread doc/changelog.d/+saf-smoke.test.md Resolved
@AnSergioFern
AnSergioFern merged commit ae276e8 into main Nov 19, 2026
20 of 21 checks passed
@LKasianAnsys
LKasianAnsys deleted the test/saf-visor-smoke-v2 branch November 27, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Operation not directly changing the production code - e.g., updating a devops pipeline test Work associated with testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[User Story]: Add PIM-free SAF-Visor smoke coverage to CI

4 participants