SRGSSR / pillarbox-apple

A next-generation reactive media playback ecosystem for Apple platforms.
https://testflight.apple.com/join/TS6ngLqf
MIT License
45 stars 6 forks source link

Improve CI stability #266

Closed defagos closed 1 year ago

defagos commented 1 year ago

As a developer I need a reliable CI to have a streamlined workflow. Currently some specific tests might fail.

Acceptance criteria

Tasks

defagos commented 1 year ago

Flaky tests:

Could we maybe also mitigate this issue by reducing the number of parallel simulators on CI agents?

waliid commented 1 year ago

By updating the URLSession configuration from .default to .ephemeral, we considerably improve the stability of our tests but the result is not perfect! Moreover, I think it would be wiser to avoid network calls!

defagos commented 1 year ago

I agree, there is indeed a task to use only local test data, see #110.

defagos commented 1 year ago

Similar issues are reported for slow CI agents. We should try to increase the default timeout and see whether tests pass more reliably on our agents.

defagos commented 1 year ago

Builds are still quite unreliable, I reopen this issue.

defagos commented 1 year ago

The measures applied in the associated PR were not sufficient. The PR #307 was difficult to check so remaining tolerances were adjusted to finally have reliable behavior. Tests should now hopefully be stable.