From 52dfc46279956f0307d9cf7ef8827fc7a9a2b473 Mon Sep 17 00:00:00 2001 From: Ayan Das Date: Mon, 20 Oct 2025 17:24:20 +0530 Subject: [PATCH] gnu: onnxruntime: Skip exporter-dependent tests needing onnxscript. * gnu/packages/machine-learning.scm (onnxruntime): Skip exporter-dependent tests needing onnxscript. [arguments]: Extend pytest ignore list to exclude exporter tests that require python-onnxscript (test_pytorch_export_contrib_ops.py and transformers parity/phi_vision tests). Change-Id: I7fe48815fcbd53121049a3b61d43af636df2bffe Signed-off-by: Sharlatan Hellseher --- gnu/packages/machine-learning.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index e6a8cd9cd4725acfafeb1ff19d95aa7587f87bbb..80fb8506f7c6be7c2be27a1c1367935d343555a5 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1860,12 +1860,18 @@ with a single function call.") "--ignore=transformers/test_gpt2_to_onnx.py" "--ignore=transformers/test_optimizer_huggingface_bert.py" "--ignore=transformers/test_parity_huggingface_gpt_attention.py" - "--ignore=transformers/test_shape_infer_helper.py" - ;; XXX: onnxscript ModuleNotFound - "--ignore=transformers/test_gelu_fusions.py" - "--ignore=transformers/test_gemma3_vision.py" - ;; XXX: Other failing tests. - "-k" ,(string-append + "--ignore=transformers/test_shape_infer_helper.py" + ;; XXX: onnxscript ModuleNotFound + "--ignore=transformers/test_gelu_fusions.py" + "--ignore=transformers/test_gemma3_vision.py" + ;; XXX: PyTorch 2.9 ONNX exporter requires python-onnxscript. + ;; Skip exporter-dependent tests until packaged/enabled. + "--ignore=test_pytorch_export_contrib_ops.py" + "--ignore=transformers/test_parity_gelu.py" + "--ignore=transformers/test_parity_layernorm.py" + "--ignore=transformers/test_phi_vision.py" + ;; XXX: Other failing tests. + "-k" ,(string-append "not test_gelu_is_fused_by_default" " and not test_inverse")))))) (add-after 'check 'python-sanity-check