Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🚫 Bug] ExTester CI fails with ubuntu-24.04 runner image #1496

Closed
TamiTakamiya opened this issue Aug 26, 2024 · 2 comments · Fixed by #1599
Closed

[🚫 Bug] ExTester CI fails with ubuntu-24.04 runner image #1496

TamiTakamiya opened this issue Aug 26, 2024 · 2 comments · Fixed by #1599
Assignees
Labels
bug Something isn't working
Milestone

Comments

@TamiTakamiya
Copy link
Contributor

Describe the bug

We are trying to use the new ubuntu-24.04 GitHub Action runner image in our CI and found UI test was failing (reference). As far I looked at the failure, it seemed to occur when the VSBrowser.openResources() API was called.
I looked at the ExTester's CI setup and found it is using ubuntu-latest (=22.04) image. So I attempted to replace it to ubuntu-24.04 (commit) and run the Main CI (results) and saw the CI failed with ubuntu-24.04. The first failure occurred with Open resource test:

  1) Open resource test
       Single folder is open from CLI:
     TimeoutError: Error: Could not get title from TitleBar.
Wait timed out after 28208ms
      at /home/runner/work/vscode-extension-tester/vscode-extension-tester/node_modules/selenium-webdriver/lib/webdriver.js:913:22
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

These results suggest some compatibility issues in ExTester's opening resource function on ubuntu-24.04.

Steps to reproduce

1. Create a bew branch from the latest main branch of vscode-extension-tester
2. Replace the string `ubuntu-latest` that appears in files with `ubuntu-24.04`
3. Run the Main CI workflow

Logs

See the description above.

Operating System

Ubuntu 24.04 LTS

Visual Studio Code

1.92.2, 1.91.1, 1.90.2

vscode-extension-tester

latest (8.6.0)

NodeJS

20.16.0

npm

10.8.1

@TamiTakamiya TamiTakamiya added bug Something isn't working new-issue New issue which was not discussed yet labels Aug 26, 2024
@djelinek djelinek removed the new-issue New issue which was not discussed yet label Sep 12, 2024
@djelinek djelinek moved this from New to Backlog in ExTester Sep 12, 2024
@djelinek djelinek moved this from Backlog to Todo in ExTester Sep 12, 2024
@djelinek djelinek added this to the NEXT milestone Sep 12, 2024
@djelinek djelinek self-assigned this Sep 12, 2024
@djelinek
Copy link
Collaborator

I was able to reproduced on GH Actions but when I tried Ubuntu 24.04 in VM outside of github runners it was working fine..
on the screenshot from a failed CI run the vscode workbench seems to be shown correctly..

also I don't believe that there would be some VS Code DOM change depending just on OS

the true is that xvfb version between ubuntu 22.04 and 24.04 was changed so maybe the problem can be there.. unfortunately I was not able to install previous version of xvfb into ubuntu-2404 runner 😞

@djelinek djelinek moved this from Todo to In Progress in ExTester Oct 25, 2024
@odockal
Copy link
Contributor

odockal commented Oct 30, 2024

It seems that you are facing the same problem as we did: podman-desktop/podman-desktop#7256.

To fix the problem, make sure to run this code on ubuntu 24.04 before running the tests: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
PR: #1599.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants