[Pkg-javascript-devel] Bug#1042298: node-wikibase-cli: FTBFS: TypeError: Cannot read properties of undefined (reading 'Q11')

Lucas Nussbaum lucas at debian.org
Wed Jul 26 21:25:49 BST 2023


Source: node-wikibase-cli
Version: 15.15.4-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230726 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure --buildsystem=nodejs
>    dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../. node_modules/wikibase-cli
> 	/bin/sh -ex debian/tests/pkg-js/test
> + http_proxy=127.0.0.1 https_proxy=127.0.0.1 mocha --exit test/general.js test/wb-aliases.js test/wb-claims.js test/wb-config.js test/wb-convert.js test/wb-create-entity.js test/wb-data.js test/wb-description.js test/wb-generate-template.js test/wb-hub.js test/wb-id.js test/wb-label.js test/wb-lang.js test/wb-lemma.js test/wb-open.js test/wb-query.js test/wb-revisions.js test/wb-search.js test/wb-sparql.js test/wb-summary.js
> 
> 
>   general
>     1) should allow to customize the instance
>     undefined should accept options before arguments (1025ms)
>     dry mode
>       undefined should not require credentials (516ms)
> 
>   wb aliases
>     undefined should display help (486ms)
>     undefined <entity> (763ms)
>     undefined <entity> should be tolerant on input (751ms)
> 
>   wb claims
>     undefined should display help when requested without argument (423ms)
>     undefined should display all entity claims when passed an entity id (2164ms)
>     undefined shoud display property claims when passed and entity id and a property id (788ms)
>     undefined should filters properties from text (1255ms)
>     undefined should find the GUID of a claim when provided a value (789ms)
> 
>   wb config
>     undefined should display config (425ms)
>     undefined should display help (442ms)
> 
>   wb convert
>     undefined should convert external ids (669ms)
>     undefined should convert external ids passed on stdin (657ms)
>     undefined should convert Wikidata ids (671ms)
>     undefined should convert external ids that look like Wikidata ids (614ms)
> 
>   wb edit-entity
>     undefined should show the command help menu when called without argument (526ms)
>     undefined should show the help menu for the requested template (1580ms)
> 
>   wb data
>     undefined <entity> (1285ms)
>     undefined should accept several ids (1499ms)
>     undefined should output entities as ndjson (1336ms)
>     undefined should simplify entity when requested (1210ms)
>     undefined should simplify entities when requested (1228ms)
>     undefined should return only the desired props when requested (1190ms)
>     - should support lexemes
>     undefined should accept ids on stdin (1200ms)
>     undefined should return ttl when requested (882ms)
>     undefined should fetch a specific revision (1027ms)
>     undefined should simplify a specific revision (837ms)
>     undefined should return entities schema text (940ms)
>     property claims data
>       undefined should get property claims data provided a property claims id (983ms)
>     claim data
>       undefined should get a claim data provided a claim guid (1061ms)
>       undefined should accept prefixed claim GUIDs (1044ms)
>       undefined should accept claim GUIDs with an - in place of a $ (1070ms)
>       undefined should get a simplified claim (1097ms)
>       undefined should keep the requested simplified claim data (967ms)
>       undefined should use specified time-converter (1042ms)
> 
>   wb description
>     undefined should display help (445ms)
>     undefined <entity> (655ms)
>     undefined <entity> should be tolerant on input (655ms)
> 
>   wb generate-template
>     undefined should generate a template from an item id (1194ms)
> 
>   wb hub
>     undefined should display help (436ms)
> 
>   wb id
>     undefined display help (425ms)
>     undefined should accept a Wikipedia article title (1077ms)
>     undefined should accept a sitelink URL (941ms)
>     undefined should accept a dbpedia URL (825ms)
> 
>   wb label
>     undefined should display help (504ms)
>     undefined should find an entity's label (723ms)
>     undefined should not fallback on another language if a language is explicitly specificed (671ms)
>     undefined should be tolerant on input (667ms)
> 
>   wb lang
>     undefined should display help (415ms)
>     undefined should identify a lang from a wikidata item id (498ms)
>     undefined should identify a lang from a language code (479ms)
>     undefined should identify a lang from a string (486ms)
>     json
>       undefined should identify a lang from a wikidata item id (508ms)
>       undefined should identify a lang from a language code (485ms)
> 
>   wb lemma
>     undefined should display help (525ms)
>     undefined should find an entity's lemma (681ms)
> 
>   wb open
>     undefined should display help (450ms)
> 
>   wb query
>     undefined should display help (452ms)
>     undefined -p [prop] -o [obj] -t [limit] (673ms)
>     undefined should work for URL values (716ms)
>     format
>       undefined should default to table format (655ms)
>       undefined should support inline format (669ms)
>       undefined should support json format (693ms)
>       undefined should support csv format (635ms)
>       undefined should support tsv format (665ms)
>     dry
>       undefined should return the generated SPARQL (432ms)
>     describe
>       undefined should make a DESCRIBE request with an item id (467ms)
>       undefined should make a DESCRIBE request with a url (479ms)
> 
>   wb revisions
>     undefined should display help (433ms)
> 
>   wb search
>     undefined should display help (457ms)
>     undefined should find an item (751ms)
>     undefined should find an item in verbose mode (1592ms)
>     undefined should find a property (686ms)
>     undefined should find a property, short version (727ms)
>     undefined should find a lexeme (746ms)
>     undefined should find a lexeme, short version (704ms)
>     undefined should find a form (933ms)
>     undefined should find a form, short version (915ms)
>     - should find a sense
>     - should find a sense, short version
> 
>   wb sparql
>     undefined should display help (525ms)
>     undefined should take a file path (476ms)
>     undefined should take a JS module path (476ms)
>     undefined should take an async JS module path (518ms)
>     dry
>       undefined should return the generated SPARQL (528ms)
>     meta data
>       undefined should take a JS module path with metadata (1466ms)
> 
>   wb summary
>     undefined should display help (529ms)
>     undefined <entity> (1209ms)
>     undefined <entity> should be tolerant on input (1261ms)
> 
> 
>   88 passing (1m)
>   3 pending
>   1 failing
> 
>   1) general
>        should allow to customize the instance:
>      Command failed: export WB_CLIPBOARD=false WB_LANG=en WB_MAXLAG=100 ; ./bin/wb label Item:Q11 --instance https://wikibase-registry.wmflabs.org/w/api.php
> /<<PKGBUILDDIR>>/lib/entity_data_parser.js:45
>     if (entities[id].missing) throw errors_.new('entity not found', id)
>                 ^
> 
> TypeError: Cannot read properties of undefined (reading 'Q11')
>     at /<<PKGBUILDDIR>>/lib/entity_data_parser.js:45:17
>     at Array.forEach (<anonymous>)
>     at parseEntities (/<<PKGBUILDDIR>>/lib/entity_data_parser.js:44:7)
>     at module.exports (/<<PKGBUILDDIR>>/lib/entity_data_parser.js:37:20)
>     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
> 
> Node.js v18.13.0
> 
>   Error: Command failed: export WB_CLIPBOARD=false WB_LANG=en WB_MAXLAG=100 ; ./bin/wb label Item:Q11 --instance https://wikibase-registry.wmflabs.org/w/api.php
>   /<<PKGBUILDDIR>>/lib/entity_data_parser.js:45
>       if (entities[id].missing) throw errors_.new('entity not found', id)
>                   ^
>   
>   TypeError: Cannot read properties of undefined (reading 'Q11')
>       at /<<PKGBUILDDIR>>/lib/entity_data_parser.js:45:17
>       at Array.forEach (<anonymous>)
>       at parseEntities (lib/entity_data_parser.js:44:7)
>       at module.exports (lib/entity_data_parser.js:37:20)
>       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
>   
>   Node.js v18.13.0
>   
>       at ChildProcess.exithandler (node:child_process:419:12)
>       at ChildProcess.emit (node:events:513:28)
>       at maybeClose (node:internal/child_process:1091:16)
>       at ChildProcess._handle.onexit (node:internal/child_process:302:5)
> 
> 
> 
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2023/07/26/node-wikibase-cli_15.15.4-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230726;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230726&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list