sandboxbox 2.5.3 → 2.5.5
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/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export function buildCommand(dockerfilePath) {
|
|
|
34
34
|
cwd: dirname(dockerfilePath),
|
|
35
35
|
shell: process.platform === 'win32',
|
|
36
36
|
windowsHide: process.platform === 'win32',
|
|
37
|
-
timeout:
|
|
37
|
+
timeout: 300000 // 5 minutes for container builds
|
|
38
38
|
});
|
|
39
39
|
console.log(color('green', '\n✅ Container built successfully!'));
|
|
40
40
|
return true;
|
|
@@ -102,7 +102,12 @@ export function runCommand(projectDir, cmd = 'bash') {
|
|
|
102
102
|
}).trim();
|
|
103
103
|
console.log(output);
|
|
104
104
|
} else {
|
|
105
|
-
|
|
105
|
+
// For longer-running commands, use extended timeout
|
|
106
|
+
const longRunningOptions = {
|
|
107
|
+
...containerOptions,
|
|
108
|
+
timeout: 600000 // 10 minutes for longer operations
|
|
109
|
+
};
|
|
110
|
+
execSync(`"${podmanPath}" run --rm -it ${mounts.join(' ')} -w /workspace sandboxbox:latest ${cmd}`, longRunningOptions);
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
cleanup();
|
|
@@ -213,7 +218,7 @@ export function shellCommand(projectDir) {
|
|
|
213
218
|
stdio: process.platform === 'win32' ? ['pipe', 'pipe', 'pipe'] : 'inherit',
|
|
214
219
|
shell: process.platform === 'win32',
|
|
215
220
|
windowsHide: process.platform === 'win32',
|
|
216
|
-
timeout:
|
|
221
|
+
timeout: 600000 // 10 minutes for interactive shell sessions
|
|
217
222
|
});
|
|
218
223
|
|
|
219
224
|
cleanup();
|
package/utils/isolation.js
CHANGED
|
@@ -132,7 +132,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
132
132
|
stdio: 'pipe',
|
|
133
133
|
shell: true,
|
|
134
134
|
windowsHide: process.platform === 'win32',
|
|
135
|
-
timeout:
|
|
135
|
+
timeout: 60000 // 1 minute for git operations
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
// Configure host repository to accept pushes to checked-out branch
|
|
@@ -142,7 +142,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
142
142
|
stdio: 'pipe',
|
|
143
143
|
shell: true,
|
|
144
144
|
windowsHide: true,
|
|
145
|
-
timeout:
|
|
145
|
+
timeout: 60000 // 1 minute for git operations
|
|
146
146
|
});
|
|
147
147
|
} catch (e) {
|
|
148
148
|
// Ignore if git config fails
|
|
@@ -151,7 +151,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
151
151
|
execSync(`cd "${normalizedOriginalDir}" && git config receive.denyCurrentBranch ignore`, {
|
|
152
152
|
stdio: 'pipe',
|
|
153
153
|
shell: true,
|
|
154
|
-
timeout:
|
|
154
|
+
timeout: 60000 // 1 minute for git operations
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -162,7 +162,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
162
162
|
stdio: 'pipe',
|
|
163
163
|
shell: true,
|
|
164
164
|
windowsHide: true,
|
|
165
|
-
timeout:
|
|
165
|
+
timeout: 60000 // 1 minute for git operations
|
|
166
166
|
});
|
|
167
167
|
} catch (e) {
|
|
168
168
|
// Ignore if origin doesn't exist
|
|
@@ -171,7 +171,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
171
171
|
execSync(`cd "${normalizedTempDir}" && git remote remove origin 2>/dev/null || true`, {
|
|
172
172
|
stdio: 'pipe',
|
|
173
173
|
shell: true,
|
|
174
|
-
timeout:
|
|
174
|
+
timeout: 60000 // 1 minute for git operations
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
|
|
@@ -180,7 +180,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
180
180
|
stdio: 'pipe',
|
|
181
181
|
shell: true,
|
|
182
182
|
windowsHide: process.platform === 'win32',
|
|
183
|
-
timeout:
|
|
183
|
+
timeout: 60000 // 1 minute for git operations
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
// Set up upstream tracking for current branch (use push -u to set upstream)
|
|
@@ -188,7 +188,7 @@ export function createIsolatedEnvironment(projectDir) {
|
|
|
188
188
|
encoding: 'utf8',
|
|
189
189
|
stdio: 'pipe',
|
|
190
190
|
windowsHide: process.platform === 'win32',
|
|
191
|
-
timeout:
|
|
191
|
+
timeout: 60000 // 1 minute for git operations
|
|
192
192
|
}).trim();
|
|
193
193
|
|
|
194
194
|
// Note: Upstream will be set automatically on first push with -u flag
|