Parser files not checked into repo

Bug #1387209 reported by Tim Hinrichs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Low
Unassigned

Bug Description

The 2 files we use to lex/parse policy strings are generated from a grammar by the makefile. These files are not checked into the repo, which is a reasonable thing to do since they are generated. Unfortunately, when the grammar changes, people need to remember to run 'make' in order to regenerate the lexer/parser. No one thinks to do this since the grammar changes very rarely and there is no other reason to run 'make' when pulling the latest from the repo. What happens is that the old lexer/parser continues to be used, and we get weird errors and behavior.

To fix this, I suggest we commit the generated files to the repo.

Tim Hinrichs (thinrichs)
Changed in congress:
importance: Undecided → Low
Tim Hinrichs (thinrichs)
Changed in congress:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/174017
Committed: https://git.openstack.org/cgit/stackforge/congress/commit/?id=d9a2789bf75650216b5c60acea7a9592f70bcb0f
Submitter: Jenkins
Branch: master

commit d9a2789bf75650216b5c60acea7a9592f70bcb0f
Author: Tim Hinrichs <email address hidden>
Date: Tue Apr 14 16:57:41 2015 -0700

    Add parser/lexer

    These files are generated from congress/datalog/Congress.g,
    but (i) they change rarely and so no one remembers to run
    make and (ii) they require Java to generate. So it's
    better for end-users and most developers to check the files in
    and just have the people changing the grammar remember to
    check in the generated files.

    Closes-bug: 1387209
    Change-Id: Ia315fc28570edfaa7d8b223c46f514fb7e34921e

Changed in congress:
status: Confirmed → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → kilo-3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.