Fix python command returning -1 by selective wrapper interception and explicit bypass

This commit is contained in:
Reinier Criel 2025-12-10 15:01:35 -08:00
parent 14bb6899d8
commit 9417be1ac5
8 changed files with 354 additions and 44 deletions

View file

@ -16,20 +16,22 @@ const yarnVersion = process.env.YARN_VERSION || "latest";
const pnpmVersion = process.env.PNPM_VERSION || "latest";
export class DockerTestContainer {
constructor() {
constructor(profile = "default") {
this.containerName = `safe-chain-test-${Math.random()
.toString(36)
.substring(2, 15)}`;
this.isRunning = false;
this.profile = profile;
}
static buildImage() {
static buildImage(profile = "default") {
try {
const buildArgs = [
`--build-arg NODE_VERSION=${nodeVersion}`,
`--build-arg NPM_VERSION=${npmVersion}`,
`--build-arg YARN_VERSION=${yarnVersion}`,
`--build-arg PNPM_VERSION=${pnpmVersion}`,
profile === "pyenv" ? "--build-arg ENABLE_PYENV=true" : "",
].join(" ");
execSync(