Repository: pyg-team/pytorch_geometric (branch: master)
Commit date: 2023-11-15T13:50:13Z

Workflow file: .github/workflows/latest_testing.yml (Testing PyTorch nightly)
name: Testing PyTorch nightly

on:  # yamllint disable-line rule:truthy
  push:
    branches:
      - master
  pull_request:

jobs:

  latest_pytest:
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 40

      # Skip workflow if only certain files have been changed.
      - name: Get changed files
        id: changed-files-specific
        uses: tj-actions/changed-files@v34
        with:
          files: |
            benchmark/**
            conda/**
            docker/**
            docs/**
            examples/**
            graphgym/**
            README.md
            CHANGELOG.md

      - name: Setup packages
        if: steps.changed-files-specific.outputs.only_changed != 'true'
        uses: ./.github/actions/setup
        with:
          torch-version: nightly

      - name: Install main package
        if: steps.changed-files-specific.outputs.only_changed != 'true'
        run: |
          pip install -e .[test]

      - name: Run tests
        if: steps.changed-files-specific.outputs.only_changed != 'true'
        timeout-minutes: 10
        run: |
          pytest

env:
  PIP_INDEX_URL: http://localhost:8629/2023-11-15
  UV_INDEX_URL: http://localhost:8629/2023-11-15


Failed build logs:
step_name: latest_pytest/6_Run tests.txt
log: ##[group]Run pytest
[36;1mpytest[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
[1m============================= test session starts ==============================[0m
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0 -- /opt/hostedtoolcache/Python/3.8.18/x64/bin/python
cachedir: .pytest_cache
rootdir: /home/runner/work/pytorch_geometric/pytorch_geometric
configfile: pyproject.toml
plugins: cov-4.1.0
[1mcollecting ... [0mcollected 5718 items / 1 error

==================================== ERRORS ====================================
[31m[1m_____________ ERROR collecting test/loader/test_neighbor_loader.py _____________[0m
[31mImportError while importing test module '/home/runner/work/pytorch_geometric/pytorch_geometric/test/loader/test_neighbor_loader.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
test/loader/test_neighbor_loader.py:24: in <module>
    from torch_geometric.typing import (
E   ImportError: cannot import name 'WITH_EDGE_TIME_NEIGHBOR_SAMPLE' from 'torch_geometric.typing' (/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/typing.py)[0m
[33m=============================== warnings summary ===============================[0m
torch_geometric/graphgym/config.py:19
  /home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/graphgym/config.py:19: UserWarning: Could not define global config object. Please install 'yacs' via 'pip install yacs' in order to use GraphGym
    warnings.warn("Could not define global config object. Please install "

torch_geometric/graphgym/imports.py:14
  /home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/graphgym/imports.py:14: UserWarning: Please install 'pytorch_lightning' via  'pip install pytorch_lightning' in order to use GraphGym
    warnings.warn("Please install 'pytorch_lightning' via  "

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[36m[1m=========================== short test summary info ============================[0m
[31mERROR[0m test/loader/test_neighbor_loader.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
[31m========================= [33m2 warnings[0m, [31m[1m1 error[0m[31m in 7.62s[0m[31m =========================[0m
##[error]Process completed with exit code 2.


Changed files:
torch_geometric/typing.py

Fix diff:
diff --git a/torch_geometric/typing.py b/torch_geometric/typing.py
index d9e687601..085ecc613 100644
--- a/torch_geometric/typing.py
+++ b/torch_geometric/typing.py
@@ -57,6 +57,7 @@ except Exception as e:
     WITH_SAMPLED_OP = False
     WITH_INDEX_SORT = False
     WITH_METIS = False
+    WITH_EDGE_TIME_NEIGHBOR_SAMPLE = False
     WITH_WEIGHTED_NEIGHBOR_SAMPLE = False
 
 try: