containers / podman-desktop-e2e

Podman desktop e2e tests
Apache License 2.0
3 stars 7 forks source link

Podman Desktop Goax E2E is sometimes unstable and cannot start up podman-desktop #215

Closed odockal closed 1 month ago

odockal commented 1 month ago
[BeforeSuite] 
D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:84
  [FAILED] in [BeforeSuite] - D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:96 @ 08/07/24 10:02:30.257
[BeforeSuite] [FAILED] [43.722 seconds]
[BeforeSuite] 
D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:84

  [FAILED] Unexpected error:
      <*errors.errorString | 0xc000292230>: 
      error disabling telemetry :can not find any element with id Enable telemetry
      {
          s: "error disabling telemetry :can not find any element with id Enable telemetry",
      }
  occurred
  In [BeforeSuite] at: D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:96 @ 08/07/24 10:02:30.257
------------------------------
[AfterSuite] 
D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:103
[AfterSuite] PASSED [0.000 seconds]
------------------------------
[ReportAfterSuite] Podman Desktop e2e JUnit report
D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:57
[ReportAfterSuite] PASSED [0.001 seconds]
------------------------------

Summarizing 1 Failure:
  [FAIL] [BeforeSuite] 
  D:/a/podman-desktop-e2e/podman-desktop-e2e/test/e2e/e2e_podman/suite_test.go:96

Ran 0 of 2 Specs in 43.722 seconds
FAIL! -- A BeforeSuite node failed so all tests were skipped.
--- FAIL: TestE2E (43.72s)
FAIL
Remove-Item: C:\Users\rhqp\pd-e2e\run.ps1:61
Line |
  61 |  rm junit_report.xml
     |  ~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\rhqp\junit_report.xml' because it does not exist.
Get-Process: C:\Users\rhqp\pd-e2e\run.ps1:66
Line |
  66 |  $pdpid=Get-Process "Podman Desktop" | Select Id -ExpandProperty Id |  .
     |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find a process with the name "Podman Desktop". Verify the process name and call the cmdlet again.
Stop-Process: C:\Users\rhqp\pd-e2e\run.ps1:67
Line |
  67 |  Stop-Process -ID $pdpid -Force
     |                   ~~~~~~
     | Cannot bind argument to parameter 'Id' because it is null.

Referenced run: https://github.com/containers/podman-desktop-e2e/actions/runs/10281807672/job/28452124492

odockal commented 1 month ago

Investigation led me through this lines:

  1. BeforeSuite that open the app: https://github.com/containers/podman-desktop-e2e/blob/main/test/e2e/e2e_podman/suite_test.go#L92
  2. podman-desktop.go Open Method: https://github.com/containers/podman-desktop-e2e/blob/main/test/extended/podman-desktop/podman-desktop.go#L36 -> which has delay.Delay(delay.LONG) param used for waiting. 3.Given the import, delay contants are defined here: https://github.com/adrianriobo/goax/blob/main/pkg/util/delay/delay.go
  3. Update delay from LONG (10s) to XLONG (25s)