GithubHelp home page GithubHelp logo

Tests are stuck about cli HOT 5 CLOSED

b1ek avatar b1ek commented on June 4, 2024
Tests are stuck

from cli.

Comments (5)

WikiRik avatar WikiRik commented on June 4, 2024

We're running these tests using GitHub Actions quite frequently and those work using yarn test without failures. So it might be on your end. Does this happen for other dialects as well? See this file for the other dialects used in CI and the required env variables for them; https://github.com/sequelize/cli/blob/main/.github/workflows/ci.yml

from cli.

b1ek avatar b1ek commented on June 4, 2024

I just checked them, none of them worked for me.

As of now i checked these platforms:

  • Archlinux
  • Ubuntu 22 ( i regret touching this at all )
  • node:10 docker

None of them are running tests at all. I am running tests with this:

$ export DIALECT=sqlite
$ yarn test

Other dialects didn't work too. I followed the scenario step-by-step in a clean chroot so i just dont imagine how is this working in the CI but not on my machine.

from cli.

WikiRik avatar WikiRik commented on June 4, 2024

I'm using a clean GitHub Codespaces and ran yarn install && yarn test and then it works fine for sqlite tests. It is using Node 20.4.0 but using Node 18.16.1 also works for me.

Does sequelize itself give a table name back when debugging?

cli/test/support/helpers.js

Lines 196 to 203 in 6bfc4dd

readTables: function (sequelize, callback) {
return sequelize
.getQueryInterface()
.showAllTables()
.then(function (tables) {
return callback(tables.sort());
});
},

from cli.

b1ek avatar b1ek commented on June 4, 2024

I am unsure what exactly are you asking, but running it with DEBUG=* may show better picture of what happened:

  mocha:runner run(): starting +22ms
  mocha:runner run(): emitting start +0ms

  mocha:runner run(): emitted start +0ms
  mocha:runner runSuite(): running  +1ms

  mocha:runner _addEventListener(): adding for event error; 0 current listeners +0ms
  mocha:runner runSuite(): running [SQLITE] lib/sequelize db:create +1ms
  mocha:runner runSuite(): bailing +0ms
  mocha:runner runSuite(): running [SQLITE] lib/sequelize db:drop +0ms
  mocha:runner runSuite(): bailing +0ms
  mocha:runner runSuite(): running [SQLITE] lib/sequelize db:migrate (JSON) +0ms
  [SQLITE] lib/sequelize db:migrate (JSON)
  mocha:runner _addEventListener(): adding for event error; 0 current listeners +1ms
  sequelize:connection:sqlite connection acquired default +0ms
  sequelize:sql:sqlite Executing (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +0ms
  sequelize:sql:sqlite Executed (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +0ms
  sequelize:sql:sqlite Executing (default): PRAGMA foreign_keys = OFF +4ms
  sequelize:sql:sqlite Executed (default): PRAGMA foreign_keys = OFF +0ms
  sequelize:sql:sqlite Executing (default): PRAGMA foreign_keys = ON +1ms
  sequelize:sql:sqlite Executed (default): PRAGMA foreign_keys = ON +0ms
  sequelize:pool pool created with max/min: 5/0, no replication +267ms
  mocha:runner _addEventListener(): adding for event error; 0 current listeners +8ms
  sequelize:connection:sqlite connection acquired default +489ms
  sequelize:sql:sqlite Executing (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +484ms
  sequelize:sql:sqlite Executed (default): SELECT name FROM `sqlite_master` WHERE type='table' and name!='sqlite_sequence'; +0ms
  mocha:runner trapped unhandled rejection from (probably) user code; re-emitting on process +484ms
  mocha:runner _addEventListener(): adding for event unhandledRejection; 0 current listeners +0ms
  mocha:runner total number of failures: 1 +30s

from cli.

b1ek avatar b1ek commented on June 4, 2024

The tests for the main branch seem to run smoothly, i think that my code somehow affected the tests behaviour. Thanks for the help, though

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.