Skip to content

Commit

Permalink
skip flaky tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed Mar 26, 2023
1 parent 8efe57b commit c3a1498
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/infer/test_mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def model(data):

@pytest.mark.parametrize("kernel_cls", [HMC, NUTS, SA, BarkerMH])
def test_beta_bernoulli_x64(kernel_cls):
if kernel_cls is SA and "CI" in os.environ and "JAX_ENABLE_X64" in os.environ:
pytest.skip("The test is flaky on CI x64.")
num_warmup, num_samples = (100000, 100000) if kernel_cls is SA else (500, 20000)

def model(data):
Expand Down Expand Up @@ -318,6 +320,8 @@ def model(data):

@pytest.mark.parametrize("with_logits", ["True", "False"])
def test_binomial_stable_x64(with_logits):
if "CI" in os.environ and "JAX_ENABLE_X64" in os.environ:
pytest.skip("The test is flaky on CI x64.")
# Ref: https://github.com/pyro-ppl/pyro/issues/1706
num_warmup, num_samples = 200, 200

Expand Down

0 comments on commit c3a1498

Please sign in to comment.