@invarn/cibuild 2.5.6 → 2.5.9
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/cli.cjs +10 -10
- package/dist/src/commands/build.d.ts +13 -2
- package/dist/src/commands/build.d.ts.map +1 -1
- package/dist/src/commands/build.js +32 -6
- package/dist/src/commands/build.test.js +62 -0
- package/dist/src/shared/git.d.ts +25 -0
- package/dist/src/shared/git.d.ts.map +1 -0
- package/dist/src/shared/git.js +53 -0
- package/dist/src/shared/git.test.d.ts +9 -0
- package/dist/src/shared/git.test.d.ts.map +1 -0
- package/dist/src/shared/git.test.js +66 -0
- package/dist/src/yaml/steps/base.d.ts.map +1 -1
- package/dist/src/yaml/steps/base.js +11 -4
- package/dist/src/yaml/steps/cache-push-daemon.test.d.ts +27 -0
- package/dist/src/yaml/steps/cache-push-daemon.test.d.ts.map +1 -0
- package/dist/src/yaml/steps/cache-push-daemon.test.js +132 -0
- package/dist/src/yaml/steps/cache.d.ts.map +1 -1
- package/dist/src/yaml/steps/cache.js +54 -13
- package/dist/src/yaml/steps/envstore-loader.test.d.ts +15 -0
- package/dist/src/yaml/steps/envstore-loader.test.d.ts.map +1 -0
- package/dist/src/yaml/steps/envstore-loader.test.js +143 -0
- package/dist/src/yaml/types.d.ts +6 -0
- package/dist/src/yaml/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -94,6 +94,53 @@ function resolvePresetChain(technology) {
|
|
|
94
94
|
function daemonCurl(args) {
|
|
95
95
|
return `curl -fsS \${CIBUILD_CACHE_TOKEN:+-H "Authorization: Bearer $CIBUILD_CACHE_TOKEN"} ${args}`;
|
|
96
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* The same request, keeping the response body when the daemon refuses.
|
|
99
|
+
*
|
|
100
|
+
* `-f` throws the body away, so a rejection reached the log as an exit code
|
|
101
|
+
* and nothing else. The daemon distinguishes `invalid_cache_key` (400), a
|
|
102
|
+
* retryable `cache_busy` (503) and an auth failure (401); all three arrived
|
|
103
|
+
* as the same `curl: (22)` line under the same warning, which is how a
|
|
104
|
+
* one-line bug stayed open behind it. Push only — on the pull side the body
|
|
105
|
+
* would be piped into `zstd`.
|
|
106
|
+
*
|
|
107
|
+
* `--fail-with-body` is curl 7.76+ (2021); every runner image is well past
|
|
108
|
+
* it. An older curl rejects the option and the step still degrades to
|
|
109
|
+
* today's behaviour, with the reason in the message.
|
|
110
|
+
*/
|
|
111
|
+
function daemonCurlKeepingErrorBody(args) {
|
|
112
|
+
return `curl --fail-with-body -sS \${CIBUILD_CACHE_TOKEN:+-H "Authorization: Bearer $CIBUILD_CACHE_TOKEN"} ${args}`;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The daemon half of `cache-push`, shared by both step forms.
|
|
116
|
+
*
|
|
117
|
+
* Shared because it did not used to be. The two forms carried byte-identical
|
|
118
|
+
* copies of this block, and the explicit-key one reached it without ever
|
|
119
|
+
* assigning the `CACHE_KEY` it interpolates — the preset form assigned it,
|
|
120
|
+
* the other only assigned `CACHE_FILE`. There is no `set -u`, so the PUT went
|
|
121
|
+
* to `<daemon>/cache/.tar.zst`, the daemon answered 400, and the step
|
|
122
|
+
* reported success. Every curated Invarn template uses the explicit-key form,
|
|
123
|
+
* so nothing was ever stored by any of them. One definition cannot diverge
|
|
124
|
+
* from itself.
|
|
125
|
+
*/
|
|
126
|
+
function emitDaemonPushCommands() {
|
|
127
|
+
return [
|
|
128
|
+
` if __ci_push_err=$(tar -cf - "\${PATHS_TO_CACHE[@]}" 2>/dev/null | zstd -3 | ${daemonCurlKeepingErrorBody('-T - "$CIBUILD_CACHE_DAEMON/cache/$CACHE_KEY.tar.zst"')} 2>&1); then`,
|
|
129
|
+
' echo "Cache created successfully"',
|
|
130
|
+
' else',
|
|
131
|
+
// Never fatal: a build that produced good output should not be failed by
|
|
132
|
+
// a cache upload, and the next build simply misses. Saying *why* costs
|
|
133
|
+
// nothing and is the difference between a warning and a diagnosis.
|
|
134
|
+
" __ci_push_msg=$(printf '%s' \"$__ci_push_err\" | tr '\\n' ' ')",
|
|
135
|
+
' __ci_push_msg=${__ci_push_msg:0:300}',
|
|
136
|
+
' if [ -n "$__ci_push_msg" ]; then',
|
|
137
|
+
' echo "Warning: failed to upload cache to the daemon — $__ci_push_msg"',
|
|
138
|
+
' else',
|
|
139
|
+
' echo "Warning: failed to upload cache to the daemon"',
|
|
140
|
+
' fi',
|
|
141
|
+
' fi',
|
|
142
|
+
];
|
|
143
|
+
}
|
|
97
144
|
/**
|
|
98
145
|
* Restores a cache through the daemon rather than a shared directory.
|
|
99
146
|
*
|
|
@@ -491,7 +538,11 @@ export class CachePushStepExecutor extends BaseStepExecutor {
|
|
|
491
538
|
// Generate cache file name based on cache key
|
|
492
539
|
commands.push('');
|
|
493
540
|
commands.push('# Generate cache file path');
|
|
494
|
-
|
|
541
|
+
// CACHE_KEY first, CACHE_FILE derived from it — exactly as the pull side
|
|
542
|
+
// does. This step used to set only CACHE_FILE while the daemon URL below
|
|
543
|
+
// interpolated `$CACHE_KEY`; see emitDaemonPushCommands.
|
|
544
|
+
commands.push(`CACHE_KEY="${this.escapeBash(cacheKey)}"`);
|
|
545
|
+
commands.push('CACHE_FILE="$CACHE_DIR/$CACHE_KEY.tar.zst"');
|
|
495
546
|
if (isDebugMode) {
|
|
496
547
|
commands.push('echo "Debug mode enabled"');
|
|
497
548
|
commands.push('echo "Cache file: $CACHE_FILE"');
|
|
@@ -561,11 +612,7 @@ export class CachePushStepExecutor extends BaseStepExecutor {
|
|
|
561
612
|
}
|
|
562
613
|
// Transport split — see the preset path.
|
|
563
614
|
commands.push(' if [ -n "$CIBUILD_CACHE_DAEMON" ]; then');
|
|
564
|
-
commands.push(
|
|
565
|
-
commands.push(' echo "Cache created successfully"');
|
|
566
|
-
commands.push(' else');
|
|
567
|
-
commands.push(' echo "Warning: failed to upload cache to the daemon"');
|
|
568
|
-
commands.push(' fi');
|
|
615
|
+
commands.push(...emitDaemonPushCommands());
|
|
569
616
|
commands.push(' else');
|
|
570
617
|
// Atomic write into a per-process-unique temp (CBR-12). The "runs serialized
|
|
571
618
|
// per runner" assumption behind a fixed "$CACHE_FILE.tmp" is false with two VM
|
|
@@ -692,13 +739,7 @@ export class CachePushStepExecutor extends BaseStepExecutor {
|
|
|
692
739
|
// so there is no temp file to collide or orphan, and the daemon does the
|
|
693
740
|
// atomic temp+rename on the host side where the cache actually lives.
|
|
694
741
|
commands.push(' if [ -n "$CIBUILD_CACHE_DAEMON" ]; then');
|
|
695
|
-
commands.push(
|
|
696
|
-
commands.push(' echo "Cache created successfully"');
|
|
697
|
-
commands.push(' else');
|
|
698
|
-
// Never fatal: a build that produced good output should not be failed by a
|
|
699
|
-
// cache upload, and the next build simply misses.
|
|
700
|
-
commands.push(' echo "Warning: failed to upload cache to the daemon"');
|
|
701
|
-
commands.push(' fi');
|
|
742
|
+
commands.push(...emitDaemonPushCommands());
|
|
702
743
|
commands.push(' else');
|
|
703
744
|
// Per-process-unique temp (CBR-12). The old fixed "$CACHE_FILE.tmp" assumed
|
|
704
745
|
// a single serialized writer — false with two VM slots, and it collides with
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The envstore loader carried by every generated step.
|
|
3
|
+
*
|
|
4
|
+
* These tests drive the *reader* — the preamble `createBashScript` prepends —
|
|
5
|
+
* directly, with hostile envstore content written by hand. Going through a
|
|
6
|
+
* producer such as git-clone would only prove the one value that producer
|
|
7
|
+
* happens to write; the defect lives in the reader, so the reader is what gets
|
|
8
|
+
* the hostile input.
|
|
9
|
+
*
|
|
10
|
+
* Each case actually runs bash. Assertions are made on files the script body
|
|
11
|
+
* writes with `printf '%s'`, not on stdout, so a value's own newlines and
|
|
12
|
+
* quoting cannot be confused with the test's framing.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=envstore-loader.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envstore-loader.test.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/envstore-loader.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The envstore loader carried by every generated step.
|
|
3
|
+
*
|
|
4
|
+
* These tests drive the *reader* — the preamble `createBashScript` prepends —
|
|
5
|
+
* directly, with hostile envstore content written by hand. Going through a
|
|
6
|
+
* producer such as git-clone would only prove the one value that producer
|
|
7
|
+
* happens to write; the defect lives in the reader, so the reader is what gets
|
|
8
|
+
* the hostile input.
|
|
9
|
+
*
|
|
10
|
+
* Each case actually runs bash. Assertions are made on files the script body
|
|
11
|
+
* writes with `printf '%s'`, not on stdout, so a value's own newlines and
|
|
12
|
+
* quoting cannot be confused with the test's framing.
|
|
13
|
+
*/
|
|
14
|
+
import { describe, test, expect, beforeEach, afterEach } from '@jest/globals';
|
|
15
|
+
import { spawnSync } from 'child_process';
|
|
16
|
+
import { mkdtempSync, mkdirSync, writeFileSync, readFileSync, rmSync, existsSync } from 'fs';
|
|
17
|
+
import { join } from 'path';
|
|
18
|
+
import { tmpdir } from 'os';
|
|
19
|
+
import { BaseStepExecutor } from './base.js';
|
|
20
|
+
/** Exposes the protected preamble builder so the reader can be tested on its own. */
|
|
21
|
+
class PreambleProbe extends BaseStepExecutor {
|
|
22
|
+
async execute(_inputs, _env, _config) {
|
|
23
|
+
throw new Error('not used');
|
|
24
|
+
}
|
|
25
|
+
build(scriptContent) {
|
|
26
|
+
return this.createBashScript(scriptContent, 'envstore-loader-probe');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
describe('envstore loader', () => {
|
|
30
|
+
let workDir;
|
|
31
|
+
beforeEach(() => {
|
|
32
|
+
workDir = mkdtempSync(join(tmpdir(), 'envstore-loader-'));
|
|
33
|
+
});
|
|
34
|
+
afterEach(() => {
|
|
35
|
+
rmSync(workDir, { recursive: true, force: true });
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Writes an envstore, runs the generated preamble over it, and captures the
|
|
39
|
+
* named variables as the step body sees them.
|
|
40
|
+
*/
|
|
41
|
+
function run(envs, capture, extraBody = '') {
|
|
42
|
+
const storePath = join(workDir, 'envstore.json');
|
|
43
|
+
const outDir = join(workDir, 'captured');
|
|
44
|
+
mkdirSync(outDir, { recursive: true });
|
|
45
|
+
writeFileSync(storePath, JSON.stringify({ envs: envs.map(e => ({ ...e, sensitive: false })) }), 'utf-8');
|
|
46
|
+
const body = [
|
|
47
|
+
...capture.map(name => `printf '%s' "\${${name}-}" > "$CAPTURE_DIR/${name}"`),
|
|
48
|
+
extraBody,
|
|
49
|
+
].join('\n');
|
|
50
|
+
const scriptPath = join(workDir, 'step.sh');
|
|
51
|
+
writeFileSync(scriptPath, new PreambleProbe().build(body), 'utf-8');
|
|
52
|
+
const proc = spawnSync('bash', [scriptPath], {
|
|
53
|
+
cwd: workDir,
|
|
54
|
+
encoding: 'utf-8',
|
|
55
|
+
env: {
|
|
56
|
+
...process.env,
|
|
57
|
+
ENVMAN_ENVSTORE_PATH: storePath,
|
|
58
|
+
CAPTURE_DIR: outDir,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
return {
|
|
62
|
+
status: proc.status,
|
|
63
|
+
stderr: proc.stderr ?? '',
|
|
64
|
+
captured(name) {
|
|
65
|
+
const file = join(outDir, name);
|
|
66
|
+
return existsSync(file) ? readFileSync(file, 'utf-8') : undefined;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
test('a value containing newlines round-trips byte for byte', () => {
|
|
71
|
+
const body = 'first line\nsecond line\nthird line';
|
|
72
|
+
const result = run([{ key: 'GIT_CLONE_COMMIT_MESSAGE_BODY', value: body }], ['GIT_CLONE_COMMIT_MESSAGE_BODY']);
|
|
73
|
+
expect(result.status).toBe(0);
|
|
74
|
+
expect(result.captured('GIT_CLONE_COMMIT_MESSAGE_BODY')).toBe(body);
|
|
75
|
+
});
|
|
76
|
+
test('security: a value whose lines look like assignments sets nothing', () => {
|
|
77
|
+
const hostile = 'looks harmless\nPATH=/tmp/attacker-controlled\nNODE_OPTIONS=--require=/tmp/evil.js';
|
|
78
|
+
const result = run([{ key: 'GIT_CLONE_COMMIT_MESSAGE_BODY', value: hostile }], ['GIT_CLONE_COMMIT_MESSAGE_BODY', 'PATH', 'NODE_OPTIONS']);
|
|
79
|
+
expect(result.status).toBe(0);
|
|
80
|
+
// The value arrives intact...
|
|
81
|
+
expect(result.captured('GIT_CLONE_COMMIT_MESSAGE_BODY')).toBe(hostile);
|
|
82
|
+
// ...and none of its lines became a variable. Both are compared against
|
|
83
|
+
// what the parent environment held, which is what "unchanged" means here:
|
|
84
|
+
// the test runner itself sets NODE_OPTIONS.
|
|
85
|
+
expect(result.captured('PATH')).toBe(process.env.PATH ?? '');
|
|
86
|
+
expect(result.captured('NODE_OPTIONS')).toBe(process.env.NODE_OPTIONS ?? '');
|
|
87
|
+
expect(result.captured('NODE_OPTIONS')).not.toContain('/tmp/evil.js');
|
|
88
|
+
});
|
|
89
|
+
test('awkward bytes in a value all survive unchanged', () => {
|
|
90
|
+
const cases = [
|
|
91
|
+
{ key: 'HAS_EQUALS', value: 'a=b=c' },
|
|
92
|
+
{ key: 'HAS_QUOTES', value: `single ' double " both '"` },
|
|
93
|
+
{ key: 'HAS_BACKTICKS', value: 'a `whoami` b' },
|
|
94
|
+
{ key: 'HAS_SUBSHELL', value: 'a $(whoami) b ${HOME} c' },
|
|
95
|
+
{ key: 'HAS_TRAILING_NEWLINE', value: 'ends with a newline\n' },
|
|
96
|
+
{ key: 'HAS_LONE_CR', value: 'before\rafter' },
|
|
97
|
+
{ key: 'HAS_BACKSLASHES', value: 'C:\\path\\to\\thing and \\n literal' },
|
|
98
|
+
{ key: 'HAS_LEADING_SPACE', value: ' padded ' },
|
|
99
|
+
];
|
|
100
|
+
const result = run(cases, cases.map(c => c.key));
|
|
101
|
+
expect(result.status).toBe(0);
|
|
102
|
+
for (const { key, value } of cases) {
|
|
103
|
+
expect({ key, value: result.captured(key) }).toEqual({ key, value });
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
test('a non-identifier key is skipped without failing the step under set -e', () => {
|
|
107
|
+
const result = run([
|
|
108
|
+
{ key: 'not a valid identifier', value: 'x' },
|
|
109
|
+
{ key: '2_LEADING_DIGIT', value: 'x' },
|
|
110
|
+
{ key: '', value: 'x' },
|
|
111
|
+
{ key: 'GOOD_KEY', value: 'kept' },
|
|
112
|
+
], ['GOOD_KEY'], 'echo reached-the-end');
|
|
113
|
+
expect(result.status).toBe(0);
|
|
114
|
+
expect(result.captured('GOOD_KEY')).toBe('kept');
|
|
115
|
+
expect(result.stderr).not.toContain('not a valid identifier');
|
|
116
|
+
});
|
|
117
|
+
test('regression: a multi-line commit message does not end the step', () => {
|
|
118
|
+
// The shape that killed the first real proof on 2026-08-30: git-clone
|
|
119
|
+
// publishes the commit body, and every later step died loading it.
|
|
120
|
+
const result = run([
|
|
121
|
+
{ key: 'GIT_CLONE_COMMIT_MESSAGE_SUBJECT', value: 'Add Invarn pipeline' },
|
|
122
|
+
{
|
|
123
|
+
key: 'GIT_CLONE_COMMIT_MESSAGE_BODY',
|
|
124
|
+
value: 'cibuild sets CIBUILD_GIT_BRANCH, so pre-execution validation asked for a\nvalue nothing provides.\n\nSecond paragraph.',
|
|
125
|
+
},
|
|
126
|
+
], ['GIT_CLONE_COMMIT_MESSAGE_SUBJECT'], 'echo step-completed');
|
|
127
|
+
expect(result.status).toBe(0);
|
|
128
|
+
expect(result.captured('GIT_CLONE_COMMIT_MESSAGE_SUBJECT')).toBe('Add Invarn pipeline');
|
|
129
|
+
expect(result.stderr).not.toContain('not a valid identifier');
|
|
130
|
+
});
|
|
131
|
+
test('an absent envstore leaves the step to run normally', () => {
|
|
132
|
+
const scriptPath = join(workDir, 'no-store.sh');
|
|
133
|
+
writeFileSync(scriptPath, new PreambleProbe().build('echo ran'), 'utf-8');
|
|
134
|
+
const proc = spawnSync('bash', [scriptPath], {
|
|
135
|
+
cwd: workDir,
|
|
136
|
+
encoding: 'utf-8',
|
|
137
|
+
env: { ...process.env, ENVMAN_ENVSTORE_PATH: join(workDir, 'missing.json') },
|
|
138
|
+
});
|
|
139
|
+
expect(proc.status).toBe(0);
|
|
140
|
+
expect(proc.stdout).toContain('ran');
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=envstore-loader.test.js.map
|
package/dist/src/yaml/types.d.ts
CHANGED
|
@@ -42,6 +42,12 @@ export interface YAMLApp {
|
|
|
42
42
|
export interface YAMLTrigger {
|
|
43
43
|
push_branch?: string;
|
|
44
44
|
pull_request_source_branch?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The branch a pull request is opened *against*. Matched by Invarn's
|
|
47
|
+
* trigger resolver alongside the source branch, and what the generated
|
|
48
|
+
* scaffold uses — a `"*"` here means "any pull request".
|
|
49
|
+
*/
|
|
50
|
+
pull_request_target_branch?: string;
|
|
45
51
|
workflow?: string;
|
|
46
52
|
}
|
|
47
53
|
export interface YAMLPipeline {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/yaml/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AACzC,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC;AAGrD,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;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