Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip-ci][tmva] Add tmva python requirements #14685

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

lobis
Copy link
Contributor

@lobis lobis commented Feb 13, 2024

This Pull request:

Changes or fixes:

Add TMVA python optional packages. CI should now run some additional tests that were skipped due to missing packages.

I tested the installation of the requirements.txt on python 3.10.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #14553

@lobis lobis requested a review from dpiparo as a code owner February 13, 2024 14:14
@phsft-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@lobis lobis changed the title [ci][tmva] Add tmva python requirements (https://github.com/root-project/root/is… [ci][tmva] Add tmva python requirements Feb 13, 2024
@vepadulano
Copy link
Member

@phsft-bot build

@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@hahnjo hahnjo changed the title [ci][tmva] Add tmva python requirements [skip-ci][tmva] Add tmva python requirements Feb 13, 2024
@hahnjo
Copy link
Member

hahnjo commented Feb 13, 2024

Running this through CI won't do much; the interesting time will be once this is merged and the CI images are rebuilt

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2204/nortcxxmod.
Running on root-ubuntu-2204-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/soversion.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac12arm/cxx20.
Running on 194.12.161.128:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@dpiparo
Copy link
Member

dpiparo commented Feb 28, 2024

This change would clarify the contract with our users: @vepadulano would you agree?

@guitargeek
Copy link
Contributor

Hello @lobis! Can you pls rebase the PR on top of ROOT master? Thanks!

@lobis lobis reopened this Apr 10, 2024
@lobis
Copy link
Contributor Author

lobis commented Apr 10, 2024

Hello @lobis! Can you pls rebase the PR on top of ROOT master? Thanks!

Done. Sorry about the spam, I did the rebasing quickly and modified a bunch of unintended files which triggered these many reviewers (I cannot remove them).

The `onnx` Python module is required for TMVA SOFIE.
Adding this will fix the test failures of
`gtest-tmva-sofie-test-TestSofieModels`:

```
  [ RUN      ] SOFIE.Linear_B1
  using batch-size = 1 input dim = 10 nlayers = 4
  input data torch.Size([1, 10])
  tensor([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]])
  Traceback (most recent call last):
    File "/py-venv/ROOT-CI/lib/python3.8/site-packages/torch/onnx/_internal/onnx_proto_utils.py", line 221, in _add_onnxscript_fn
      import onnx
  ModuleNotFoundError: No module named 'onnx'
```
Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Sorry that it needed rebasing again, we updated the requirements.txt file a bit too much recently.

I rebased and cleaned up your commit a little bit, so that you can move on:

  • avoid duplicate entries
  • sort entries alphabetically
  • add onnx, which is a requirement for TMVA SOFIE. Many platforms fail right now because this requirement is missing.
  • comment graph_nets and sonnet out for now. We don't want to install any new optional dependencies on the CI platforms right now: the CI is very unstable because of TMVA, and we don't want to add new tests for now that would suddenly pop up because of the added optional dependency

This should probably be backported to the 6.32 branch, such that the release advocates the right dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ROOT-10909] Add TMVA python dependencies to the requirements.txt
7 participants