Skip to content

Commit

Permalink
Run tests in random order in Flaky Check
Browse files Browse the repository at this point in the history
This makes things flakier.
  • Loading branch information
akuzm committed Dec 23, 2024
1 parent 155efa1 commit d86e778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/gh_matrix_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import json
import os
import random
import subprocess
from ci_settings import (
PG14_EARLIEST,
Expand Down Expand Up @@ -309,11 +310,13 @@ def macos_config(overrides):
sys.exit(1)

if tests:
to_run = list(tests) * 20
random.shuffle(to_run)
m["include"].append(
build_debug_config(
{
"coverage": False,
"installcheck_args": f'TESTS="{" ".join(list(tests) * 20)}"',
"installcheck_args": f'TESTS="{" ".join(to_run)}"',
"name": "Flaky Check Debug",
"pg": PG16_LATEST,
"pginstallcheck": False,
Expand All @@ -324,7 +327,7 @@ def macos_config(overrides):
build_debug_config(
{
"coverage": False,
"installcheck_args": f'TESTS="{" ".join(list(tests) * 20)}"',
"installcheck_args": f'TESTS="{" ".join(to_run)}"',
"name": "Flaky Check Debug",
"pg": PG17_LATEST,
"pginstallcheck": False,
Expand Down

0 comments on commit d86e778

Please sign in to comment.