mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Snippet test invalidGlobImport6.pkl is too slow #214
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odenix on GitHub (Oct 15, 2024).
This test takes 15 seconds to run on my machine, hampering developer productivity.
@bioball commented on GitHub (Oct 15, 2024):
Typically, I only include the tests that address the issue I'm working on by adding a filter here:
d00c466843/pkl-core/src/test/kotlin/org/pkl/core/LanguageSnippetTestsEngine.kt (L53)But, if you really want to exclude this test specifically, you can also add it to your excluded tests temporarily:
@odenix commented on GitHub (Oct 15, 2024):
My point is that this test slows down
./gradlew testby 15 seconds, which isn't justified.A common solution for testing the enforcement of a limit is to make the limit configurable and set a lower limit for the test.
@bioball commented on GitHub (Oct 15, 2024):
That sounds like a good solution to this problem
@odenix commented on GitHub (Oct 15, 2024):
Would you be OK with making this limit configurable in the CLI and Evaluator API?
PS: Is a Pkl release imminent, or was it postponed?
@bioball commented on GitHub (Oct 16, 2024):
It's imminent! We're targeting an end-of-October release, so, in the next two weeks.
I'd rather not add user-facing knobs here. I think this can be as simple as something like this in
GlobResolver: