You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test("Linux release packaging ships pinned connectors for every supported host architecture",()=>{
@@ -16,10 +17,30 @@ test("Linux release packaging ships pinned connectors for every supported host a
16
17
}
17
18
assert.match(packageLinux,/cloudflared-linux-\$\{connector\.arch\}/,"the verified binaries enter the Linux release archive");
18
19
assert.match(packageLinux,/chmodSync\(destination,0o755\)/,"packaged Linux connectors retain executable mode");
20
+
assert.match(packageLinux,/rev-parse[\s\S]*--show-toplevel[\s\S]*repositoryRoot!==root[\s\S]*parentrepositoryorsourcecopyisnotreleaseauthority/,"Linux packaging fails closed when a copied source tree accidentally resolves to a parent Git checkout");
21
+
assert.match(packageLinux,/git",\["show","HEAD:package\.json"\][\s\S]*headVersion!==version/,"Linux packaging binds its visible version to the exact Git HEAD");
22
+
assert.match(packageLinux,/archive\.stdout\?\.length[\s\S]*stagedPackage[\s\S]*versionedpackagecontract/,"Linux packaging rejects an empty or structurally incomplete Git source archive");
19
23
assert.match(resolver,/cloudflared-linux-\$\{process\.arch\}/,"Linux resolves only the binary matching the running host architecture");
20
24
assert.match(resolver,/process\.env\.HELM_APP_ROOT[\s\S]*process\.cwd\(\)/,"an installed Linux service can resolve its bundled connector from its release working directory");
21
25
});
22
26
27
+
test("Linux release packaging rejects a source copy nested under another Git checkout",async()=>{
0 commit comments