Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #222 +/- ##
==========================================
+ Coverage 74.35% 75.14% +0.78%
==========================================
Files 63 63
Lines 3709 3721 +12
Branches 181 182 +1
==========================================
+ Hits 2758 2796 +38
+ Misses 846 820 -26
Partials 105 105 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4d5ff24 to
02470eb
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related Links
Description and Rationale
metadata.labels.$xis no longer valid. Allowing this makes everything more complicated, and it doesn't make sense anyways, because variables are always defined to be an absolute path starting from the root of the JSON object.How
variable_prefixed_resource_pathwhich must start with a variable; this lets us catch some errors at parse time, e.g., defining a variable and then not using it at all.Test Steps
Other Notes
The DSL currently makes a distinction between the LHS and RHS of a conditional; specifically, if a variable is defined in a line, the left-hand-side of the conditional must reference that value, and the right-hand-side of the conditional can only reference previously-defined (and stored in the MatchContext) variables.
For example, this is valid:
But this is not, because the left-hand side of the conditional on the second line does not reference
$y(and, if it could get that far before panicking, the right-hand-side does reference$y, which isn't stored in the MatchContext yet):We could do the work to make this symmetric, but I don't really think it's worth-it right now, and it seems a bit unnatural to support anyways. If people complain we can revisit.