Skip to content

Flaky fail on open editor restore timeout #157576

Not planned
@andreamah

Description

@andreamah
  1) VSCode Smoke Tests (Electron)
       Data Loss (insiders -> insiders)
         verifies opened editors are restored:
     Error: Timeout: click '.tabs-container div.tab[data-resource-name$="Untitled-1"]' after 20 seconds.
      at Code.poll (/Users/runner/work/1/s/test/automation/src/code.ts:256:11)
      at Code.waitAndClick (/Users/runner/work/1/s/test/automation/src/code.ts:197:3)
      at Editors.selectTab (/Users/runner/work/1/s/test/automation/src/editors.ts:30:4)
      at Context.<anonymous> (src/areas/workbench/data-loss.test.ts:37:4)

In https://dev.azure.com/monacotools/Monaco/_build/results?buildId=181094&view=logs&j=260a512b-e5ca-5cf1-3f8e-20c0fa41efc9&t=7d990189-e5d3-5b47-7dbd-ef3303faf90a

Activity

bpasero

bpasero commented on Aug 9, 2022

@bpasero
Member

Caused by what seems to be a unhealthy CI machine where the first instance is not shutting down orderly and thus fails to persist its UI state (which is needed for the second run):

[2022-08-08T19:12:30.411Z] Starting operation 'driver.exitApplication()...
[2022-08-08T19:12:30.570Z] Finished operation 'driver.exitApplication()' successfully after 159ms
[2022-08-08T19:12:30.644Z] [electron] stdout: �[90m[main 2022-08-08T19:12:30.643Z]�[0m UtilityProcess<1>: received exit event with code [object Object].

[2022-08-08T19:12:30.686Z] [electron] stdout: �[90m[main 2022-08-08T19:12:30.644Z]�[0m Extension host with pid 10013 exited with code: [object Object], signal: .

[2022-08-08T19:12:30.826Z] Playwright (Electron): page close
[2022-08-08T19:12:40.827Z] Smoke test exit call did not terminate process after 10s, forcefully exiting the application...
[2022-08-08T19:12:41.172Z] Failed to kill Electron process tree: undefined
[2022-08-08T19:12:41.173Z] [electron] stderr: [9721:0808/191241.157056:ERROR:command_buffer_proxy_impl.cc(329)] GPU state invalid after WaitForGetOffsetInRange.

[2022-08-08T19:12:41.174Z] [electron] stderr: [9721:0808/191241.174019:ERROR:gpu_process_host.cc(978)] GPU process exited unexpectedly: exit_code=15

[2022-08-08T19:12:41.186Z] [electron] stderr: [9721:0808/191241.181480:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.

[2022-08-08T19:12:41.191Z] [electron] stderr: Waiting for the debugger to disconnect...

[2022-08-08T19:12:41.242Z] [electron] Process terminated (pid: 9721, code: 0, signal: null)
[2022-08-08T19:12:41.290Z] [electron] stderr: [10656:0808/191241.280231:ERROR:mach_port_rendezvous.cc(310)] bootstrap_look_up com.microsoft.VSCodeInsiders.MachPortRendezvousServer.1: Permission denied (1100)
[10656:0808/191241.281132:ERROR:child_thread_impl.cc(226)] Mach rendezvous failed, terminating process (parent died?)

In my eyes, this is not really actionable. Daniel thoughts?

bpasero

bpasero commented on Aug 12, 2022

@bpasero
Member

/duplicate #157979

added
*duplicateIssue identified as a duplicate of another issue(s)
on Aug 12, 2022
vscodenpa

vscodenpa commented on Aug 12, 2022

@vscodenpa

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

locked and limited conversation to collaborators on Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Flaky fail on open editor restore timeout · Issue #157576 · microsoft/vscode