Opened on 09/25/2018 at 08:28:06 PM

Closed on 11/09/2018 at 08:30:49 PM

Last modified on 02/07/2019 at 03:23:40 AM

#6986 closed defect (fixed)

Running npm test fails on Windows for adblockpluscore

Reported by: geo Assignee: hfiguiere
Priority: P3 Milestone:
Module: Automation Keywords:
Cc: sebastian, hfiguiere, tlucas Blocked By:
Blocking: #7116 Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29891680/

Description

Environment

Windows 10
revision: git f2d0c16 hg e7abbf2e9d9b
nodejs: v8.11.3

How to reproduce

  1. Run npm install from PowerShell
  2. Run npm test from PowerShell

Observed behaviour

Some tests run, however we also have the following errors:

Failed running browser tests
TypeError: mode must be an integer
    at Object.fs.chmodSync (fs.js:1123:18)
    at startChromium (C:\Work\adblockpluschrome\adblockpluscore\test\runners\chromium_remote_process.js:62:6)
    at ensureChromium.then.chromiumPath (C:\Work\adblockpluschrome\adblockpluscore\test\runners\chromium_remote_process.js:194:17)
    at <anonymous>

and

FAILURES: Undone tests (or their setups/teardowns):
- testReadAndSaveToFile

To fix this, make sure all tests call test.done()
npm ERR! Test failed.  See above for more details.

Expected behaviour

The script should run without errors.

Attachments (0)

Change History (11)

comment:1 Changed on 09/25/2018 at 09:49:08 PM by hfiguiere

  • Owner set to hfiguiere

fs.chmodSync expects an int, a constant has been passed as a parameter.

Last edited on 09/25/2018 at 09:51:03 PM by hfiguiere

comment:2 Changed on 09/25/2018 at 10:00:36 PM by hfiguiere

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:3 Changed on 09/25/2018 at 10:01:03 PM by hfiguiere

I don't have a Windows system handy. If you can test that patch, that would be very helpful.

comment:4 Changed on 09/25/2018 at 10:14:35 PM by sebastian

For reference, we have a similar issue with the browser tests in adblockpluschrome which might have the same cause (unrelated of your suspicion), see #6985.

comment:5 Changed on 09/26/2018 at 10:41:56 AM by mjethani

  • Component changed from Core to Automation

comment:6 Changed on 09/26/2018 at 12:33:42 PM by sebastian

  • Priority changed from Unknown to P3
  • Ready set

comment:7 Changed on 11/08/2018 at 10:18:15 PM by hfiguiere

  • Blocking 7116 added

comment:8 Changed on 11/09/2018 at 06:19:21 PM by hfiguiere

  • Cc tlucas added

comment:9 Changed on 11/09/2018 at 08:28:32 PM by abpbot

A commit referencing this issue has landed:
Issue 6986 - Don't use chromium remote interface on Windows

comment:10 Changed on 11/09/2018 at 08:30:49 PM by hfiguiere

  • Resolution set to fixed
  • Status changed from reviewing to closed

comment:11 Changed on 02/07/2019 at 03:23:40 AM by abpbot

A commit referencing this issue has landed:
Issue 6986 - Don't use chromium remote interface on Windows

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from hfiguiere.
 
Note: See TracTickets for help on using tickets.