Bug#887583: [Pkg-javascript-devel] Bug#887583: Bug#887583: libjs-fetch FTBFS with mocha 4.0.1-3

2018-03-01 Thread Adrian Bunk
On Mon, Jan 22, 2018 at 12:20:35PM +0530, Pirate Praveen wrote:
> On ഞായര്‍ 21 ജനുവരി 2018 11:08 വൈകു, Pirate Praveen wrote:
> > My logs were from before mocha 4 is uploaded to unstable. Now we need to 
> > fix the tests for mocha 4 (this bug), as well as chai 4 (the other bug I 
> > reported).
> > 
> 
> mocha.{css,js,min.js} files were missing from mocha binary package (they
> were only in libjs-mocha). But even after adding them I see other
> errors. mocha changes are pushed to alioth.
>...

The new mocha seems to have problems, and should be fixed.

Many other packages are affected by the #887586 build hang.

I have seen another dozen node-* packages that started to FTBFS 
recently, some/all/none of them might be related to the new mocha.
libjs-fetch was just one of the first packages where I saw problems
but I stopped reporting bugs as long as even #887586 is not resolved
to avoid creating many duplicates.

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed



Bug#887583: [Pkg-javascript-devel] Bug#887583: Bug#887583: libjs-fetch FTBFS with mocha 4.0.1-3

2018-01-21 Thread Pirate Praveen
On ഞായര്‍ 21 ജനുവരി 2018 11:08 വൈകു, Pirate Praveen wrote:
> My logs were from before mocha 4 is uploaded to unstable. Now we need to fix 
> the tests for mocha 4 (this bug), as well as chai 4 (the other bug I 
> reported).
> 

mocha.{css,js,min.js} files were missing from mocha binary package (they
were only in libjs-mocha). But even after adding them I see other
errors. mocha changes are pushed to alioth.

xvfb-run -a -s "-screen 0 640x480x16" ./script/test
Error loading resource http://localhost:3901/ (1). Details: Connection
refused
Failed to load the page. Check the url: http://localhost:3901/
TypeError: Attempting to change the setter of an unconfigurable property.
TypeError: Attempting to change the setter of an unconfigurable property.
Error loading resource
http://localhost:3901/node_modules/url-search-params/build/url-search-params.js
(203). Details: Error transferring
http://localhost:3901/node_modules/url-search-params/build/url-search-params.js
- server replied: Not Found
TypeError: mocha.setup is not a function. (In 'mocha.setup('tdd')',
'mocha.setup' is undefined)
mocha was not initialized within 1ms of the page loading. Make sure
to call `mocha.ui` or `mocha.setup`.
TypeError: Attempting to change the setter of an unconfigurable property.
TypeError: Attempting to change the setter of an unconfigurable property.



signature.asc
Description: OpenPGP digital signature


Bug#887583: [Pkg-javascript-devel] Bug#887583: libjs-fetch FTBFS with mocha 4.0.1-3

2018-01-21 Thread Pirate Praveen


On 2018, ജനുവരി 21 10:19:24 PM IST, Ghislain Vaillant  
wrote:
>cc'd to Pirate Praveen who reported a similar issue for a version on
>experimental?
>
>Do you have an idea what's going on? Why is Adrian's log different to
>yours?
>

My logs were from before mocha 4 is uploaded to unstable. Now we need to fix 
the tests for mocha 4 (this bug), as well as chai 4 (the other bug I reported).



Bug#887583: libjs-fetch FTBFS with mocha 4.0.1-3

2018-01-21 Thread Ghislain Vaillant
cc'd to Pirate Praveen who reported a similar issue for a version on
experimental?

Do you have an idea what's going on? Why is Adrian's log different to
yours?

