Repository navigation
feat(nix-checks): add schema-equivalence-check + refresh ci.yml - #1223
Conversation
b816e63 to
99c0299
Compare
90e681a to
a7a9235
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
99c0299 to
c199666
Compare
a7a9235 to
5509f29
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
c199666 to
5132a2b
Compare
5509f29 to
27ac0ea
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
5132a2b to
8913971
Compare
27ac0ea to
2551daa
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
8913971 to
eb26bb2
Compare
2551daa to
3750cae
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
eb26bb2 to
3a60ea9
Compare
3750cae to
d3ecada
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
3a60ea9 to
0c17a85
Compare
d3ecada to
16b7c11
Compare
Quote the path expansions when sourcing the pre/post-check helper scripts in schema-equivalence-check. Nix store paths don't contain spaces in practice, but quoting is shell best practice and silences shellcheck-style nitpicks on the inherited shell content. Addresses gemini-code-assist comment on PR #1223 (PRRT_kwDONV6tZs6D32tm). Co-Authored-By: Claude Opus 4.7 <[email protected]>
0c17a85 to
3c9e1b6
Compare
16b7c11 to
eaa8115
Compare
|
Automated stack merge failed during the rebase step. The |
Adds the `schema-equivalence-check` derivation that runs
`TestSchemaEquivalence` across SQLite, Postgres, and MySQL. Postgres
and MySQL are spun up via the existing `pre-check-{postgres,mysql}.sh`
helpers; cleanup is wired through a trap to `post-check-*.sh`. The
parent ncps `buildPhase` is replaced with a no-op so the check skips
the full binary build (only the migrations test pass is needed).
Drive-by: refresh `.github/workflows/ci.yml` to drop references to the
removed sqlc/dbmate tooling (`db/migrations/**`, `db/query.*.sql`,
`sqlc.yml`, `go generate ./pkg/database`) and replace them with the
Ent generator flow (`ent/schema/**`, `ent/generate.go`,
`go generate ./ent/...`). The build job is unchanged — it still runs
`nix flake check`, which now exercises all four new derivations.
Marks tasks 8.7, 13.4, 13.5, and 13.6 complete in the
migrate-to-ent-and-atlas change.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/ci.yml:
- Around line 130-133: The workflow currently references the action using the
tag 'stefanzweifel/git-auto-commit-action@v7'; replace that tag with the
action's full commit SHA to pin the exact revision (e.g.,
'stefanzweifel/git-auto-commit-action@<full-sha>') so the CI step uses an
immutable reference, fetching the SHA from the action repo's commit history or
release that corresponds to v7; keep the existing inputs (like commit_message)
unchanged.
In `@openspec/changes/migrate-to-ent-and-atlas/tasks.md`:
- Line 145: Update the stale checklist entry that currently reads "13.6 Confirm
the existing `.github/workflows/ci.yml` still passes (no edits expected — the
new checks plug into `nix flake check`)" to reflect that edits to
`.github/workflows/ci.yml` may occur in this PR; locate the checklist item in
tasks.md (the line starting with "13.6 Confirm the existing
`.github/workflows/ci.yml` still passes") and remove or rephrase "(no edits
expected — the new checks plug into `nix flake check`)" to something like
"(ensure CI passes; edits to `.github/workflows/ci.yml` may be included)" so the
checklist accurately represents the current changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 585bb01f-8e0f-489b-b585-b90a6cceaf39
📒 Files selected for processing (3)
.github/workflows/ci.ymlnix/checks/flake-module.nixopenspec/changes/migrate-to-ent-and-atlas/tasks.md
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1223 +/- ##
========================================
+ Coverage 5.50% 6.97% +1.47%
========================================
Files 6 6
Lines 400 301 -99
========================================
- Hits 22 21 -1
+ Misses 374 276 -98
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Adds the
schema-equivalence-checkderivation that runsTestSchemaEquivalenceacross SQLite, Postgres, and MySQL. Postgresand MySQL are spun up via the existing
pre-check-{postgres,mysql}.shhelpers; cleanup is wired through a trap to
post-check-*.sh. Theparent ncps
buildPhaseis replaced with a no-op so the check skipsthe full binary build (only the migrations test pass is needed).
Drive-by: refresh
.github/workflows/ci.ymlto drop references to theremoved sqlc/dbmate tooling (
db/migrations/**,db/query.*.sql,sqlc.yml,go generate ./pkg/database) and replace them with theEnt generator flow (
ent/schema/**,ent/generate.go,go generate ./ent/...). The build job is unchanged — it still runsnix flake check, which now exercises all four new derivations.Marks tasks 8.7, 13.4, 13.5, and 13.6 complete in the
migrate-to-ent-and-atlas change.