[tmva][sofie] Require onnx!=1.19.0 and keras<3.5 for tests
#20575
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Python package onnx 1.19.0 has a bug that makes this version unusable: onnx/onnx#7249. In that case, we have to disable the "TestSofieModels" and "TestRModelParserPyTorch" tests, which import onnx indirectly via
torch.onnx.We should also consider to require
onnx!=1.19.1in ourrequirements.txtin the future, so our users don't face similar trouble from exporting PyTorch models to onnx. But this should only be done once we are sure that it can also be installed on macOS without breaking something else.Closes #20571.
There is also a followup to guitargeek@10f28b6, where I used a random keras version in a check in order to make the CI configuration at the time pass. In fact,
keras=>3.5also didn't work, as we see now after updating the macOS runners from Keras 2 to Keras 3.It could actually turn out that
keras>=3is not supported at all, so we should be prepared to lower the maximum supported Keras version even further. But for now we don't know, as no platform haskeras>=3.0&&keras<3.5installed.