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: run tests in Docker #5440

Merged
merged 3 commits into from
Aug 8, 2023
Merged

Conversation

tykus160
Copy link
Member

This PR adds Chromium with webdriver to the Docker image, so it's now possible to run at least some subset of tests using Docker env.
Additionally, Alpine version has been bumped up, so recent version of Chromium can be used.

@github-actions
Copy link
Contributor

Incremental code coverage: No instrumented code was changed.

.github/workflows/build-and-test.yaml Outdated Show resolved Hide resolved
build/docker/Dockerfile Show resolved Hide resolved
build/docker/Dockerfile Show resolved Hide resolved
@@ -2,14 +2,17 @@
# docker build -t shaka-player-build /path/to/shaka-player/build/docker
# Run with:
# docker run -v /path/to/shaka-player:/usr/src --user $(id -u):$(id -g) shaka-player-build
# Run tests with:
# docker run -v /path/to/shaka-player:/usr/src --user $(id -u):$(id -g) shaka-player-build python3 build/test.py --quick --browsers ChromeHeadless
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove --quick, and switch --browsers ChromeHeadless to --browsers Chrome --use-xvfb. Headless testing is problematic for a video player, but using xvfb allows playback and screenshot tests to proceed.

@joeyparrish joeyparrish merged commit 4dce345 into shaka-project:main Aug 8, 2023
joeyparrish pushed a commit that referenced this pull request Aug 19, 2023
This PR adds Chromium with webdriver to the Docker image, so it's now possible to run at least some subset of tests using Docker env.
Additionally, Alpine version has been bumped up, so recent version of Chromium can be used.
joeyparrish pushed a commit that referenced this pull request Aug 20, 2023
This PR adds Chromium with webdriver to the Docker image, so it's now possible to run at least some subset of tests using Docker env.
Additionally, Alpine version has been bumped up, so recent version of Chromium can be used.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Oct 7, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Oct 7, 2023
@tykus160 tykus160 deleted the wt-docker branch October 31, 2023 12:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants