workbenchdev / demos

Demos of GNOME technologies - GTK, libadwaita, CSS, portals, ...
Creative Commons Zero v1.0 Universal
11 stars 15 forks source link

Only run workbench-cli ci on changed demos #142

Closed sonnyp closed 7 months ago

sonnyp commented 7 months ago

Running workbench-cli ci on all demos takes a long time (~7'). That is caused by creating multiple language servers for each demo. Rust and Vala are particularly slow to bootstrap.

Unfortunately, it's not possible to use one Vala language server for all demos because it doesn't support workspace folders.

This PR changes make test so that workbench-cli ci is called only with demos with changes compared to main instead of with every single demo.

This should also fix the intermittent CI failure that happens after a few minutes:

 **
GLib-GIO:ERROR:../gio/gdatainputstream.c:972:g_data_input_stream_read_complete: assertion failed (bytes == read_length): (-1 == 1)
Bail out! GLib-GIO:ERROR:../gio/gdatainputstream.c:972:g_data_input_stream_read_complete: assertion failed (bytes == read_length): (-1 == 1)
/app/bin/workbench-cli: line 22:     4 Aborted                 (core dumped) re.sonny.Workbench.cli "$@"
make: *** [Makefile:26: test] Error 134
Error: Process completed with exit code 2.