Skip to content

docs: validate mysql ent+atlas+goose pipeline - #1180

Merged
kalbasit merged 1 commit into
mainfrom
docs-validate-mysql-ent-atlas
May 22, 2026
Merged

kalbasit merged 1 commit into
mainfrom
docs-validate-mysql-ent-atlas

Conversation

@kalbasit

Copy link
Copy Markdown
Owner

The §1 MySQL spike (now removed) validated that ent v0.14.6 +
ariga.io/atlas v0.36.2-pre + pressly/goose/v3 v3.27.1 work end-to-end
against MariaDB 11.4.8:

  • dialect.MySQL produces correct MariaDB DDL (bigint, varchar,
    backtick-quoted identifiers, utf8mb4 charset, AUTO_INCREMENT PK).
  • sqltool.GooseFormatter emits valid MySQL syntax with proper
    -- +goose Up / -- +goose Down markers and reverse DROP TABLE
    ordering.
  • goose.DialectMySQL applies the baseline cleanly via
    goose.NewProvider(..., WithTableName("schema_migrations")).Up(ctx).
  • All schema features survive: CHECK constraints, ON DELETE CASCADE
    foreign keys, UNIQUE indexes, named indexes — verified via
    information_schema queries.

Decision gate result: proceed with the pipeline as planned in §6 and
§9. No custom Goose formatter is required for MySQL.

Updates design.md D7 with the validation evidence. The throwaway
spike (cmd/spike-mysql/ and ent/schema/spike_*.go) is deleted; this
commit captures only the documentation update.

Completes task 1.1-1.4 of the migrate-to-ent-and-atlas change.

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. documentation Improvements or additions to documentation labels May 20, 2026
@kalbasit

kalbasit commented May 20, 2026 •

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the design documentation and task list for the migration to Ent and Atlas, marking the MySQL/MariaDB validation spike as completed. The documentation now confirms that Ent's MySQL dialect, Atlas's GooseFormatter, and the Goose migration provider work correctly with MariaDB 11.4.8, eliminating the need for a custom formatter. I have no feedback to provide as there are no review comments.

@kalbasit
kalbasit force-pushed the feat-add-ent-atlas-goose-deps branch from 0ac2733 to 0cdb102 Compare May 22, 2026 01:47
@kalbasit
kalbasit force-pushed the docs-validate-mysql-ent-atlas branch from 9050df7 to 84af380 Compare May 22, 2026 01:47
Base automatically changed from feat-add-ent-atlas-goose-deps to main May 22, 2026 03:05
@kalbasit
kalbasit enabled auto-merge (squash) May 22, 2026 03:05
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels May 22, 2026
The §1 MySQL spike (now removed) validated that ent v0.14.6 +
ariga.io/atlas v0.36.2-pre + pressly/goose/v3 v3.27.1 work end-to-end
against MariaDB 11.4.8:

- dialect.MySQL produces correct MariaDB DDL (bigint, varchar,
  backtick-quoted identifiers, utf8mb4 charset, AUTO_INCREMENT PK).
- sqltool.GooseFormatter emits valid MySQL syntax with proper
  -- +goose Up / -- +goose Down markers and reverse DROP TABLE
  ordering.
- goose.DialectMySQL applies the baseline cleanly via
  goose.NewProvider(..., WithTableName("schema_migrations")).Up(ctx).
- All schema features survive: CHECK constraints, ON DELETE CASCADE
  foreign keys, UNIQUE indexes, named indexes — verified via
  information_schema queries.

Decision gate result: proceed with the pipeline as planned in §6 and
§9. No custom Goose formatter is required for MySQL.

Updates design.md D7 with the validation evidence. The throwaway
spike (cmd/spike-mysql/ and ent/schema/spike_*.go) is deleted; this
commit captures only the documentation update.

Completes task 1.1-1.4 of the migrate-to-ent-and-atlas change.
@kalbasit
kalbasit disabled auto-merge May 22, 2026 04:42
@kalbasit
kalbasit force-pushed the docs-validate-mysql-ent-atlas branch from 84af380 to 4525f58 Compare May 22, 2026 05:33
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels May 22, 2026
@codecov

codecov Bot commented May 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 5.04%. Comparing base (277857f) to head (4525f58).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1180   +/-   ##
=====================================
  Coverage   5.04%   5.04%           
=====================================
  Files          6       6           
  Lines        436     436           
=====================================
  Hits          22      22           
  Misses       410     410           
  Partials       4       4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kalbasit
kalbasit merged commit 8f0a8ae into main May 22, 2026
18 checks passed
@kalbasit
kalbasit deleted the docs-validate-mysql-ent-atlas branch May 22, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation merge-stack size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant