Skip to content

docs: mvn -Pdocker validate does not produce usable MariaDB init scripts (#962) - #994

Open
ismisepaul wants to merge 1 commit into
devfrom
dev#962-agents-docker-validate
Open

ismisepaul wants to merge 1 commit into
devfrom
dev#962-agents-docker-validate

Conversation

@ismisepaul

Copy link
Copy Markdown
Member

Fixes #962.

What

AGENTS.md and docs/database-configuration.md said mvn -Pdocker validate prepares the docker/mariadb init scripts. validate only copies the SQL files. convert-sql-scripts.sh, which uncomments the DELIMITER lines, is bound to generate-sources. An image built after validate alone fails on first start with ERROR 1064 (42000) at line 181, which the troubleshooting sections blamed only on a stale image cache.

Both files now say mvn -Pdocker generate-sources and list this as a cause of the error. The integration-test preparation step (mvn -Pdocker validate, as in CI) is unchanged: the tests load the SQL themselves.

Checked

On a clean docker/mariadb/target:

  • after mvn -Pdocker validate, coreSchema.sql has 0 uncommented DELIMITER lines;
  • after mvn -Pdocker generate-sources, it has 119.

This is a documentation-only change, so I didn't run the pipeline.

🤖 Generated with Claude Code

…ts (#962)

AGENTS.md and docs/database-configuration.md said "mvn -Pdocker validate"
prepares the docker/mariadb init scripts. validate only copies the SQL
files; convert-sql-scripts.sh, which uncomments the DELIMITER lines, is
bound to generate-sources. A db image built after validate alone fails on
first start with ERROR 1064 at line 181, which the docs blamed only on a
stale image cache. Say generate-sources, and list this as a cause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 23:44
@ismisepaul ismisepaul added this to the 4.0.0 milestone Oct 24, 2026
@ismisepaul ismisepaul moved this from Backlog to Next Release Backlog in Security Shepherd Oct 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation corrections match the Maven phase bindings and address the reported issue without changing runtime behavior.

No open issues 🎉

What changed in this PR

Corrects MariaDB initialization guidance for #962 by documenting the Maven phase required to produce usable SQL scripts.

Changes:

  • Replaces mvn -Pdocker validate with mvn -Pdocker generate-sources for Docker database preparation.
  • Explains that incomplete SQL conversion, not just stale Docker caches, can cause initialization errors.
  • Leaves integration-test preparation unchanged.
File Description
docs/​database-configuration.md Corrects the SQL conversion command and expands initialization troubleshooting.
AGENTS.md Updates Docker database prerequisites and recovery instructions.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Next Release Backlog

Development

Successfully merging this pull request may close these issues.

AGENTS.md: 'mvn -Pdocker validate' doesn't produce usable docker/mariadb init scripts

2 participants