[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: node-yarnpkg (update)



I had this error before when building locally (outside sbuild).
I think the process uses too many resources and is then killed.
I changed the builds to run sequentially using a patch.
What I did was change this:
await Promise.all(targets.map(target => build(target)));
to this:
for (const target of targets) {
 await build(target);
}
I am surprised that the error still occurs, though I never built the
package inside sbuild :)
I did all of sbuild's work on SalsaCI.

On Fri, 13 Oct 2023 at 10:33, Pirate Praveen <praveen@onenetbeyond.org> wrote:


On 13/10/23 2:51 PM, Pirate Praveen wrote:
>
>
> On 13/10/23 2:46 PM, Pirate Praveen wrote:
>>
>>
>> On 13/10/23 2:36 PM, Israel Galadima wrote:
>>> Thanks, I temporarily reset my repo while working on
>>> a change suggested by Yadd.
>>> I've restored my changes with Yadd's fix implemented.
>>
>> Thanks, I think we should target experimental since it is a big change
>> and test it for a while before reuploading to unstable.
>
> Also close relevant bugs.

I got a build failure with sbuild

Found debian/nodejs/algoliasearch-client-_javascript_/build
        cd ./algoliasearch-client-_javascript_ && sh -ex
../debian/nodejs/algoliasearch-client-_javascript_/build
+ node scripts/build.js

/<<PKGBUILDDIR>>/algoliasearch-client-_javascript_/packages/algoliasearch/src/builds/node.ts
→ packages/algoliasearch/dist/algoliasearch.cjs.js...
/usr/share/nodejs/execa/execa.cjs:885
                error = new Error(message);
                        ^

Error: Command was killed with SIGKILL (Forced termination): rollup -c
--bundleConfigAsCjs --environment TARGET:algoliasearch
     at makeError (/usr/share/nodejs/execa/execa.cjs:885:11)
     at handlePromise (/usr/share/nodejs/execa/execa.cjs:1805:26)
     at process.processTicksAndRejections
(node:internal/process/task_queues:95:5)
     at async build
(/<<PKGBUILDDIR>>/algoliasearch-client-_javascript_/scripts/build.js:31:3)
     at async run
(/<<PKGBUILDDIR>>/algoliasearch-client-_javascript_/scripts/build.js:24:5) {
   shortMessage: 'Command was killed with SIGKILL (Forced termination):
rollup -c --bundleConfigAsCjs --environment TARGET:algoliasearch',
   command: 'rollup -c --bundleConfigAsCjs --environment
TARGET:algoliasearch',
   escapedCommand: 'rollup -c --bundleConfigAsCjs --environment
"TARGET:algoliasearch"',
   exitCode: undefined,
   signal: 'SIGKILL',
   signalDescription: 'Forced termination',
   stdout: undefined,
   stderr: undefined,
   failed: true,
   timedOut: false,
   isCanceled: false,
   killed: false
}

Node.js v18.13.0

Reply to: