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

Terminal shell integration smoke tests flaky #150478

Closed
Tyriar opened this issue May 26, 2022 · 8 comments · Fixed by #152278
Closed

Terminal shell integration smoke tests flaky #150478

Tyriar opened this issue May 26, 2022 · 8 comments · Fixed by #152278
Assignees
Labels
insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux smoke-test-failure terminal-shell-integration Shell integration infrastructure, command decorations, etc.
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented May 26, 2022

Probably due to #150469, I can only test on macOS atm.

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug linux Issues with VS Code on Linux smoke-test-failure terminal-shell-integration Shell integration infrastructure, command decorations, etc. labels May 26, 2022
@Tyriar Tyriar added this to the May 2022 milestone May 26, 2022
@Tyriar Tyriar self-assigned this May 26, 2022
Tyriar added a commit that referenced this issue May 26, 2022
@Tyriar Tyriar changed the title Terminal shell integration error tests failing on Linux Terminal shell integration failing on Linux May 26, 2022
Tyriar added a commit that referenced this issue May 26, 2022
@Tyriar Tyriar modified the milestones: May 2022, June 2022 May 27, 2022
@Tyriar
Copy link
Member Author

Tyriar commented Jun 1, 2022

@Tyriar Tyriar changed the title Terminal shell integration failing on Linux Terminal shell integration smoke tests flaky Jun 1, 2022
Tyriar added a commit that referenced this issue Jun 1, 2022
@Tyriar
Copy link
Member Author

Tyriar commented Jun 3, 2022

The screenshot taken in the macOS success test failure actually shows command decorations worked fine, why did the assertion fail?

  56 passing (7m)
  8 pending
  1 failing

  1) VSCode Smoke Tests (Web)
       Terminal
         Terminal Shell Integration
           Shell integration
             Decorations
               Should show default icons
                 Success:
     Error: Timeout: get elements '.terminal-command-decoration.codicon-circle-outline' after 20 seconds.
      at Code.poll (/Users/runner/work/1/s/test/automation/src/code.ts:254:11)
      at Code.waitForElements (/Users/runner/work/1/s/test/automation/src/code.ts:203:10)
      at Terminal.assertCommandDecorations (/Users/runner/work/1/s/test/automation/src/terminal.ts:219:4)
      at Context.<anonymous> (src/areas/terminal/terminal-shellIntegration.test.ts:41:7)

image

@Tyriar
Copy link
Member Author

Tyriar commented Jun 3, 2022

Duplicate command decorations! The smoke test is pointing out an issue like #144597
image

@Tyriar
Copy link
Member Author

Tyriar commented Jun 3, 2022

Very hard to reproduce this with my prompt setup but if I remove that and go to the bash default I ended up getting 5 decorations, 2 for ls at the top, 3 for the placeholder at the bottom. Resizing added even more.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 3, 2022

What's written to the terminal when these 5 decorations appear:

xterm.js: parsing data "l"
xterm.js: parsing data "s"
xterm.js: parsing data "
"
xterm.js: parsing data "�]633;C�"
xterm.js: parsing data "�]633;D;0��]633;P;Cwd=/Users/daimms/dev/Microsoft/vscode�"
xterm.js: parsing data "�[?2004h�]633;A��]633;A��]0;daimms@Daniels-MacBook-Pro: ~/dev/Microsoft/vscode�bash-5.1$ �]633;B��]633;B�"
xterm.js: parsing data "ls
�[?2004l
"
xterm.js: parsing data "�]633;C�"
xterm.js: parsing data "CONTRIBUTING.md		out
LICENSE.txt		package.json
README.md		product.json
SECURITY.md		remote
ThirdPartyNotices.txt	resources
build			scripts
cglicenses.json		src
cgmanifest.json		test
extensions		tsfmt.json
gulpfile.js		yarn.lock
node_modules
"
xterm.js: parsing data "�]633;D;0��]633;P;Cwd=/Users/daimms/dev/Microsoft/vscode�"
xterm.js: parsing data "�[?2004h�]633;A��]633;A��]633;A��]0;daimms@Daniels-MacBook-Pro: ~/dev/Microsoft/vscode�bash-5.1$ �]633;B��]633;B��]633;B�"

I see 2 A/B sequences at the top and 3 A/B sequences at the bottom

@Tyriar
Copy link
Member Author

Tyriar commented Jun 3, 2022

PS1 is getting wrapped several times:

Screen Shot 2022-06-03 at 8 46 39 am

@Tyriar
Copy link
Member Author

Tyriar commented Jun 15, 2022

I expect the state to be much better now after the recent improvements around multiple placeholder decorations (#152136). Created a CI run to execute the shell integration tests 100 times https://monacotools.visualstudio.com/DefaultCollection/Monaco/_build/results?buildId=174400&view=results

@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Jun 16, 2022
justschen pushed a commit to justschen/vscode that referenced this issue Jun 16, 2022
@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jun 17, 2022
@Tyriar Tyriar removed the bug Issue identified by VS Code Team member as probable bug label Jun 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux smoke-test-failure terminal-shell-integration Shell integration infrastructure, command decorations, etc.
Projects
None yet
2 participants