-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: optimise template string resolving performance #6685
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
b47e232
perf: optimise template string resolving performance
stefreak 82cc0dd
chore: fix lint issues
vvagaytsev f4a88a9
test: fix tests
stefreak c7e0344
chore: fix compilation and lint errors
vvagaytsev 4346ef9
chore: print details on assertion failure in `expectError` function
vvagaytsev acde6d3
test: fix some assertions
vvagaytsev 8a3e3cb
fix: read raw template string from input
vvagaytsev 08dbd39
test: fix tests for `resolveTemplateString`
vvagaytsev 65a7ae5
chore: return value instead of throwing
vvagaytsev 47b62a5
test: fix remaining resolveTemplateString tests
stefreak 3eb8724
fix: bug fix + unit test
vvagaytsev 56dd850
fix: test failures
vvagaytsev 8aca5ea
fix: always use error message from context if it's available
vvagaytsev dd1602b
perf: optimize `ConfigContext.resolve`
stefreak 02be20e
perf: don't cache non-template strings and also cache unescape
stefreak 9abba8a
test: fix "exposes arguments and options correctly in command templates"
stefreak 95262d4
fix: throw on critical errors while context resolution
vvagaytsev 8f9daae
test: fix assertions
vvagaytsev b65c093
test: fix undefined errors in ConfigContext tests
stefreak dc1205e
test: fix remaining ConfigContext tests
stefreak 1829f26
wip: use static analysis instead of scancontext
stefreak 6fa3fea
chore: lint fixes
vvagaytsev 2cf06d3
chore: replace `ScanContext` with `NoOpContext`
vvagaytsev d25d761
test: consume generator in tests
vvagaytsev e122a37
test: fix "throws if action kind is not resolvable"
stefreak 29152fa
feat: allow referencing variables and evaluating complex expressions …
stefreak fc231be
refactor: get rid of function `collectTemplateReferences`
vvagaytsev 498dc30
refactor: introduce local variables
vvagaytsev 2ba9932
fix: module dependencies resolition
vvagaytsev 4b4b787
fix: restore module name filter
vvagaytsev b40f5e6
test: update assertion for circular dep error
stefreak 1f7d99c
chore: remove dead code
vvagaytsev 03006d1
fix: handle all kinds of `GardenError` on the AST level
vvagaytsev 4e51588
test: fix partial runtime resolution tests
stefreak f96b534
fix: make sure that yaml path is included in template string errors
stefreak 77f4e5b
refactor: make code safer and easier to reason about
stefreak 930b04a
improvement: minor improvements
stefreak 3397b0e
test: additional tests
stefreak e220046
refactor: remove NoopContext
stefreak 3a71187
fix: handle further edge cases in `getContextLookupReferences`
stefreak f9f9e43
fix: handle optional expressions in brackets correctly
stefreak 2caced0
fix: special edge case in module resolution flow
stefreak d25be9f
chore: fix lint
stefreak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
require: | ||
- build/test/setup.js | ||
- ../../../../build/test/setup.js | ||
watch-files: | ||
- build/**/* | ||
ignore: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a little odd - What prompted this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vovas IDE needed it to be able to run tests, and it didn't seem to have an effect on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I agree it's odd, will have a closer look at this