-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Due for payment 2025-02-13] Add GitHub Action to verify parser updates when parser files change #55939
Comments
Triggered auto assignment to @slafortune ( |
Here is an example of such an inconsistency between files that once appeared because there is no such check |
CC @luacmartins We think it's not a lot of work but will be useful to prevent mistakes when editing parser |
I can solve this by adding an action that will be triggered by changes in the folder: |
I wonder if creating a script to automatically generate the
What do you think? |
Currently we already have two such scripts, but it does not protect us from the possibility of changing an already generated file. I have prepared a draft PR in which you can see how such an action could look like:
|
@sumo-slonik should I assign you to this GH? Does this really need an external label, you aren't really looking for help with this, are you? |
The only problem to this approach is that it probably is more work. We would need to either run it on commits - which would definitely confuse and irritate some developers (extra few seconds 😅) or most likely do it on the CI. At this point I thought that a check that verifies if the files were touched is just simpler and faster. |
If you can please assign me, PR is ready if only the approach with check on the github actions side will be accepted by you. |
That sounds good. Let's go with the current solution. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.94-25 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-02-13. 🎊 For reference, here are some details about the assignees on this issue:
|
@luacmartins @slafortune @sumo-slonik The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Ensure Search Parser Consistency: Add GitHub Action for Verification
Problem
Currently, it is possible to modify the search parser
.js
files without updating the corresponding.peggy
grammar files. This can lead to inconsistencies and discrepancies between the parser implementation and its intended structure. Since we do not have any verification in place to ensure that changes in one are properly reflected in the other, errors may go unnoticed.Proposal
To prevent this issue, we should add a GitHub Action that verifies whether changes in the
.js
parser files only occur when there are corresponding modifications in the.peggy
files. This check would help maintain consistency and ensure that all updates to the parser are properly reflected in its configuration.Expected Outcome
@Kicu @blazejkustra
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: