`CI` environment variable not handled correctly
janjagusch opened this issue · comments
Describe the bug
The TestSettings class doesn't handle the case correctly when the CI environment variable is set to anything other than 'true' or 'false'. For example, Azure DevOps pipelines set this variable to 'azure'.
Lines 59 to 63 in 99c9704
Steps/Code to Reproduce
import os
os.environ["CI"] = "azure" # Setting this to an arbitrary value other than 'true' or 'false'
import tabpfnnExpected Results
Setting the CI environment variable to a value other than '' should set it to True.
Actual Results
ValidationError: 1 validation error for TestingSettings
ci
Input should be a valid boolean, unable to interpret input [type=bool_parsing, input_value='azure', input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/bool_parsingVersions
from importlib.metadata import version # Can't import directly due to error above
version("tabpfn") # Returns '2.1.3'Thanks for reporting, should be fixed on main now, and will be fixed in next pip release!