diff --git a/.github/workflows/build-targets.yaml b/.github/workflows/build-targets.yaml index ed2e799..767105e 100644 --- a/.github/workflows/build-targets.yaml +++ b/.github/workflows/build-targets.yaml @@ -5,7 +5,7 @@ on: jobs: build: name: Build Code Editor Targets - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: build-target: [code-editor-server, code-editor-sagemaker-server, code-editor-web-embedded, code-editor-web-embedded-with-terminal] diff --git a/patches/sagemaker/sagemaker-ui-post-startup.diff b/patches/sagemaker/sagemaker-ui-post-startup.diff index ed06db9..eeaa681 100644 --- a/patches/sagemaker/sagemaker-ui-post-startup.diff +++ b/patches/sagemaker/sagemaker-ui-post-startup.diff @@ -39,7 +39,7 @@ Index: code-editor-src/src/vs/server/node/webClientServer.ts if (pathname.startsWith(WEB_EXTENSION_PATH) && pathname.charCodeAt(WEB_EXTENSION_PATH.length) === CharCode.Slash) { // extension resource support return this._handleWebExtensionResource(req, res, pathname.substring(WEB_EXTENSION_PATH.length)); -@@ -571,6 +580,41 @@ export class WebClientServer { +@@ -571,6 +580,38 @@ export class WebClientServer { serveError(req, res, 500, error.message) } } @@ -60,9 +60,6 @@ Index: code-editor-src/src/vs/server/node/webClientServer.ts + //If exists, it will start the execution and add the execution logs in logFile. + try { + if (fs.existsSync(postStartupScriptPath)) { -+ // Adding 0o755 to make script file executable -+ fs.chmodSync(postStartupScriptPath, 0o755); -+ + const subprocess = spawn('bash', [`${postStartupScriptPath}`], { cwd: '/' }); + subprocess.stdout.pipe(logStream); + subprocess.stderr.pipe(logStream);