On Thu, 18 Jan 2018 09:23:11 +0200 Adrian Bunk  wrote:
> Source: libjs-fetch
> Version: 2.0.3-1
> Severity: serious
> 
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/li
bjs-fetch.html
> 
> ...
>debian/rules override_dh_auto_test
> make[1]: Entering directory '/build/1st/libjs-fetch-2.0.3'
> xvfb-run -a -s "-screen 0 640x480x16" ./script/test
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-
pbuilder1'
> Error loading resource http://localhost:3901/node_modules/mocha/mocha
.css (203). Details: Error transferring http://localhost:3901/node_modu
les/mocha/mocha.css - server replied: Not Found
> Error loading resource http://localhost:3901/node_modules/url-search-
params/build/url-search-params.js (203). Details: Error transferring ht
tp://localhost:3901/node_modules/url-search-params/build/url-search-
params.js - server replied: Not Found
> Error loading resource http://localhost:3901/node_modules/mocha/mocha
.js (203). Details: Error transferring http://localhost:3901/node_modul
es/mocha/mocha.js - server replied: Not Found
> ReferenceError: Can't find variable: Mocha
> ReferenceError: Can't find variable: suite
> TypeError: mocha.run is not a function. (In 'mocha.run()',
'mocha.run' is undefined)
> Likely due to external resource loading and timing, your tests
require calling `window.initMochaPhantomJS()` before calling any mocha
setup functions. See https://github.com/nathanboktae/mocha-phantomjs-co
re/issues/12
> TypeError: Attempting to change the setter of an unconfigurable
property.
> TypeError: Attempting to change the setter of an unconfigurable
property.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-
pbuilder1'
> Error loading resource http://localhost:3901/node_modules/mocha/mocha
.css (203). Details: Error transferring http://localhost:3901/node_modu
les/mocha/mocha.css - server replied: Not Found
> Error loading resource http://localhost:3901/node_modules/url-search-
params/build/url-search-params.js (203). Details: Error transferring ht
tp://localhost:3901/node_modules/url-search-params/build/url-search-
params.js - server replied: Not Found
> Error loading resource http://localhost:3901/node_modules/mocha/mocha
.js (203). Details: Error transferring http://localhost:3901/node_modul
es/mocha/mocha.js - server replied: Not Found
> ReferenceError: Can't find variable: Mocha
> Likely due to external resource loading and timing, your tests
require calling `window.initMochaPhantomJS()` before calling any mocha
setup functions. See https://github.com/nathanboktae/mocha-phantomjs-co
re/issues/12
> TypeError: Attempting to change the setter of an unconfigurable
property.
> TypeError: Attempting to change the setter of an unconfigurable
property.
> debian/rules:28: recipe for target 'override_dh_auto_test' failed
> make[1]: *** [override_dh_auto_test] Error 1
> 
> 



Bug#887583: libjs-fetch FTBFS with mocha 4.0.1-3

2018-01-17 Thread Adrian Bunk
Source: libjs-fetch
Version: 2.0.3-1
Severity: serious

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libjs-fetch.html

...
   debian/rules override_dh_auto_test
make[1]: Entering directory '/build/1st/libjs-fetch-2.0.3'
xvfb-run -a -s "-screen 0 640x480x16" ./script/test
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-pbuilder1'
Error loading resource http://localhost:3901/node_modules/mocha/mocha.css 
(203). Details: Error transferring 
http://localhost:3901/node_modules/mocha/mocha.css - server replied: Not Found
Error loading resource 
http://localhost:3901/node_modules/url-search-params/build/url-search-params.js 
(203). Details: Error transferring 
http://localhost:3901/node_modules/url-search-params/build/url-search-params.js 
- server replied: Not Found
Error loading resource http://localhost:3901/node_modules/mocha/mocha.js (203). 
Details: Error transferring http://localhost:3901/node_modules/mocha/mocha.js - 
server replied: Not Found
ReferenceError: Can't find variable: Mocha
ReferenceError: Can't find variable: suite
TypeError: mocha.run is not a function. (In 'mocha.run()', 'mocha.run' is 
undefined)
Likely due to external resource loading and timing, your tests require calling 
`window.initMochaPhantomJS()` before calling any mocha setup functions. See 
https://github.com/nathanboktae/mocha-phantomjs-core/issues/12
TypeError: Attempting to change the setter of an unconfigurable property.
TypeError: Attempting to change the setter of an unconfigurable property.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-pbuilder1'
Error loading resource http://localhost:3901/node_modules/mocha/mocha.css 
(203). Details: Error transferring 
http://localhost:3901/node_modules/mocha/mocha.css - server replied: Not Found
Error loading resource 
http://localhost:3901/node_modules/url-search-params/build/url-search-params.js 
(203). Details: Error transferring 
http://localhost:3901/node_modules/url-search-params/build/url-search-params.js 
- server replied: Not Found
Error loading resource http://localhost:3901/node_modules/mocha/mocha.js (203). 
Details: Error transferring http://localhost:3901/node_modules/mocha/mocha.js - 
server replied: Not Found
ReferenceError: Can't find variable: Mocha
Likely due to external resource loading and timing, your tests require calling 
`window.initMochaPhantomJS()` before calling any mocha setup functions. See 
https://github.com/nathanboktae/mocha-phantomjs-core/issues/12
TypeError: Attempting to change the setter of an unconfigurable property.
TypeError: Attempting to change the setter of an unconfigurable property.
debian/rules:28: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1