# Status
- [[ https://integration.wikimedia.org/ci/job/selenium-Wikibase-chrome/BROWSER=chrome,MEDIAWIKI_ENVIRONMENT=beta,PLATFORM=Linux,label=DebianJessie%20&&%20contintLabsSlave/buildTimeTrend | selenium-Wikibase-chrome/MEDIAWIKI_ENVIRONMENT=beta ]] run takes 35-65 minutes. 20-57% of tests are failing (42-121 from 212). @WMDE-leszek will investigate failures.
- [[ https://integration.wikimedia.org/ci/job/selenium-Wikibase-chrome/BROWSER=chrome,MEDIAWIKI_ENVIRONMENT=test,PLATFORM=Linux,label=DebianJessie%20&&%20contintLabsSlave/ | selenium-Wikibase-chrome/MEDIAWIKI_ENVIRONMENT=test ]] is timing out even after timeout was increased to 5 hours. Timeout is temporarily increased to 10 hours and [[ https://integration.wikimedia.org/ci/job/selenium-Wikibase-chrome/BROWSER=chrome,MEDIAWIKI_ENVIRONMENT=test,PLATFORM=Linux,label=DebianJessie%20&&%20contintLabsSlave/232/console | selenium-Wikibase-chrome/MEDIAWIKI_ENVIRONMENT=test/232 is running ]]. ๐
# Details
Now Wikibase daily browser tests run using SauceLabs. And they randomly fail for reasons not related to the code but related to SauceLabs API. See {T152963} for details.
As soon as randomly failing tests are worse than no tests at all, we (Wikidata team) would like to have another daily job running those tests but on Jenkins (without using SauceLabs). Hopefully they will be stable.
PS: If they are stable we will probably like to kill SauceLabs job, but not right now.
**Important changes to current job:**
- Removed SAUCE_ONDEMAND_ACCESS_KEY.
- Instead of running on BrowserTests slaves, the job now runs on DebianJessie && contintLabsSlave.
The change in the shell script to take screenshots and record videos:
```
export SKIP_TMPFS=1
export HEADLESS=true
export HEADLESS_DISPLAY=$((70 + EXECUTOR_NUMBER % 20))
export HEADLESS_DESTROY_AT_EXIT=true
export HEADLESS_CAPTURE_PATH="$WORKSPACE/log"
HEADLESS=true SCREENSHOT_FAILURES=true SCREENSHOT_FAILURES_PATH="$WORKSPACE/log" bundle exec rake selenium
```