Are there certain OS packages that would need to b...
# compose-desktop
e
Are there certain OS packages that would need to be installed for Desktop Compose UI tests to run? Everything works fine on my local machine, but on CI (GitHub Actions) the tests are flaky in a PR that doesn't change anything test related (sometimes one test fails, sometimes they all fail) - https://github.com/eygraber/vice/pull/131 I tried running without build and configuration caches, and with
--rerun-tasks
but it still didn't work.
c
I’ve had success with this
Copy code
- name: Setup Xvfb
        timeout-minutes: 3
        run: |
          sudo apt-get update
          sudo apt-get install -y xvfb x11-xserver-utils
      - name: Test
        timeout-minutes: 10
        run: |
          xvfb-run --auto-servernum ./gradlew check
e
Thanks, I'll try that out. Is there any overhead to running with
xvfb-run
?
c
I haven’t noticed any
👍 1
e
e
xvfb-run
worked...until the next PR I created where I started getting the same flakiness. So I added the magic
--no-build-cache --no-configuration-cache --rerun-tasks
and then it worked...until I removed that and now it is flaky again 🙈
I'm going to x-post to #gradle because there's something weird going on with the caching here.
s
@ephemient why do we need
object { override fun toString() = xvfbServer.get().display }
..to make things lazy ?
e
yes
👍 1
thank you color 1
e
Hey @eygraber, sorry to tag directly, did you manage to make any progress here? We've been using cmp in prod for a while on ios/android and use desktop to run ui tests as they are really fast locally, but get tons of flakiness on CI which is slowing us down
e
I don't remember, but I'm pretty sure I just stopped doing UI testing in compose desktop because of this.
blob ty sign 1