-
Notifications
You must be signed in to change notification settings - Fork 17
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
Filterx: check if value is a macro during compilation #431
Merged
OverOrion
merged 7 commits into
axoflow:main
from
bazsi:filterx-check-if-value-is-a-macro-during-compilation
Jan 7, 2025
Merged
Filterx: check if value is a macro during compilation #431
OverOrion
merged 7 commits into
axoflow:main
from
bazsi:filterx-check-if-value-is-a-macro-during-compilation
Jan 7, 2025
Conversation
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
bazsi
force-pushed
the
filterx-check-if-value-is-a-macro-during-compilation
branch
2 times, most recently
from
December 31, 2024 09:37
ce6cd7b
to
1871070
Compare
bazsi
force-pushed
the
filterx-check-if-value-is-a-macro-during-compilation
branch
2 times, most recently
from
January 5, 2025 17:40
f8570fd
to
9d55fc3
Compare
bazsi
changed the title
Filterx check if value is a macro during compilation
Filterx: check if value is a macro during compilation
Jan 5, 2025
The special handling for $MSG is long gone, avoid handling $MSG as a macro as it requires extra copying in filterx and there's no functional requirement anymore. Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Instead of doing this in the hot path. Also eliminate the related helper function. Signed-off-by: Balazs Scheidler <[email protected]>
… non-zero To match how object-bytes/object-protobuf works. Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
It took me a while to realize why the output is not rendered in our light tests, once I removed $MSG as a macro. This message would have helped me a lot. Signed-off-by: Balazs Scheidler <[email protected]>
With the $MSG as a macro gone, $MSG became a typed value, so it does matter what we set it to. Since setting it to a bytes/protobuf value means that its not a string anymore, we can't render it as a part of a template unless we explicitly ask for the right type hint. This is what this patch changes in the broken testcases. Signed-off-by: Balazs Scheidler <[email protected]>
bazsi
force-pushed
the
filterx-check-if-value-is-a-macro-during-compilation
branch
from
January 6, 2025 15:58
9d55fc3
to
f8e6cb6
Compare
OverOrion
approved these changes
Jan 7, 2025
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.
Thank you!
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.
This PR ended a bit more than what the title says:
With all that fixed is what we have in this branch.