Skip to content

ci: add plugin test matrix helper#639

Draft
voltjia wants to merge 1 commit into
docs/plugin-contractfrom
ci/plugin-test-matrix
Draft

ci: add plugin test matrix helper#639
voltjia wants to merge 1 commit into
docs/plugin-contractfrom
ci/plugin-test-matrix

Conversation

@voltjia
Copy link
Copy Markdown
Collaborator

@voltjia voltjia commented Jun 4, 2026

Summary

Add a path-aware plugin test matrix helper for later CI selection.

This PR is stacked on #638 (docs/plugin-contract).

Changes

  • Add scripts/infini_ops_plugin_test_matrix.py.
  • Map changed paths to affected plugins, devices, pytest device selectors, and hardware CI platforms.
  • Treat shared plugins such as cuda-common as affecting their dependent device plugins.
  • Treat core/codegen/CI paths as requiring the full matrix.
  • Add unit tests for device-specific, shared-plugin, core, manifest, CLI, and multi-root behavior.

Validation

  • .venv/bin/python -m pytest -s -q tests/test_plugin_registry.py tests/test_plugin_test_matrix.py tests/test_generate_wrappers_plugins.py
  • .venv/bin/ruff check scripts/infini_ops_plugin_registry.py scripts/infini_ops_plugin_test_matrix.py scripts/generate_wrappers.py tests/test_plugin_registry.py tests/test_plugin_test_matrix.py tests/test_generate_wrappers_plugins.py
  • .venv/bin/python -m py_compile scripts/infini_ops_plugin_registry.py scripts/infini_ops_plugin_test_matrix.py scripts/generate_wrappers.py
  • git diff --check

Full-platform validation

Full stack validation was run on the top branch build/external-plugin-source-paths at pre-style-rebase commit 907eff70; see #643 validation comment: #643 (comment). The later rebase only updates PR metadata and diagnostic wording for CONTRIBUTING.md compliance.

  • NVIDIA: build passed; pytest failed with 1 failed, 3687 passed, 4404 skipped due to CUDA OOM in tests/test_torch_ops.py::test_op[..., svd] on the PyTorch reference path.
  • MetaX: 3183 passed, 3400 skipped.
  • Iluvatar: 2689 passed, 3894 skipped.
  • Moore: passed after preloading the container OpenMP runtime, 2949 passed, 3643 skipped.
  • Cambricon: 1781 passed, 4694 skipped.
  • Ascend: pytest passed with 3359 passed, 3233 skipped, but the container exited with code 137; treat as not fully green by the quality gate.

@voltjia voltjia changed the title Add plugin test matrix helper ci: add plugin test matrix helper Jun 5, 2026
@voltjia voltjia force-pushed the ci/plugin-test-matrix branch from cc932ef to dcac4fc Compare June 5, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant