Repository navigation
Add make targets for setup, tests, linting and a console - #288
Merged
Merged
Conversation
Part of giving every OAF repo the same documented commands, so people and AI tools can set up, develop and test any of them the same way. - make setup gets a fresh clone ready to work on the host: it starts MySQL, installs Ruby with mise (preferred) or rbenv, then runs the new bin/setup for the gems, configuration.yml and ../rblib. - mise.toml has mise read .ruby-version, so the version is set in one place. - make test runs the specs as CI does, and make lint runs RuboCop, both in the app container so they need nothing but Docker. ARGS narrows either. CI doesn't run RuboCop yet, and it currently finds 6 offences already on main (openaustralia/openaustralia#1011). - make console opens IRB with the parser loaded, in the app container. - Drop the hpricot build step from the setup docs, as hpricot is gone. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Ian Heggie (OAF) <ian@oaf.org.au>
Br3nda
approved these changes
Nov 3, 2026
ianheggie-oaf
enabled auto-merge
November 5, 2026 12:41
If no container was running, these ran in a fresh one that skipped the start-up setup, so they failed on a new checkout or after make clean for want of gems, rblib and configuration.yml. They now start the containers first, which only takes a moment when already running. make shell still uses a fresh container, so you can get in to debug a start-up that failed. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Ian Heggie (OAF) <ian@oaf.org.au>
This file contains hidden or 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
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.
What and why
Follow-up to #282, which merged before this was pushed. It gives the parser the same
make setup,test,lintandconsoletargets as the other OAF repos, so people and AI tools can set up and test any of them the same way.test,lintandconsolerun in the app container, so they need nothing but Docker.make lintfails at the moment, on 6 RuboCop offences already onmain. CI doesn't run RuboCop yet, so nothing is blocked; fixing them and turning the CI job on is Feature: openaustralia-parser: fix the RuboCop offences and run it in CI openaustralia#1011.seedtarget: the parser has no data of its own to load.Type of change
How this was checked
From a stopped stack,
make testpassed (257 examples), as did a narrowedmake test ARGS=..., andmake consoleloaded the parser.make setupran cleanly on the host, and the specs then passed there withEXCLUDE_NEWS=1, as CI sets./code-review(or equivalent): fixed any concerns (and rechecked), linked follow-up issues above, or noted why they are not important aboveAssisted-by: Claude Code:claude-opus-5-5
🤖 Generated with Claude Code