mbox series

[0/2] fetch/npm: no npm executable, and an event log fix

Message ID 20261120135323.2627478-1-stondo@gmail.com
Headers show
Series fetch/npm: no npm executable, and an event log fix | expand

Message

Stefano Tondo Nov. 20, 2026, 1:53 p.m. UTC
Hi,

The OE-Core series "npm: list the dependencies in SRC_URI" needs these
two patches. I send that series at the same time. The two patches do
not depend on each other.

1. cooker: "recipetool create" for npm runs two builds in one server.
   The second build fails to write the event log, because
   sstate.bbclass stores compiled regular expressions in the
   datastore. The recipetool selftest of the OE-Core series shows this
   failure.
2. fetch/npm: Alexander asked for this in the RFC thread [1]. The npm
   fetcher must work without the npm executable, as the crate fetcher
   works without cargo. The npm tests now run without npm, and new
   tests fetch a package from a premirror without network access.

Tests: bitbake-selftest bb.tests.fetch.NPMTest passes, with an npm in
PATH that always fails. bb.tests.event and bb.tests.cooker pass.

[1] https://lore.kernel.org/openembedded-core/20261111115845.1940227-1-stondo@gmail.com/T/

Stefano Tondo (2):
  cooker: Write variables that are not JSON types to the event log
  fetch/npm: Build the tarball URL without the npm executable

 lib/bb/cooker.py      |  2 +-
 lib/bb/fetch/npm.py   | 50 +++----------------------
 lib/bb/tests/fetch.py | 85 ++++++++++++++++++++++---------------------
 3 files changed, 50 insertions(+), 87 deletions(-)