Open
Bug 1511414
Opened 6 years ago
Updated 2 years ago
Add hook or test to prevent generated parser code from being broken
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement, P3)
Developer Infrastructure
Lint and Formatting
Tracking
(Not tracked)
NEW
People
(Reporter: jkt, Unassigned)
References
Details
Bug 1425874 along with many others have changed the java generated files (no blame I have tried this before too).
The latest breakage are the difference between these two:
https://bug903372.bmoattachments.org/attachment.cgi?id=9018872
https://bug903372.bmoattachments.org/attachment.cgi?id=9028944
Can we do something like vendoring a java test or even just a phab hook to flag a parser peer?
Comment 2•6 years ago
|
||
Moving to the Phabricator component.
The simplest thing that could possibly work would be a hook that whines to the patch author if parser/html/nsHtml5Foo.[cpp|h] was changed but parser/html/javasrc/Foo.java was not also changed (for cases where Foo.java exists).
A more complex solution, which would depend on having OpenJDK in automation, would be actually running the "make translate" step described in https://searchfox.org/mozilla-central/source/parser/html/java/README.txt in automation followed by clang-format and checking that nothing changes.
status-firefox65:
affected → ---
Component: HTML: Parser → Phabricator
Flags: needinfo?(hsivonen)
Product: Core → Conduit
Version: 65 Branch → unspecified
i don't think this is something that phabricator can check directly.
it sounds more like something for reviewbot or a normal test.
marco - do you think reviewbot could catch this during its analysis?
Flags: needinfo?(mcastelluccio)
Comment 4•6 years ago
|
||
If somebody implements a new checker based on one of the two solutions Henri suggested, we could add it to our reviewbot.
Moving to Firefox Build System::Lint and Formatting, which seems like a better component for this.
Adding a new checker is not hard, see for example https://hg.mozilla.org/mozilla-central/rev/3eefd4e1087c.
Component: Phabricator → Lint and Formatting
Flags: needinfo?(mcastelluccio)
Product: Conduit → Firefox Build System
Updated•6 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•