All of lore.kernel.org
 help / color / mirror / Atom feed
* [2.18][PATCH 0/2] fetch/{npm,npmsw}: fix security issue and re-enable fetchers
@ 2026-08-25 13:02 Antonin Godard
  2026-08-25 13:02 ` [2.18][PATCH 1/2] fetch/{npm,npmsw}: re-enable fetchers now that checksums come from SRC_URI Antonin Godard
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Antonin Godard @ 2026-08-25 13:02 UTC (permalink / raw)
  To: bitbake-devel
  Cc: Thomas Petazzoni, Thomas Perrot, Antonin Godard,
	Mathieu Dubois-Briand, Richard Purdie

This is a proposal to backport patches re-enabling the npm and npmsw
fetcher on 2.18 (Wrynose). The two patches from this series are simple
cherry-picks, and had no conflicts applying.

Applying these two patches locally is also fine to me, but as this seems
to be working as-is I figured this might be helpful to others - up to the
maintainer(s) to decide.

Tests are passing locally:

$ bitbake-selftest -v bb.tests.fetch.NPMTest
test_npm (bb.tests.fetch.NPMTest.test_npm) ... ok
test_npm_bad_checksum (bb.tests.fetch.NPMTest.test_npm_bad_checksum) ... ok
test_npm_bad_recipe_checksum_rejected (bb.tests.fetch.NPMTest.test_npm_bad_recipe_checksum_rejected)
A wrong sha512sum param in SRC_URI causes the fetch to fail. ... ok
test_npm_destsuffix_downloadfilename (bb.tests.fetch.NPMTest.test_npm_destsuffix_downloadfilename) ... ok
test_npm_mirrors (bb.tests.fetch.NPMTest.test_npm_mirrors) ... ok
test_npm_no_checksum_rejected (bb.tests.fetch.NPMTest.test_npm_no_checksum_rejected)
A missing checksum in SRC_URI is rejected regardless of BB_STRICT_CHECKSUM. ... ok
test_npm_no_network_no_tarball (bb.tests.fetch.NPMTest.test_npm_no_network_no_tarball) ... ok
test_npm_no_network_with_tarball (bb.tests.fetch.NPMTest.test_npm_no_network_with_tarball) ... ok
test_npm_package_invalid (bb.tests.fetch.NPMTest.test_npm_package_invalid) ... ok
test_npm_package_none (bb.tests.fetch.NPMTest.test_npm_package_none) ... ok
test_npm_premirrors (bb.tests.fetch.NPMTest.test_npm_premirrors) ... ok
test_npm_premirrors_with_specified_filename (bb.tests.fetch.NPMTest.test_npm_premirrors_with_specified_filename) ... ok
test_npm_recipe_checksum (bb.tests.fetch.NPMTest.test_npm_recipe_checksum)
A sha512sum param in SRC_URI is forwarded to the proxy and verified. ... ok
test_npm_registry_alternate (bb.tests.fetch.NPMTest.test_npm_registry_alternate) ... ok
test_npm_registry_invalid (bb.tests.fetch.NPMTest.test_npm_registry_invalid) ... ok
test_npm_registry_none (bb.tests.fetch.NPMTest.test_npm_registry_none) ... ok
test_npm_version_invalid (bb.tests.fetch.NPMTest.test_npm_version_invalid) ... ok
test_npm_version_latest_rejected (bb.tests.fetch.NPMTest.test_npm_version_latest_rejected) ... ok
test_npm_version_none (bb.tests.fetch.NPMTest.test_npm_version_none) ... ok
test_npmsw (bb.tests.fetch.NPMTest.test_npmsw) ... ok
test_npmsw_bad_checksum (bb.tests.fetch.NPMTest.test_npmsw_bad_checksum) ... ok
test_npmsw_bundled (bb.tests.fetch.NPMTest.test_npmsw_bundled) ... ok
test_npmsw_destsuffix (bb.tests.fetch.NPMTest.test_npmsw_destsuffix) ... ok
test_npmsw_dev (bb.tests.fetch.NPMTest.test_npmsw_dev) ... ok
test_npmsw_git (bb.tests.fetch.NPMTest.test_npmsw_git) ... ok
test_npmsw_mirrors (bb.tests.fetch.NPMTest.test_npmsw_mirrors) ... ok
test_npmsw_no_network_no_tarball (bb.tests.fetch.NPMTest.test_npmsw_no_network_no_tarball) ... ok
test_npmsw_no_network_with_tarball (bb.tests.fetch.NPMTest.test_npmsw_no_network_with_tarball) ... ok
test_npmsw_npm_reusability (bb.tests.fetch.NPMTest.test_npmsw_npm_reusability) ... ok
test_npmsw_premirrors (bb.tests.fetch.NPMTest.test_npmsw_premirrors) ... ok

----------------------------------------------------------------------
Ran 30 tests in 101.185s

OK

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Thomas Perrot (2):
      fetch/{npm,npmsw}: re-enable fetchers now that checksums come from SRC_URI
      tests/fetch: restore and extend npm/npmsw test coverage

 lib/bb/fetch2/npm.py   | 111 +++++++++++++++++++++++++-----------------
 lib/bb/fetch2/npmsw.py |  12 ++---
 lib/bb/tests/fetch.py  | 129 +++++++++++++++++++++++++++++++++++++------------
 3 files changed, 169 insertions(+), 83 deletions(-)
---
base-commit: 0ad6c1c34a5e07a5f8dd66ab248c1e7b37b69fa9
change-id: 20260825-enable-npmsw-fetcher-wrynose-2574d377ec2b



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-25 13:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25 13:02 [2.18][PATCH 0/2] fetch/{npm,npmsw}: fix security issue and re-enable fetchers Antonin Godard
2026-08-25 13:02 ` [2.18][PATCH 1/2] fetch/{npm,npmsw}: re-enable fetchers now that checksums come from SRC_URI Antonin Godard
2026-08-25 13:02 ` [2.18][PATCH 2/2] tests/fetch: restore and extend npm/npmsw test coverage Antonin Godard
2026-08-25 13:10 ` [bitbake-devel] [2.18][PATCH 0/2] fetch/{npm,npmsw}: fix security issue and re-enable fetchers Yoann Congal
2026-08-25 13:17   ` Antonin Godard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.