Обсуждение: JS Test error on Windows

Поиск
Список
Период
Сортировка

JS Test error on Windows

От
Dave Page
Дата:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Dave Page
Дата:
Anyone? Khushboo, Murtuza; any ideas?

On Wed, Apr 25, 2018 at 4:45 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Khushboo Vashi
Дата:


On Fri, Apr 27, 2018 at 2:44 PM, Dave Page <dpage@pgadmin.org> wrote:
Anyone? Khushboo, Murtuza; any ideas?

Does this related to Node 8.11.1? Can you use Node < 8 version? 
On Wed, Apr 25, 2018 at 4:45 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Murtuza Zabuawala
Дата:
Not sure if that's the case but possibly security mechanism on Win2016 somehow interfering with Headless chrome execution.


On Fri, Apr 27, 2018 at 2:44 PM, Dave Page <dpage@pgadmin.org> wrote:
Anyone? Khushboo, Murtuza; any ideas?

On Wed, Apr 25, 2018 at 4:45 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Dave Page
Дата:


On Fri, Apr 27, 2018 at 10:32 AM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Fri, Apr 27, 2018 at 2:44 PM, Dave Page <dpage@pgadmin.org> wrote:
Anyone? Khushboo, Murtuza; any ideas?

Does this related to Node 8.11.1? Can you use Node < 8 version? 

Same error with 7.10.1 :-(
 
On Wed, Apr 25, 2018 at 4:45 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Dave Page
Дата:


On Fri, Apr 27, 2018 at 10:49 AM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Not sure if that's the case but possibly security mechanism on Win2016 somehow interfering with Headless chrome execution.

Maybe - I cannot find anything obvious through Google though. I have already disabled the firewall entirely.
 


On Fri, Apr 27, 2018 at 2:44 PM, Dave Page <dpage@pgadmin.org> wrote:
Anyone? Khushboo, Murtuza; any ideas?

On Wed, Apr 25, 2018 at 4:45 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Aditya Toshniwal
Дата:
Hi Dave/Hackers,

PFA fix for the problem. The RegEx for webpack test is not working on windows because the path separator is different for Windows( \ ) and Unix( / ). And so, the imports loader is not executing for slickgrid.
Patch tested on Win 10, Win 7, Ubuntu, Cent OS and works fine.

Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB Software Solutions | Pune
"Don't Complain about Heat, Plant a tree"

On Fri, Apr 27, 2018 at 5:34 PM, Dave Page <dpage@pgadmin.org> wrote:


On Fri, Apr 27, 2018 at 10:49 AM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Not sure if that's the case but possibly security mechanism on Win2016 somehow interfering with Headless chrome execution.

Maybe - I cannot find anything obvious through Google though. I have already disabled the firewall entirely.
 


On Fri, Apr 27, 2018 at 2:44 PM, Dave Page <dpage@pgadmin.org> wrote:
Anyone? Khushboo, Murtuza; any ideas?

On Wed, Apr 25, 2018 at 4:45 PM, Dave Page <dpage@pgadmin.org> wrote:
Hi

Setting up an new build system running Windows 2016 and I'm hitting an error with the JS tests as below. I have Yarn 1.6.0, Node 8.11.1 and get the following error running yarn run test:karma-once. The linter and bundler work fine, FWIW, and I see the same error running either manually or through Jenkins. jquery.event.drag 2.2 and 2.3.0 are in the slickgrid lib directory. Chrome is 66.0.3359.117.

Does anyone have any idea what's going on?

webpack: Compiled successfully.
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "message": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10",
    "str": "Uncaught Error: SlickGrid requires jquery.event.drag module to be loaded\nat regression/javascript/selection/column_selector_spec.js:13842:3\n\nError: SlickGrid requires jquery.event.drag module to be loaded\n    at Object.<anonymous> (regression/javascript/selection/column_selector_spec.js:13842:9)\n    at Object.5 (regression/javascript/selection/column_selector_spec.js:17810:30)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at Object.904 (regression/javascript/selection/column_selector_spec.js:18335:1)\n    at __webpack_require__ (regression/javascript/selection/column_selector_spec.js:20:30)\n    at regression/javascript/selection/column_selector_spec.js:63:18\n    at regression/javascript/selection/column_selector_spec.js:66:10"
  }

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Вложения

Re: JS Test error on Windows

От
Dave Page
Дата:


On Fri, May 11, 2018 at 7:28 AM, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Dave/Hackers,

PFA fix for the problem. The RegEx for webpack test is not working on windows because the path separator is different for Windows( \ ) and Unix( / ). And so, the imports loader is not executing for slickgrid.
Patch tested on Win 10, Win 7, Ubuntu, Cent OS and works fine.

Nice catch! How did you figure that one out?

Patch applied.
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Aditya Toshniwal
Дата:
Hi Dave,

The above error was not thrown when import 'jquery.event.drag' was added to column_selector_spec.js (although it was giving some other error, but above was cleared).
So the doubt was on webpack as it was not importing jquery.event.drag even though it was added using imports-loader, the below test:
        test: /.*slickgrid\/+slick\.(?!core)*/,
        loader: 'imports-loader?' +
        'jquery.ui' +
        ',jquery.event.drag' +
        ',slickgrid',

I noticed later that the test regex is not just for files but also included path. So, gave try by replacing "\/" with "\\" and it worked.
But then this will not work on Unix, and so changed it to [\\\/]+ taking both styles.



Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB Software Solutions | Pune
"Don't Complain about Heat, Plant a tree"

On Fri, May 11, 2018 at 3:05 PM, Dave Page <dpage@pgadmin.org> wrote:


On Fri, May 11, 2018 at 7:28 AM, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Dave/Hackers,

PFA fix for the problem. The RegEx for webpack test is not working on windows because the path separator is different for Windows( \ ) and Unix( / ). And so, the imports loader is not executing for slickgrid.
Patch tested on Win 10, Win 7, Ubuntu, Cent OS and works fine.

Nice catch! How did you figure that one out?

Patch applied.
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: JS Test error on Windows

От
Dave Page
Дата:


On Fri, May 11, 2018 at 10:53 AM, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Dave,

The above error was not thrown when import 'jquery.event.drag' was added to column_selector_spec.js (although it was giving some other error, but above was cleared).
So the doubt was on webpack as it was not importing jquery.event.drag even though it was added using imports-loader, the below test:
        test: /.*slickgrid\/+slick\.(?!core)*/,
        loader: 'imports-loader?' +
        'jquery.ui' +
        ',jquery.event.drag' +
        ',slickgrid',

I noticed later that the test regex is not just for files but also included path. So, gave try by replacing "\/" with "\\" and it worked.
But then this will not work on Unix, and so changed it to [\\\/]+ taking both styles.

Good work!
 



Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB Software Solutions | Pune
"Don't Complain about Heat, Plant a tree"

On Fri, May 11, 2018 at 3:05 PM, Dave Page <dpage@pgadmin.org> wrote:


On Fri, May 11, 2018 at 7:28 AM, Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Dave/Hackers,

PFA fix for the problem. The RegEx for webpack test is not working on windows because the path separator is different for Windows( \ ) and Unix( / ). And so, the imports loader is not executing for slickgrid.
Patch tested on Win 10, Win 7, Ubuntu, Cent OS and works fine.

Nice catch! How did you figure that one out?

Patch applied.
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company