Skip to content

Fix legacy ONNX export crash with transformers >= 5.0#2381

Open
Lidang-Jiang wants to merge 2 commits into
microsoft:mainfrom
Lidang-Jiang:fix/auto-opt-transformers5
Open

Fix legacy ONNX export crash with transformers >= 5.0#2381
Lidang-Jiang wants to merge 2 commits into
microsoft:mainfrom
Lidang-Jiang:fix/auto-opt-transformers5

Merge branch 'main' into fix/auto-opt-transformers5

139586e
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Olive CI failed Apr 8, 2026 in 37m 1s

Build #20260408.7 had test failures

Details

Tests

  • Failed: 3 (0.07%)
  • Passed: 4,157 (92.34%)
  • Other: 342 (7.60%)
  • Total: 4,502

Annotations

Check failure on line 18 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

Build log #L18

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 21 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

Build log #L21

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 7131 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

Build log #L7131

Bash exited with code '1'.

Check failure on line 20 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

Build log #L20

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 1 in test_capture_onnx_graph_integration

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

test_capture_onnx_graph_integration

AssertionError: No ONNX model produced
assert []
 +  where [] = list(<generator object Path.rglob at 0x774989062d50>)
 +    where <generator object Path.rglob at 0x774989062d50> = rglob('*.onnx')
 +      where rglob = PosixPath('/mnt/vss/_work/1/.pytest_basetemp/test_capture_onnx_graph_integr0/onnx-model').rglob
Raw output
test/cli/test_api.py:190: in test_capture_onnx_graph_integration
    assert list(output_dir.rglob("*.onnx")), "No ONNX model produced"
E   AssertionError: No ONNX model produced
E   assert []
E    +  where [] = list(<generator object Path.rglob at 0x774989062d50>)
E    +    where <generator object Path.rglob at 0x774989062d50> = rglob('*.onnx')
E    +      where rglob = PosixPath('/mnt/vss/_work/1/.pytest_basetemp/test_capture_onnx_graph_integr0/onnx-model').rglob

Check failure on line 1 in test_capture_onnx_graph_integration

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

test_capture_onnx_graph_integration

AssertionError: No ONNX model produced
assert []
 +  where [] = list(<generator object Path.rglob at 0x000002D118228120>)
 +    where <generator object Path.rglob at 0x000002D118228120> = rglob('*.onnx')
 +      where rglob = WindowsPath('D:/a/_work/1/.pytest_basetemp/test_capture_onnx_graph_integr0/onnx-model').rglob
Raw output
test\cli\test_api.py:190: in test_capture_onnx_graph_integration
    assert list(output_dir.rglob("*.onnx")), "No ONNX model produced"
E   AssertionError: No ONNX model produced
E   assert []
E    +  where [] = list(<generator object Path.rglob at 0x000002D118228120>)
E    +    where <generator object Path.rglob at 0x000002D118228120> = rglob('*.onnx')
E    +      where rglob = WindowsPath('D:/a/_work/1/.pytest_basetemp/test_capture_onnx_graph_integr0/onnx-model').rglob

Check failure on line 1 in test_capture_onnx_graph_integration

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Olive CI

test_capture_onnx_graph_integration

AssertionError: No ONNX model produced
assert []
 +  where [] = list(<generator object Path.rglob at 0x7cdaf5ad4890>)
 +    where <generator object Path.rglob at 0x7cdaf5ad4890> = rglob('*.onnx')
 +      where rglob = PosixPath('/tmp/pytest-of-root/pytest-0/test_capture_onnx_graph_integr0/onnx-model').rglob
Raw output
test/cli/test_api.py:190: in test_capture_onnx_graph_integration
    assert list(output_dir.rglob("*.onnx")), "No ONNX model produced"
E   AssertionError: No ONNX model produced
E   assert []
E    +  where [] = list(<generator object Path.rglob at 0x7cdaf5ad4890>)
E    +    where <generator object Path.rglob at 0x7cdaf5ad4890> = rglob('*.onnx')
E    +      where rglob = PosixPath('/tmp/pytest-of-root/pytest-0/test_capture_onnx_graph_integr0/onnx-model').rglob