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

Debug smoketest failure #78384

Closed
alexr00 opened this issue Aug 2, 2019 · 15 comments
Closed

Debug smoketest failure #78384

alexr00 opened this issue Aug 2, 2019 · 15 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues smoke-test-failure verification-found Issue verification failed
Milestone

Comments

@alexr00
Copy link
Member

alexr00 commented Aug 2, 2019

Occurs on Windows.

  1) Running Code
       Debug
         focus stack frames and variables:
     Error: Timeout: get element '.tabs-container div.tab[aria-label="index.js, tab"]' after 20 seconds.
      at D:\repos\Microsoft\vscode\test\smoke\out\vscode\code.js:163:23
      at Generator.next (<anonymous>)
      at fulfilled (out\vscode\code.js:8:58)
@isidorn
Copy link
Contributor

isidorn commented Aug 2, 2019

The issue is that when there is not enough space in the call stack view the index.js title gets shrinked and the smoke test can not match it.
Assigning to August to fix

@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues smoke-test-failure labels Aug 2, 2019
@isidorn isidorn added this to the August 2019 milestone Aug 2, 2019
@isidorn
Copy link
Contributor

isidorn commented Aug 20, 2019

@alexr00 can you still reproduce this on Windows? If yes can you please ping me once you get this on your machine I need to investigate. Since I can not reproduce on my mac with a very small vscode.

@isidorn isidorn removed this from the August 2019 milestone Aug 20, 2019
@isidorn isidorn added the info-needed Issue requires more information from poster label Aug 20, 2019
@alexr00
Copy link
Member Author

alexr00 commented Aug 23, 2019

I cannot reproduce on my laptop. It happened before on my desktop, so I will try again there.

@isidorn
Copy link
Contributor

isidorn commented Aug 23, 2019

@alexr00 ok, thanks.

@alexr00
Copy link
Member Author

alexr00 commented Aug 29, 2019

I cannot reproduce now.

@alexr00 alexr00 closed this as completed Aug 29, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 13, 2019
@alexr00 alexr00 reopened this Nov 1, 2019
@alexr00
Copy link
Member Author

alexr00 commented Nov 1, 2019

It is back:

  3) Running Code
       Debug
         focus stack frames and variables:
     Error: Timeout: get element '.tabs-container div.tab[aria-label="index.js, tab"]' after 20 seconds.
      at D:\repos\Microsoft\vscode\test\automation\out\code.js:175:23
      at Generator.next (<anonymous>)
      at fulfilled (D:\repos\Microsoft\vscode\test\automation\out\code.js:8:58)

@weinand weinand added this to the November 2019 milestone Nov 1, 2019
@weinand weinand added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Nov 1, 2019
@weinand weinand removed their assignment Nov 1, 2019
@isidorn
Copy link
Contributor

isidorn commented Nov 21, 2019

In some other issue you said you can run it happily now so I will optimistically close it 🤞

@isidorn isidorn closed this as completed Nov 21, 2019
@dbaeumer
Copy link
Member

dbaeumer commented Dec 5, 2019

Reopening since the debug smoke tests fail very badly for me:

    Debug
** Timeout!
Did not pass accept function
      1) configure launch json
      √ breakpoints
** Timeout!
Did not pass accept function
      2) start debugging
** Timeout!
Did not pass accept function
      3) focus stack frames and variables
** Timeout!
Did not pass accept function
      4) stepOver, stepIn, stepOut
** Timeout!
Error: Element not found: .debug-toolbar .action-label[title*="Continue"]
    at WindowDriver._getElementXY (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/platform/driver/browser/baseDriver.js:123:39)
    at WindowDriver._click (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/platform/driver/electron-browser/driver.js:30:41)
    at WindowDriver.click (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/platform/driver/electron-browser/driver.js:24:25)
    at WindowDriverChannel.call (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/platform/driver/node/driver.js:125:50)
    at ChannelServer.onPromise (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/base/parts/ipc/common/ipc.js:202:35)
    at ChannelServer.onRawMessage (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/base/parts/ipc/common/ipc.js:184:33)
    at file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/base/parts/ipc/common/ipc.js:144:73
    at Emitter.fire (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/base/common/event.js:458:38)
    at EventEmitter.fn (file:///C:/Users/dirkb/Projects/mseng/VSCode/vscode/out/vs/base/common/event.js:259:44)
    at EventEmitter.emit (events.js:200:13)
    at Object.onMessage (C:\Users\dirkb\Projects\mseng\VSCode\vscode\.build\electron\resources\electron.asar\renderer\init.js:42:16)
      5) continue
