-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add smoke-test workflow #103
base: master
Are you sure you want to change the base?
Conversation
In conclusion:
|
@uuf6429 you can ignore Zombie driver because of minkphp/MinkZombieDriver#206 . This driver should be archived. |
Interesting workflow. You've combined a minimal version of the workflow for each of the drivers. Similar stuff was done in https://github.com/instaclick/php-webdriver/blob/master/.github/workflows/ci.yml as well, but for MinkSelenium2Driver only. Maybe that will help you. |
.github/workflows/smoke.yml
Outdated
- name: Chrome | ||
repo: https://gitlab.com/behat-chrome/chrome-mink-driver.git | ||
php: 7.4 | ||
setup: | | ||
mkdir ./logs | ||
./vendor/bin/mink-test-server &> ./logs/mink-test-server.log & | ||
docker run --net host --name chrome --volume /dev/shm:/dev/shm --shm-size 2g --volume ./vendor/mink/driver-testsuite/web-fixtures:/fixtures zenika/alpine-chrome:latest \ | ||
"--remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --disable-gpu --headless=new --disable-extensions --no-sandbox --use-gl=swiftshader --disable-software-rasterizer --disable-dev-shm-usage" &> ./logs/chrome.log & | ||
sed "s#http://localhost/#http://localhost:8002/#" phpunit.xml.dist > phpunit.xml | ||
while ! nc -z localhost 9222 </dev/null; do echo Waiting for chrome to start...; sleep 1; done | ||
while ! nc -z localhost 8002 </dev/null; do echo Waiting for PHP server to start...; sleep 1; done | ||
test: | | ||
export WEB_FIXTURES_BROWSER=chrome | ||
export DRIVER_MACHINE_BASE_PATH=/fixtures/ | ||
./vendor/bin/phpunit --colors=always --testdox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we even test the 3rd party drivers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's listed in our documentation.. (just as zombie and sahi), so I added it. This is in line with the "testing active drivers" comment from earlier.
That's why it fails: minkphp/MinkSelenium2Driver#381 . I have no idea how to fix it using https://github.com/instaclick/php-webdriver . That is the only blocker before that driver's release. |
Failures for the MinkBrowserKitDriver are fixed in minkphp/MinkBrowserKitDriver#183 . |
I suggest removing the job for the third-party driver. I don't think it makes sense to make our CI job fail based on their behavior which is out of our control, especially given that they fail many tests currently. |
@stof @aik099 I'm not strongly in favour of keeping it, but hear out my arguments:
Let me know if any of that convinces you and if still not convinced, I'll gladly remove this. |
We can talk to 3rd party driver manufacturers to see if they're willing for their driver to be compatible by our test suite changes. Previously, GitHub Actions wasn't allowing ignoring build failures, which affected the CI badge in general on the README.md file. If you know how to allow a specific job within the build to fail without making the whole build fail but still showing that that job has failed (like in Travis CI times), then please do. So let's try. Trying doesn't cost us anything. |
@aik099 apparently it's still not possible without some workarounds: actions/runner#2347 😞 Then the remaining option is (as said) a manual job not triggered by CI (or workaround in the linked issue). |
@uuf6429 , then we'll do 2 jobs:
|
It's strange that MinkSelenium2Driver job fails with |
I think I've seen that failure in the past...could it be transient/random? Unfortunately I can't retry that job without pushing something to run the whole workflow. |
@uuf6429 , I've granted you the same permissions for this repository as on the Enjoy. |
Awesome, I can stop that job that has been running for 5 hours 😅 |
No description provided.