fix(release): allow larger plugin publication manifests (#105800)

This commit is contained in:
Vincent Koc
2026-07-13 08:55:23 +08:00
committed by GitHub
parent fe0a6db2b4
commit 5c49055293
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ const TAR_USTAR_MAGIC = Buffer.from("ustar\0", "ascii");
const TAR_USTAR_VERSION = Buffer.from("00", "ascii");
const MAX_ARCHIVE_BYTES = 256 * 1024 * 1024;
const MAX_EXPANDED_BYTES = 512 * 1024 * 1024;
const MAX_MANIFEST_BYTES = 2 * 1024 * 1024;
const MAX_MANIFEST_BYTES = 4 * 1024 * 1024;
const MAX_PLUGIN_MANIFEST_BYTES = 2 * 1024 * 1024;
const MAX_TAR_ENTRIES = 10_000;
const MAX_TAR_PATH_BYTES = 4 * 1024 * 1024;

View File

@@ -1090,7 +1090,7 @@ describe("plugin publication artifact", () => {
it("caps publication JSON and tarball members before ZIP expansion", () => {
const fixture = createFixture();
const manifest = readFileSync(fixture.created.manifestPath);
const oversizedManifest = Buffer.alloc(2 * 1024 * 1024 + 1, 0x20);
const oversizedManifest = Buffer.alloc(4 * 1024 * 1024 + 1, 0x20);
replaceArtifactZip(fixture, [
{ bytes: fixture.tarball, name: TARBALL_NAME },