** Timeout!
Did not pass accept function
      6) debug console

@dbaeumer dbaeumer reopened this Dec 5, 2019
@dbaeumer dbaeumer added the verification-found Issue verification failed label Dec 5, 2019
@isidorn
Copy link
Contributor

isidorn commented Dec 5, 2019

Yes, the issue is that we introduced the new debug start view and I did not update the smoke test to reflect that. Will look into it

@isidorn isidorn closed this as completed in 0fae04b Dec 5, 2019
@isidorn
Copy link
Contributor

isidorn commented Dec 5, 2019

I have updated the smoke test that it now takes into account the new debug start view.
Please note that this does not mean that all the debug smoke test issues are fixed. Just that it should work now most of the time.

@dbaeumer
Copy link
Member

dbaeumer commented Dec 6, 2019

I am reopening this since I still see this failing on creating the launch config json file.

@dbaeumer dbaeumer reopened this Dec 6, 2019
@dbaeumer
Copy link
Member

dbaeumer commented Dec 6, 2019

 1) Running Code
       Debug
         configure launch json:
     Error: ENOENT: no such file or directory, open 'C:\Temp\t18440zFRawuqCHKhy\vscode-smoketest-express\.vscode\launch.json'
      at Object.openSync (fs.js:439:3)
      at Object.readFileSync (fs.js:344:35)
      at Context.<anonymous> (out\areas\debug\debug.test.js:20:32)
      at process._tickCallback (internal/process/next_tick.js:68:7)

@isidorn
Copy link
Contributor

isidorn commented Dec 6, 2019

Works on other platofrms, will not fix it today -> moving out of milestone

@isidorn isidorn modified the milestones: November 2019, Backlog Dec 6, 2019
@dbaeumer
Copy link
Member

dbaeumer commented Dec 6, 2019

While running the final smoke test I see this:

 1) Running Code
       Debug
         configure launch json:
     Error: ENOENT: no such file or directory, open 'C:\Temp\t20372YKEHs14w2Qly\vscode-smoketest-express\.vscode\launch.json'
      at Object.openSync (fs.js:439:3)
      at Object.readFileSync (fs.js:344:35)
      at Context.<anonymous> (out\areas\debug\debug.test.js:20:32)
      at process._tickCallback (internal/process/next_tick.js:68:7)

  2) Running Code
       Debug
         breakpoints:
     Error: Timeout: get element '.tabs-container div.tab.active[aria-selected="true"][aria-label="index.js, tab"]' after 20 seconds.
      at C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:175:23
      at Generator.next (<anonymous>)
      at fulfilled (C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:8:58)

  3) Running Code
       Debug
         start debugging:
     Error: Timeout: get elements 'div[id="workbench.view.debug"] .monaco-list-row .stack-frame' after 20 seconds.
      at C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:175:23
      at Generator.next (<anonymous>)
      at fulfilled (C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:8:58)

  4) Running Code
       Debug
         focus stack frames and variables:
     Error: Timeout: get elements 'div[id="workbench.view.debug"] .debug-variables .monaco-list-row .expression' after 20 seconds.
      at C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:175:23
      at Generator.next (<anonymous>)
      at fulfilled (C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:8:58)

  5) Running Code
       Debug
         stepOver, stepIn, stepOut:
     Error: Timeout: get elements 'div[id="workbench.view.debug"] .monaco-list-row .stack-frame' after 20 seconds.
      at C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:175:23
      at Generator.next (<anonymous>)
      at fulfilled (C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:8:58)

  6) Running Code
       Debug
         continue:
     Error: Timeout: click '.debug-toolbar .action-label[title*="Continue"]' after 20 seconds.
      at C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:175:23
      at Generator.next (<anonymous>)
      at fulfilled (C:\Users\dirkb\Projects\mseng\VSCode\vscode\test\automation\out\code.js:8:58)


@isidorn
Copy link
Contributor

isidorn commented Feb 4, 2020

I have moved the debug smoke test to integration tests.
Thus this is no longer valid.
The integration tests do not behave flaky so far.

@isidorn isidorn closed this as completed Feb 4, 2020
lemanschik pushed a commit to code-oss-dev/code that referenced this issue Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues smoke-test-failure verification-found Issue verification failed
Projects
None yet
Development

No branches or pull requests

4 participants