Repository navigation
Open
Labels
hard to reproduceFor issues. Problems that are hard to reproduce.
Description
This issue aims to document the various tests that fail randomly on the CI.
# mariadb 10.5 (node 16)
1) [MARIADB] Pooling
idle
[MSSQL Flaky] should get new connection beyond idle range:
AssertionError: expected 46 to not equal 46
+ expected - actual
at Proxy.assertEqual (node_modules/chai/lib/chai/core/assertions.js:1038:12)
at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
at doAsserterAsyncAndAddThen (node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)
at Proxy.<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)
at Proxy.overwritingMethodWrapper (node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)
at assertNewConnection (test/integration/pool.test.js:47:48)
at Context.<anonymous> (test/integration/pool.test.js:213:7)
at runMicrotasks (<anonymous>)
at runNextTicks (node:internal/process/task_queues:61:5)
at processTimers (node:internal/timers:499:9)
# sqlite (node 12)
1) [SQLITE] Transaction
fails with SQLITE_BUSY when retry.match is changed:
AssertionError: expected promise to be rejected with an error including 'SQLITE_BUSY: database is locked' but it was fulfilled with [ undefined, undefined ]
at assertIfNotNegated (node_modules/chai-as-promised/lib/chai-as-promised.js:68:19)
at /home/runner/work/sequelize/sequelize/node_modules/chai-as-promised/lib/chai-as-promised.js:183:17
at async Context.<anonymous> (test/integration/transaction.test.js:739:9)
# mariadb 10.5 (node 12)
1) [MARIADB] Model
scope
complex merge
should merge complex scopes with findAll options correctly regardless of their order:
AssertionError: expected { id: 1, name: 'foo1', bars: [ …(2) ] } to deeply equal { id: 1, name: 'foo1', bars: [ …(2) ] }
+ expected - actual
{
"bazs": [
{
"barId": 1
- "id": 2
+ "id": 1
"quxes": [
{
- "bazId": 2
- "id": 1
- "name": "qux3"
+ "bazId": 1
+ "id": 3
+ "name": "qux1"
}
{
- "bazId": 2
- "id": 2
- "name": "qux4"
+ "bazId": 1
+ "id": 4
+ "name": "qux2"
}
]
}
{
"barId": 1
- "id": 1
+ "id": 2
"quxes": [
{
- "bazId": 1
- "id": 3
- "name": "qux1"
+ "bazId": 2
+ "id": 1
+ "name": "qux3"
}
{
- "bazId": 1
- "id": 4
- "name": "qux2"
+ "bazId": 2
+ "id": 2
+ "name": "qux4"
}
]
}
]
at Proxy.assertEql (node_modules/chai/lib/chai/core/assertions.js:1096:10)
at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
at doAsserterAsyncAndAddThen (node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)
at Proxy.<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)
at Proxy.overwritingMethodWrapper (node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)
at Proxy.assertEqual (node_modules/chai/lib/chai/core/assertions.js:1035:12)
at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
at doAsserterAsyncAndAddThen (node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)
at Proxy.<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)
at Proxy.overwritingMethodWrapper (node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)
at Context.<anonymous> (test/integration/model/scope/merge.test.js:185:43)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Metadata
Metadata
Assignees
Labels
hard to reproduceFor issues. Problems that are hard to reproduce.
Activity
ephys commentedon Feb 24, 2022
Looks like we sometimes have an issue when installing obdc: https://github.com/sequelize/sequelize/runs/5321167027?check_suite_focus=true
@markdirish I think you're the most qualified to take a look at it if you can :)
We could work around this issue by only installing dialects that are relevant for the test being run. Might speed up install times toi
WikiRik commentedon Feb 24, 2022
I also have these DB2 tests written down that are flaky;
github-actions commentedon Mar 11, 2022
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
fix(postgres-test): insert record with enums array into schema (seque…
fix(postgres-test): insert record with enums array into schema (#14161)…
test: insert record with enums array into schema (#14161) (#14560)
test: insert record with enums array into schema (sequelize#14161) (s…
test: insert record with enums array into schema (sequelize#14161) (s…
test: insert record with enums array into schema (sequelize#14161) (s…
WikiRik commentedon Jun 16, 2022
New one with postgres;
ephys commentedon Jul 10, 2022
Fix for the recent postgres one: #14738
feat: improved error reporting on associations
feat: improved error reporting on associations
feat: improved error reporting on associations (#14901)
WikiRik commentedon Jun 24, 2023
Updated list of flaky tests I could find from the past weeks;
sequelize/packages/core/test/integration/pool.test.ts
Lines 212 to 236 in becbf62
Seen failing on;
postgres(11-2.5, 15-3.3),mssql(2022-latest),mysql(5.7.8, 8.0.33)sequelize/packages/core/test/integration/dialects/mssql/regressions.test.js
Lines 16 to 135 in becbf62
Seen failing on;
mssql(2017-latest, 2022-latest)sequelize/packages/core/test/integration/transaction.test.js
Lines 793 to 807 in becbf62
Seen failing on;
sqliteMore checks have failed in CI steps before the integration testing, but we can look at them seperately.
WikiRik commentedon Jun 26, 2023
One thing that is very flaky right now is
mysql latest;WikiRik commentedon Jul 8, 2023
The transaction and pool tests haven't failed since the delay was increased. So it's just the mssql test and the startup of mysql latest left
WikiRik commentedon Jul 13, 2023
#16263 and #16264 also both add additional waiting times in the hopes that it's not flaky anymore. If these are successful we can close this issue for now
wikirik-agent commentedon Sep 17, 2026
Two intermittent failures seen while running the integration tests locally (2026-09-17):
oracle (
gvenzl/oracle-free23.26.3):QueryInterface#listTables› should show all tablesThe test expects the tables in creation order, but the oracle
listTablesQueryhas noORDER BY, so Oracle can return them in any order. Adding anORDER BYto the query, or sorting in the test, should fix it.db2 (
icr.io/db2_community/db212.1.5.0):Model.sync & Sequelize#sync, in abeforehookThis happened once at the start of
model/sync.test.js(on the #18406 branch), after several other suites had run against the same instance. Rerunning the file passed. Reason code 2 means a deadlock.