Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/tests: CI integration tests on Edge and windows #1621

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Dec 31, 2024

Listing things I've done:

  • I've added a script for integration tests on the Edge browser, which I also run on Windows in the CI

  • I explicitly call bash and node in package.json's scripts to be compatible with windows (cmd?). bash is technically already a dependency anyway due to some of our scripts

  • I updated Github's actions/checkout and actions/setup-node in the CI's checks.yml configuration file, as new examples from GitHub seems to indicate those should be the versions used today (differences seems to be things like versions of dependencies like node.js)

  • I updated scripts's path.join usage as I thought it was provoking an issue on windows but turned out it was not. I still left it the way I updated it, we could put it like it was before, I don't really care

  • I've raised MANY tests timeout and reduced the playback rates. Turns out that the machine/VMs that GitHub actions run is not performant at all, often reaching timeouts and often not being able to play as fast as we ask it

    Due to that last point, tests take much more time though.

Things I didn't succeed to do:

  • I didn't succeed running tests on Safari, only because I didn't find a way anywhere to authorize autoplay without user interaction. Other browsers provide flags for this, but it seems that Safari doesn't.

    Muting the audio volume on the corresponding video element didn't seem to have an effect.

  • I tried for a very long time to run tests on MacOS, but the performance of GitHub actions are so low that our corresponding integration tests were beginning to loose in quality. I chose to remove the macos part instead.

@peaBerberian peaBerberian force-pushed the misc/try-other-browsers branch 5 times, most recently from 8c7abe0 to 3e4d33d Compare December 31, 2024 14:52
@peaBerberian peaBerberian changed the title Test: Attempt integration tests on more browsers Test: Attempt integration tests on more browsers and OSes Dec 31, 2024
@peaBerberian peaBerberian added work-in-progress This Pull Request or issue is not finished yet tests Relative to the RxPlayer's tests labels Dec 31, 2024
@peaBerberian peaBerberian changed the title Test: Attempt integration tests on more browsers and OSes [WIP] tests: Attempt integration tests on more browsers and OSes Dec 31, 2024
@peaBerberian peaBerberian force-pushed the misc/try-other-browsers branch 10 times, most recently from dfa0c7c to 393cfaa Compare January 9, 2025 15:22
Until now, CI/npm scripts only runs our integration tests on Chrome and
Firefox.

This is a proposal to also run them on Edge and Safari.

There have been very few browser-dependent issues found with integration
tests for now but it may still be useful and wasn't too hard to do.
Testing on both edge and Safari also allows to run a lot of MS-specific
and Webkit-specific workarounds which may allow to better detect
browser-specific regressions.

I tested it and it seemed to work.

Issues with this is that we have more chance to be annoyed by flaky tests
(which would be better fixed by updating the tests anyway) and that CI
steps would take longer. We may want to split CI scripts per-browser for
that last part? To see.
@peaBerberian peaBerberian force-pushed the misc/try-other-browsers branch from 393cfaa to ffae398 Compare January 9, 2025 15:51
@peaBerberian peaBerberian removed the work-in-progress This Pull Request or issue is not finished yet label Jan 10, 2025
@peaBerberian peaBerberian changed the title [WIP] tests: Attempt integration tests on more browsers and OSes CI/tests: CI integration tests on Edge and windows Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Relative to the RxPlayer's tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant