@specific.dev/spectest 0.71.0 → 0.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/daemon.js +7 -1
- package/package.json +1 -1
- package/src/daemon.ts +7 -1
package/dist/daemon.js
CHANGED
|
@@ -1121,12 +1121,18 @@ async function runServiceBuild(name, image, tag, caSuffix) {
|
|
|
1121
1121
|
// intermediate layer, uncompressed so an import never inflates,
|
|
1122
1122
|
// and one tag per service so exports do not replace each other.
|
|
1123
1123
|
const cacheTag = name.replace(/[^a-z0-9-]/gi, "-").toLowerCase();
|
|
1124
|
+
// LANDMINE: the local cache importer reads the `latest` entry of
|
|
1125
|
+
// the directory's index unless told otherwise, and the exporter
|
|
1126
|
+
// below writes this service's entry under `tag=<service>`. An
|
|
1127
|
+
// import without the same tag misses every time and every
|
|
1128
|
+
// `RUN` re-executes on a seeded cache (seen on the first deploy,
|
|
1129
|
+
// 2026-09-05: the disk carried the blobs, the build used none).
|
|
1124
1130
|
buildArgs = [
|
|
1125
1131
|
"buildx", "build",
|
|
1126
1132
|
"--builder", LOCAL_BUILDER_NAME,
|
|
1127
1133
|
"--progress=plain",
|
|
1128
1134
|
"--output", `type=image,name=${qualifyImageRef(tag)},unpack=true`,
|
|
1129
|
-
..._localCacheImports.flatMap((src) => ["--cache-from", `type=local,src=${src}`]),
|
|
1135
|
+
..._localCacheImports.flatMap((src) => ["--cache-from", `type=local,src=${src},tag=${cacheTag}`]),
|
|
1130
1136
|
"--cache-to", `type=local,dest=${_localCacheDir},mode=max,compression=uncompressed,force-compression=true,tag=${cacheTag}`,
|
|
1131
1137
|
...argFlags,
|
|
1132
1138
|
"-f", dfPath, WORKSPACE,
|
package/package.json
CHANGED
package/src/daemon.ts
CHANGED
|
@@ -1461,12 +1461,18 @@ async function runServiceBuild(
|
|
|
1461
1461
|
// intermediate layer, uncompressed so an import never inflates,
|
|
1462
1462
|
// and one tag per service so exports do not replace each other.
|
|
1463
1463
|
const cacheTag = name.replace(/[^a-z0-9-]/gi, "-").toLowerCase();
|
|
1464
|
+
// LANDMINE: the local cache importer reads the `latest` entry of
|
|
1465
|
+
// the directory's index unless told otherwise, and the exporter
|
|
1466
|
+
// below writes this service's entry under `tag=<service>`. An
|
|
1467
|
+
// import without the same tag misses every time and every
|
|
1468
|
+
// `RUN` re-executes on a seeded cache (seen on the first deploy,
|
|
1469
|
+
// 2026-09-05: the disk carried the blobs, the build used none).
|
|
1464
1470
|
buildArgs = [
|
|
1465
1471
|
"buildx", "build",
|
|
1466
1472
|
"--builder", LOCAL_BUILDER_NAME,
|
|
1467
1473
|
"--progress=plain",
|
|
1468
1474
|
"--output", `type=image,name=${qualifyImageRef(tag)},unpack=true`,
|
|
1469
|
-
..._localCacheImports.flatMap((src) => ["--cache-from", `type=local,src=${src}`]),
|
|
1475
|
+
..._localCacheImports.flatMap((src) => ["--cache-from", `type=local,src=${src},tag=${cacheTag}`]),
|
|
1470
1476
|
"--cache-to", `type=local,dest=${_localCacheDir},mode=max,compression=uncompressed,force-compression=true,tag=${cacheTag}`,
|
|
1471
1477
|
...argFlags,
|
|
1472
1478
|
"-f", dfPath, WORKSPACE,
|