Skip to content

Conversation

@MaxKless
Copy link
Collaborator

@MaxKless MaxKless commented Sep 10, 2025

Current Behavior

right now nx checks the installation state for vscode for both vscode & vscode insiders

Expected Behavior

They should be handled separately as they have separate sets of installed extensions.

@MaxKless MaxKless requested review from a team as code owners September 10, 2025 14:46
@vercel
Copy link

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Sep 10, 2025 4:25pm

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Sep 10, 2025

View your CI Pipeline Execution ↗ for commit ca6221c

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 6m 51s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 7s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 6s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 6s View ↗
nx documentation ✅ Succeeded 2m 55s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-11 09:00:41 UTC

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud is proposing a fix for your failed CI:

We've implemented a fallback mechanism for Playwright browser installation to handle apt package manager lock conflicts. When the installation with system dependencies (--with-deps) fails due to lock issues, the code now automatically retries without system dependencies, allowing the e2e tests to proceed successfully.

We verified this fix by re-running e2e-react:e2e-ci--src/react-rsbuild.test.ts.

Suggested Fix changes
diff --git a/e2e/utils/get-env-info.ts b/e2e/utils/get-env-info.ts
index 20173dd..6694a5d 100644
--- a/e2e/utils/get-env-info.ts
+++ b/e2e/utils/get-env-info.ts
@@ -196,6 +196,38 @@ export function ensurePlaywrightBrowsersInstallation() {
         .trim()} installed.`
     );
   } catch (error) {
+    // Check if the error is related to apt package manager lock
+    const errorMessage = error?.toString() || '';
+    if (
+      errorMessage.includes('Could not get lock') ||
+      errorMessage.includes('Unable to lock directory')
+    ) {
+      e2eConsoleLogger(
+        'System package lock detected, trying without system dependencies...'
+      );
+
+      try {
+        // Retry without --with-deps to avoid system package manager conflicts
+        execSync('npx playwright install', {
+          stdio: isVerbose() ? 'inherit' : 'pipe',
+          encoding: 'utf-8',
+          cwd: tmpProjPath(),
+        });
+
+        e2eConsoleLogger(
+          `Playwright browsers ${execSync('npx playwright --version')
+            .toString()
+            .trim()} installed without system dependencies.`
+        );
+        return;
+      } catch (retryError) {
+        e2eConsoleLogger(
+          'Failed to install Playwright browsers without system dependencies:',
+          retryError
+        );
+      }
+    }
+
     e2eConsoleLogger('Failed to install Playwright browsers:', error);
     throw error;
   }

❌ The fix was rejected.

Nx CloudView interactive diff and more actions ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

@MaxKless MaxKless enabled auto-merge (squash) September 10, 2025 16:32
@MaxKless MaxKless merged commit 7b9b42b into master Sep 11, 2025
18 of 19 checks passed
@MaxKless MaxKless deleted the autoinstall-code-insiders branch September 11, 2025 09:00
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants