2023-09-17 21:57:43 -07:00
|
|
|
[test-groups]
|
2024-07-30 16:12:01 -05:00
|
|
|
# If a test uses the engine, we want to limit the number that can run in parallel.
|
|
|
|
|
# This way we don't start and stop too many engine instances, putting pressure on our cloud.
|
|
|
|
|
uses-engine = { max-threads = 4 }
|
2023-09-17 21:57:43 -07:00
|
|
|
|
|
|
|
|
[profile.default]
|
2024-04-23 10:31:20 -07:00
|
|
|
slow-timeout = { period = "30s", terminate-after = 1 }
|
2023-09-17 21:57:43 -07:00
|
|
|
|
|
|
|
|
[profile.ci]
|
2024-04-23 10:31:20 -07:00
|
|
|
slow-timeout = { period = "50s", terminate-after = 5 }
|
2023-09-17 21:57:43 -07:00
|
|
|
|
|
|
|
|
[[profile.default.overrides]]
|
2024-07-30 16:12:01 -05:00
|
|
|
# If a test starts with kcl_test_, then it uses the engine. So, limit its parallelism.
|
|
|
|
|
filter = "test(kcl_test_)"
|
|
|
|
|
test-group = "uses-engine"
|
2024-04-01 12:36:27 -05:00
|
|
|
threads-required = 2
|
2023-09-17 21:57:43 -07:00
|
|
|
|
|
|
|
|
[[profile.ci.overrides]]
|
2024-07-30 16:12:01 -05:00
|
|
|
# If a test starts with kcl_test_, then it uses the engine. So, limit its parallelism.
|
|
|
|
|
filter = "test(kcl_test_)"
|
|
|
|
|
test-group = "uses-engine"
|
2024-04-01 12:36:27 -05:00
|
|
|
threads-required = 2
|
2023-11-09 09:58:20 -06:00
|
|
|
|
|
|
|
|
[[profile.default.overrides]]
|
|
|
|
|
filter = "test(parser::parser_impl::snapshot_tests)"
|
|
|
|
|
slow-timeout = { period = "1s", terminate-after = 5 }
|