Unverified 提交 4e4f237a authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: GitHub

Fix flaky CI tests (#1729)

* Force environment dependent xfail test to fail * New version of MLX crashing in CI
上级 049046d3
......@@ -205,7 +205,7 @@ jobs:
if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" "numba>=0.57"; fi
if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" jax jaxlib numpyro equinox && pip install tfp-nightly; fi
if [[ $INSTALL_TORCH == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" pytorch pytorch-cuda=12.1 "mkl<=2024.0" -c pytorch -c nvidia; fi
if [[ $INSTALL_MLX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" mlx; fi
if [[ $INSTALL_MLX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" "mlx<0.29.4"; fi
if [[ $INSTALL_XARRAY == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" xarray xarray-einstats; fi
pip install -e ./
......
......@@ -1411,9 +1411,7 @@ class TestMinMax:
"uint32",
pytest.param(
"uint64",
marks=pytest.mark.xfail(
condition=config.mode != "FAST_COMPILE", reason="Fails due to #770"
),
marks=pytest.mark.xfail(reason="Fails due to #770"),
),
),
)
......@@ -1433,6 +1431,10 @@ class TestMinMax:
assert max_out.dtype == dtype
i_max = function([n], max_out)(data)
assert i_max == itype.max
if dtype == "uint64":
assert (
0
) # It's not failing in all the CIs but we have XPASS(strict) enabled
@pytest.mark.xfail(
condition=config.mode != "FAST_COMPILE", reason="Fails due to #770"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论