Skip to content

Commit 99e6f7e

Browse files
committed
CI: check all proofs, 10 minute hard timeout
Signed-off-by: Andrew Helwer <ahelwer@pm.me>
1 parent dca6876 commit 99e6f7e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/scripts/check_proofs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
parser = ArgumentParser(description='Validate all proofs in all modules with TLAPM.')
1414
parser.add_argument('--tlapm_path', help='Path to TLAPM install dir; should have bin and lib subdirs', required=False, default = 'deps/tlapm')
1515
parser.add_argument('--examples_root', help='Root directory of the tlaplus/examples repository', required=False, default='.')
16-
parser.add_argument('--runtime_seconds_limit', help='Only run proofs with expected runtime less than this value', required=False, default=60)
16+
parser.add_argument('--hard_timeout_in_seconds', help='Proof checking will fail after this amount of time', required=False, default="600")
1717
parser.add_argument('--skip', nargs='+', help='Space-separated list of .tla modules to skip checking', required=False, default=[])
1818
parser.add_argument('--only', nargs='+', help='If provided, only check proofs in this space-separated list', required=False, default=[])
1919
parser.add_argument('--verbose', help='Set logging output level to debug', action='store_true')
@@ -24,7 +24,7 @@
2424
manifest = tla_utils.load_all_manifests(examples_root)
2525
skip_modules = args.skip
2626
only_modules = args.only
27-
hard_timeout_in_seconds = args.runtime_seconds_limit * 2
27+
hard_timeout_in_seconds = int(args.hard_timeout_in_seconds)
2828

2929
logging.basicConfig(level = logging.DEBUG if args.verbose else logging.INFO)
3030

@@ -34,7 +34,6 @@
3434
for manifest_dir, spec in manifest
3535
for module in spec['modules']
3636
if 'proof' in module
37-
and (runtime := tla_utils.parse_timespan(module['proof']['runtime'])) <= timedelta(seconds = args.runtime_seconds_limit)
3837
and module['path'] not in skip_modules
3938
and (only_modules == [] or module['path'] in only_modules)
4039
],

0 commit comments

Comments
 (0)