Skip to content

meta(sqlite3): fix changeColumn foreign key race condition. - #18383

Merged
WikiRik merged 2 commits into
sequelize:mainfrom
SippieCup:fix/sqlite-change-column-test-race
Sep 14, 2026
Merged

WikiRik merged 2 commits into
sequelize:mainfrom
SippieCup:fix/sqlite-change-column-test-race

Conversation

@SippieCup

@SippieCup SippieCup commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description of Changes

sequential inserts of saffolding data for test.

List of Breaking Changes

Summary by CodeRabbit

  • Tests
    • Updated SQLite foreign key integration test setup to insert related records sequentially, improving test reliability.

@SippieCup
SippieCup requested a review from a team as a code owner September 13, 2026 19:11
@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a62f5e62-9e2b-40bb-8f17-d99c292d3be3

📥 Commits

Reviewing files that changed from the base of the PR and between 6aa5798 and 02e0b76.

📒 Files selected for processing (1)
  • packages/core/test/integration/query-interface/changeColumn.test.js

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The SQLite changeColumn foreign key test now inserts level rows and users rows with sequential await calls instead of Promise.all.

Changes

SQLite changeColumn test

Layer / File(s) Summary
Sequential foreign key test inserts
packages/core/test/integration/query-interface/changeColumn.test.js
The test replaces parallel bulk inserts with sequential awaited inserts for the level and users tables.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 39175

This test-only change removes the foreign-key setup race without changing production behavior.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the SQLite3 changeColumn foreign-key race condition fix, which matches the main change.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SippieCup SippieCup changed the title test(sqlite3): fix changeColumn foreign key race condition. fix(sqlite3): fix changeColumn foreign key race condition. Sep 13, 2026
@WikiRik
WikiRik enabled auto-merge (squash) September 13, 2026 19:15
@WikiRik
WikiRik disabled auto-merge September 13, 2026 19:15
@WikiRik WikiRik changed the title fix(sqlite3): fix changeColumn foreign key race condition. meta(sqlite3): fix changeColumn foreign key race condition. Sep 13, 2026
@WikiRik
WikiRik enabled auto-merge (squash) September 13, 2026 19:16
@WikiRik
WikiRik merged commit fbcd7b8 into sequelize:main Sep 14, 2026
73 checks passed
@SippieCup
SippieCup deleted the fix/sqlite-change-column-test-race branch September 14, 2026 17:42
papandreou added a commit to papandreou/sequelize that referenced this pull request Sep 16, 2026
* origin/main: (66 commits)
  meta: update dependency @oclif/test to v4.2.0 (sequelize#18394)
  meta: update actions/setup-node action to v6.5.0 (sequelize#18391)
  meta: update actions/stale action to v10.4.0 (sequelize#18392)
  meta: update actions/checkout action to v6.1.0 (sequelize#18390)
  meta: update dependency zod to ^4.6.5 (sequelize#18386)
  meta: update mysql docker tag to v8.4.11 (sequelize#18387)
  meta(sqlite3): fix changeColumn foreign key  race condition. (sequelize#18383)
  meta: update icr.io/db2_community/db2 docker tag to v12.1.5.0 (sequelize#18385)
  meta: update gvenzl/oracle-free docker tag to v23.26.3 (sequelize#18384)
  meta: update sequelize AUTHORS (sequelize#18376)
  meta: update dependency umzug to ^3.8.3 (sequelize#18381)
  meta: update dependency zod to ^4.6.4 (sequelize#18382)
  meta: update dependency uuid to ^11.1.1 (sequelize#18380)
  meta: update dependency typescript to v6.0.3 (sequelize#18378)
  meta: update dependency typedoc-plugin-missing-exports to v4.1.4 (sequelize#18377)
  meta: update dependency typedoc to v0.28.20 (sequelize#18375)
  meta: update dependency tedious to ^19.2.2 (sequelize#18374)
  fix(postgres): support postgres 18 (sequelize#18372)
  meta: update dependency @oclif/plugin-help to ^6.3.0 (sequelize#18373)
  fix(postgres): correct changeColumn for enum arrays and enum defaults (sequelize#18361)
  ...

# Conflicts:
#	packages/postgres/src/query-generator.js
#	packages/postgres/src/query-interface.js

Co-Authored-By: Claude Sonnet 5 <[email protected]>
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