Page MenuHomePhabricator

Add CI tests for labs/tools/zppixbot
Closed, ResolvedPublic2 Estimated Story Points

Description

It would be a lot safer if CI checked & merged labs/tools/zppixbot as it prevents accidental submits and helps check syntax

These should run html+css syntax checks on our code and if CR+2 gate-and-submit the change.

Event Timeline

Once this is added, please revoke submit for non-CI.

Change 602292 had a related patch set uploaded (by Hashar; owner: Hashar):
[labs/tools/ZppixBot@master] Add stylelint to lint the css file

https://gerrit.wikimedia.org/r/602292

Change 602296 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] Add CI for labs/tools/ZppixBot

https://gerrit.wikimedia.org/r/602296

Change 602296 merged by jenkins-bot:
[integration/config@master] Add CI for labs/tools/ZppixBot

https://gerrit.wikimedia.org/r/602296

Change 602292 merged by jenkins-bot:
[labs/tools/ZppixBot@master] Add stylelint to lint the css file

https://gerrit.wikimedia.org/r/602292

Change 602300 had a related patch set uploaded (by Hashar; owner: Hashar):
[labs/tools/ZppixBot@master] Add htmlllint to lint the HTML files

https://gerrit.wikimedia.org/r/602300

Change 602300 merged by RhinosF1:
[labs/tools/ZppixBot@master] Add htmlllint to lint the HTML files

https://gerrit.wikimedia.org/r/602300

RhinosF1 set the point value for this task to 2.
RhinosF1 moved this task from To Triage / Backlog to 2020 June - September on the ZppixBot board.

html+css checks deployed and unsurprisingly failing - merged so we can fix in the re-design.

Change 602316 had a related patch set uploaded (by RhinosF1; owner: RhinosF1):
[labs/tools/ZppixBot@refs/meta/config] Switch to CI-Only submit access

https://gerrit.wikimedia.org/r/602316

I've done https://gerrit.wikimedia.org/r/#/c/labs/tools/ZppixBot/+/602303/1..2/.stylelintrc.json to stop it running on the upstream FA but my json is apparently invalid.

Once that's done and we've confirmed the checks are running fine, we can merge https://gerrit.wikimedia.org/r/602316 and resolve this.

I've done https://gerrit.wikimedia.org/r/#/c/labs/tools/ZppixBot/+/602303/ to stop it running on the upstream FA but my json is apparently invalid.

Once that's done and we've confirmed the checks are running fine, we can merge https://gerrit.wikimedia.org/r/602316 and resolve this.

The tests are now running correctly, I will shortly turn off non-CI merges.

Change 602316 merged by Hashar:
[labs/tools/ZppixBot@refs/meta/config] Switch to CI-Only push access

https://gerrit.wikimedia.org/r/602316

RhinosF1 removed a project: Patch-For-Review.
RhinosF1 moved this task from Deployment to Done on the User-RhinosF1 board.

Well done @RhinosF1 ;)

You did the hard work, and @MacFan4000 managed to get them passing on the new site!

Perfect! So from now on, you just have to Code-Review +2 and CI will take care of running the defined tests and ultimately get the change merged if everything is fine. Happy hacking!

Perfect! So from now on, you just have to Code-Review +2 and CI will take care of running the defined tests and ultimately get the change merged if everything is fine. Happy hacking!

Same to you, Stay Safe!