Skip to content

[Due for payment 2025-02-13] Add GitHub Action to verify parser updates when parser files change #55939

@sumo-slonik

Description

@sumo-slonik

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

  • Reduce inconsistencies between parser implementation and configuration.
  • Prevent accidental modifications that could lead to incorrect parsing behavior.

@Kicu @blazejkustra

Issue OwnerCurrent Issue Owner: @slafortune

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.WeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions