Igalia / acacia

Library for inspecting accessibility APIs
https://igalia.github.io/acacia
GNU Lesser General Public License v2.1
8 stars 1 forks source link

Add github workflow to launch Chromium and dump its tree on Linux #132

Closed elima closed 7 months ago

elima commented 8 months ago

This will supersede existing workflow because it already include building the NodeJS module on Linux.

The workflow will:

There is a timeout of 5 minutes for the whole workflow. We should remember to increase it if we make it more complex in the future, or if it starts to fail due to timeout.

elima commented 7 months ago

Ok, so after quite a few iterations on this, I got something that work (sometimes). There is some kind of timing issue that is being challenging to pinpoint. Depending on the ordering of the action that runs chromium compared to when AT-SPI services are launched, and when the dump tree tests are run; we get a pass or fail.

Some important findings:

QT_ACCESSIBILITY=1            
XDG_RUNTIME_DIR=/run/user/1001

It took a fair amount of time to find this (undocumented) magic.

WIP: Apart from the flakiness of the workflow, there is an issue with python bindings where SWIG complains that it can't find std_unique_ptr.i. This only happens in the runner. I'm investigating it.

elima commented 7 months ago

Ok, some more progress:

I'm opening this up for review as-is.