PR feedback

cloud-runner-develop
Frostebite 2025-12-05 13:49:59 +00:00
parent 6de312ee1a
commit 2ecc14a8c8
4 changed files with 11 additions and 10 deletions

7
dist/index.js vendored
View File

@ -3912,10 +3912,9 @@ class KubernetesJobSpecFactory {
preStop: {
exec: {
command: [
`wait 60s;
cd /data/builder/action/steps;
chmod +x /return_license.sh;
/return_license.sh;`,
'/bin/sh',
'-c',
'sleep 60; cd /data/builder/action/steps && chmod +x /steps/return_license.sh 2>/dev/null || true; /steps/return_license.sh 2>/dev/null || true',
],
},
},

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -119,7 +119,10 @@ mkdir -p /github/workspace/cloud-runner-cache
mkdir -p /data/cache
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
${CommandHookService.ApplyHooksToCommands(commands, this.buildParameters)}
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
# Only copy cache directory, exclude retained workspaces to avoid running out of disk space
if [ -d "${sharedFolder}cache" ]; then
cp -a ${sharedFolder}cache/. /github/workspace/cloud-runner-cache/cache/ || true
fi
`;
writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
flag: 'w',

View File

@ -118,10 +118,9 @@ class KubernetesJobSpecFactory {
preStop: {
exec: {
command: [
`wait 60s;
cd /data/builder/action/steps;
chmod +x /return_license.sh;
/return_license.sh;`,
'/bin/sh',
'-c',
'sleep 60; cd /data/builder/action/steps && chmod +x /steps/return_license.sh 2>/dev/null || true; /steps/return_license.sh 2>/dev/null || true',
],
},
},