Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdlrobson | T162936 Improve developer happiness in reading web maintained extensions | |||
Declined | None | T162256 [EPIC] Port Selenium tests from Ruby to Node.js on Reading Web extensions | |||
Resolved | zeljkofilipin | T164024 Rewrite Related pages browser tests in Node.js | |||
Resolved | zeljkofilipin | T171847 Create Jenkins job that runs RelatedArticles Selenium tests daily |
Event Timeline
Modifying selenium-RelatedArticles job will not work since that job clones only RelatedArticles and wdio tests need to run from core.
Testing job: selenium-RelatedArticles-T171847. Reusing parts from mediawiki-core-qunit-selenium-jessie.
Done so far:
zuul-cloner \ ... mediawiki/core mediawiki/extensions/RelatedArticles
cd src npm install npm run selenium
Fails with (selenium-RelatedArticles-T171847/9):
ERROR: unknown error: Chrome failed to start: exited abnormally
Add a parameter to the job or to the npm selenium command: DISPLAY=':94'
Then dont forget to set process.env.MW_SERVER + process.env.MW_SCRIPT_PATH
:}
Created another testing job: https://integration.wikimedia.org/ci/job/mediawiki-core-qunit-selenium-jessie-T171847/
Change 372359 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[mediawiki/core@master] WIP Create Jenkins job that runs Selenium tests daily
@Jdlrobson the job is almost green. Fails because I have messed up bash environment variables, so credentials are wrong. Working on it.
Core job is green ๐ ๐ ๐ โ
https://integration.wikimedia.org/ci/job/mediawiki-core-qunit-selenium-jessie-T171847/
Change 373052 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[mediawiki/extensions/RelatedArticles@master] For Selenium tests, click the link to switch to mobile view
RelatedArticles test job mediawiki-core-qunit-selenium-jessie-RelatedArticles-T171847 is also green โ๏ธ๐ฒ๐ณ๐ฅ
Change 373052 merged by jenkins-bot:
[mediawiki/extensions/RelatedArticles@master] For Selenium tests, click the link to switch to mobile view
mediawiki-core-qunit-selenium-jessie-RelatedArticles-T171847 job is a simplified version of mediawiki-core-qunit-selenium-jessie. I have created it via Jenkins web interface, because that enables easier development.
It could be further simplified by running chrome headless instead of using xvfb, but that is blocked on T167507: WebdriverIO should run Chrome headlessly and T170032: Upgrade to Chromium 59 or newer on Debian Jessie in CI. When @hashar returns from vacation, I am sure he will find more way the job can be simplified.
The next step is to create the job using JJB.
Change 373103 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[integration/config@master] WIP Create Jenkins job that runs RelatedArticles Selenium tests daily
selenium-RelatedArticles-jessie is green ๐ฒ. Minor cleanup and refactoring is needed, but it is working.
Change 373103 merged by Zfilipin:
[integration/config@master] WIP Create Jenkins job that runs RelatedArticles Selenium tests daily
Oops, clicked push button by mistake in gihub destop application, so this got merged. Reverting.
Change 373278 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[integration/config@master] WIP Create Jenkins job that runs RelatedArticles Selenium tests daily
I think 373278 is ready to be merged. selenium-RelatedArticles-jessie job is deployed and green.
I've added selenium-RelatedArticles-jessie to the Reading-Web dashboard in preparation:
https://integration.wikimedia.org/ci/view/Reading-Web/job/selenium-RelatedArticles-jessie/13/
Looks like we are almost there! :)
@Jdlrobson the job is deployed and running daily, so we are actually there. ๐ The JJB commit might need some refactoring (if @hashar complains), but it should continue to work.
Change 373278 merged by jenkins-bot:
[integration/config@master] Create Jenkins job that runs RelatedArticles Selenium tests daily
Change 372359 abandoned by Zfilipin:
WIP Create Jenkins job that runs Selenium tests daily
Reason:
An experiment.