Skip to content

Fixing Bug in Version Handling. #410

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

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

drivanov
Copy link
Contributor

@drivanov drivanov commented Jun 7, 2024

I've noticed that the tests with the withPackage test decorators

@withPackage("torch>=2.1.0")
def test_some_test(...):
    . . .

are not being executed, even though I have torch=2.4.0 installed on my machine.

nn/models/test_compile.py::test_compile_graph_break[FTTransformer] SKIPPED (Package(s) {'torch>=2.1.0'} are not installed)

To be precise, I am using Torch version 2.4.0a0+f70bd71a48.nv24.06 which has an unexpected version ID format for the for pytorch-frame .

The proposed PR uses standard Python version handling, which covers the dev case previously treated separately.

@weihua916 weihua916 merged commit a43506c into pyg-team:master Jun 7, 2024
12 of 13 checks passed
@drivanov drivanov deleted the base_version branch June 7, 2024 16:17
rusty1s pushed a commit to pyg-team/pytorch_geometric that referenced this pull request Jun 14, 2024
I've noticed that the tests with the `withPackage` test decorators
```
@withPackage("torch>=1.12.0")
def test_some_test(...):
    . . .
 ```
are not being executed,
```
SKIPPED [2] test/nn/conv/test_heat_conv.py:10: Package torch>=1.12.0 not
found
SKIPPED [2] test/nn/conv/test_hetero_conv.py:181: Package torch>=2.1.0
not found
SKIPPED [1] test/nn/conv/test_hgt_conv.py:12: Package torch>=1.12.0 not
found
SKIPPED [1] test/nn/conv/test_hgt_conv.py:63: Package torch>=1.12.0 not
found
SKIPPED [1] test/nn/conv/test_hgt_conv.py:114: Package torch>=1.12.0 not
found
```
 even though I have torch=2.4.0 installed on my machine. To be precise, I am using Torch version `2.4.0a0+f70bd71a48.nv24.06` which has an unexpected version ID format for the for `pytorch_geometric` .

The proposed PR uses standard [Python version handling](https://packaging.python.org/en/latest/specifications/version-specifiers/), which covers the dev case previously treated separately.

**NOTES:**

- I found and fixed a similar issue in `pytorch_frame`, see [PR#410](pyg-team/pytorch-frame#410).
- When testing the fix for the current PR,  I noticed that 113  (=600-483) more tests were run from the `test` directory
```
Befor:========== 5926 passed, 600 skipped, 503 warnings in 535.56s
(0:08:55)
After:========== 13 failed, 6030 passed, 483 skipped, 521 warnings in
596.27s (0:09:56)
``` 
and 13 of them failed. Similar failures may occur in your CI environment. Please consider this during the PR review.
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.

2 participants