@vzn/vx-reapi 0.0.651 → 0.0.652
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/README.md +4 -5
- package/package.json +2 -2
- package/src/executor.ts +2 -2
package/README.md
CHANGED
|
@@ -427,7 +427,7 @@ reapi({
|
|
|
427
427
|
A cache-only server (bazel-remote advertises `exec_enabled: false`) makes the
|
|
428
428
|
plugin **decline the executor with a warning** rather than submit work that
|
|
429
429
|
will never be answered. Only cacheable tasks are eligible — a task with no
|
|
430
|
-
`cache`
|
|
430
|
+
`cache: true` has no described inputs, so a worker would run it against an
|
|
431
431
|
empty input root. A cacheable task's root holds its declared input files.
|
|
432
432
|
|
|
433
433
|
Verified end-to-end against a live NativeLink scheduler + worker: input tree
|
|
@@ -452,14 +452,13 @@ the packages a build needs. The answer is the design doc's §7.4 recipe,
|
|
|
452
452
|
install: {
|
|
453
453
|
exec: { command: 'bun install --frozen-lockfile', remote: 'only' },
|
|
454
454
|
inputs: { files: ['package.json', 'bun.lock'] },
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
},
|
|
455
|
+
outputs: { files: ['node_modules/**'] },
|
|
456
|
+
cache: true,
|
|
458
457
|
},
|
|
459
458
|
build: {
|
|
460
459
|
dependsOn: ['install'],
|
|
461
460
|
exec: { command: 'tsc -p .' },
|
|
462
|
-
inputs: { files: ['src/**'] },
|
|
461
|
+
inputs: { files: ['src/**'] }, outputs: { files: ['dist/**'] }, cache: true,
|
|
463
462
|
},
|
|
464
463
|
```
|
|
465
464
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx-reapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.652",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Bazel Remote Execution API plugin for vx — remote cache (ActionCache + CAS) against NativeLink, BuildBuddy, Buildbarn or bazel-remote.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@vzn/vx": "^0.0.
|
|
42
|
+
"@vzn/vx": "^0.0.652"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
package/src/executor.ts
CHANGED
|
@@ -533,7 +533,7 @@ export interface ReapiExecutorOptions {
|
|
|
533
533
|
|
|
534
534
|
/**
|
|
535
535
|
* A task is remote-eligible only if vx can DESCRIBE its inputs — that is the
|
|
536
|
-
* miss path of a cacheable task. A task
|
|
536
|
+
* miss path of a cacheable task. A task without `cache: true` ships nothing,
|
|
537
537
|
* so a worker would run it against an empty input root and produce garbage:
|
|
538
538
|
* decline it and let a later executor (the local one) take it.
|
|
539
539
|
*/
|
|
@@ -709,7 +709,7 @@ export function reapiExecutor(client: ReapiClient, opts: ReapiExecutorOptions =
|
|
|
709
709
|
|
|
710
710
|
const projectRel = toPosix(path.relative(req.workspaceRoot, req.cwd))
|
|
711
711
|
// REAPI `output_paths` are relative to `working_directory`, so a
|
|
712
|
-
// ROOT-anchored output (`
|
|
712
|
+
// ROOT-anchored output (`outputs.workspaceFiles`) declared by a
|
|
713
713
|
// NESTED project can only be spelled with `..` — `packages/vx/../..
|
|
714
714
|
// /node_modules`. The spec allows `..` in SYMLINK targets but servers
|
|
715
715
|
// are entitled to refuse it in output paths, and NativeLink does
|