Skip to content

Commit acf930f

Browse files
authoredFeb 12, 2025
XFail bugged test case (#481)
There is a GPyTorch bug which causes test failure in some test for `LinearKernel`, see cornellius-gp/gpytorch#2633 . Since it could take a while until new versions are out, this PR aims to fix the CI failing due to this. Awaiting new gpytorch and botorch versions. The entire test is marked as xfail which will automatically inform us once it is corrected.
2 parents ea011ea + 0b9b7b9 commit acf930f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎tests/test_kernels.py

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import Any
44

55
import numpy as np
6+
import pytest
67
import torch
78
from attrs import asdict, has
89
from hypothesis import given
@@ -67,6 +68,10 @@ def validate_gpytorch_kernel_components(obj: Any, mapped: Any, **kwargs) -> None
6768
assert component == mapped_component
6869

6970

71+
# Temporarily marked as xfail due to a bug for LinearKernel in the only available
72+
# GPyTorch version, see https://github.com/cornellius-gp/gpytorch/issues/2633. Awaiting
73+
# new gpytorch and botorch releases.
74+
@pytest.mark.xfail(reason="Bug in GPyTorch 0.14.0")
7075
@given(kernels())
7176
def test_kernel_assembly(kernel: Kernel):
7277
"""Turning a BayBE kernel into a GPyTorch kernel raises no errors and all its

0 commit comments

Comments
 (0)