Skip to content

Add make targets for setup, tests, linting and a console - #288

Merged
ianheggie-oaf merged 3 commits into
mainfrom
chore/docker-ports-and-make-targets2
Nov 6, 2026
Merged

ianheggie-oaf merged 3 commits into
mainfrom
chore/docker-ports-and-make-targets2

Conversation

@ianheggie-oaf

Copy link
Copy Markdown
Member

What and why

Follow-up to #282, which merged before this was pushed. It gives the parser the same make setup, test, lint and console targets as the other OAF repos, so people and AI tools can set up and test any of them the same way. test, lint and console run in the app container, so they need nothing but Docker.

Type of change

  • Chore
  • Documentation

How this was checked

From a stopped stack, make test passed (257 examples), as did a narrowed make test ARGS=..., and make console loaded the parser. make setup ran cleanly on the host, and the specs then passed there with EXCLUDE_NEWS=1, as CI sets.

  • Checked the affected area on my own or a staging system
  • Ran the automated tests
  • Ran /code-review (or equivalent): fixed any concerns (and rechecked), linked follow-up issues above, or noted why they are not important above
  • GitHub Actions tests: likewise fixed so they pass or linked a follow-up issue / replied why not important directly on each comment (reviewer will mark resolved as part of review)
  • Documentation updated, or not needed

Assisted-by: Claude Code:claude-opus-5-5

🤖 Generated with Claude Code

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>
@ianheggie-oaf ianheggie-oaf self-assigned this Nov 2, 2026
@ianheggie-oaf
ianheggie-oaf requested a review from a team as a code owner November 2, 2026 10:26
Comment thread Makefile Resolved
ianheggie-oaf and others added 2 commits November 5, 2026 23: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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants