test: isolate runtime ownership stubs
Validate and deploy production / deploy (push) Canceled after 0s
Validate and deploy production / validate (push) Canceled after 14s
Validate and deploy staging / validate (push) Successful in 31s
Validate and deploy staging / deploy (push) Successful in 2m26s

This commit is contained in:
jb
2026-08-02 01:22:16 -04:00
parent 25d9241b51
commit b7c7705266
+4 -2
View File
@@ -75,7 +75,7 @@ fi
exec /usr/bin/id "$@"
`;
const chownStub = `#!/bin/sh
const ownershipStub = `#!/bin/sh
exit 0
`;
@@ -135,7 +135,9 @@ describe('container runtime startup', () => {
),
writeFile(join(temporaryRoot, 'gosu'), gosuStub, { mode: 0o755 }),
writeFile(join(temporaryRoot, 'id'), idStub, { mode: 0o755 }),
writeFile(join(temporaryRoot, 'chown'), chownStub, { mode: 0o755 }),
writeFile(join(temporaryRoot, 'chgrp'), ownershipStub, { mode: 0o755 }),
writeFile(join(temporaryRoot, 'chmod'), ownershipStub, { mode: 0o755 }),
writeFile(join(temporaryRoot, 'chown'), ownershipStub, { mode: 0o755 }),
writeExport(appExport, [
{ key: 'APP_ORIGIN', value: 'https://exported.invalid' },
{ key: 'DISCORD_CLIENT_ID', value: 'exported-discord-client' },