Page MenuHomePhabricator

Re-implement post-merge publication of code coverage for Wikifunctions's repos on GitLab
Closed, ResolvedPublic

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
build: Publish test coverage report when merging into the default branchrepos/abstract-wiki/wikifunctions/wikilambda-cli!11jforresterT337425-coveragemain
build: Publish test coverage report when merging into the default branchrepos/abstract-wiki/wikifunctions/wikilambda-cli!9jforrestergitlab-coverage-publicationmain
Update function-schemata sub-module to HEAD (9abc7c2)repos/abstract-wiki/wikifunctions/wikilambda-cli!8jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (9abc7c2)repos/abstract-wiki/wikifunctions/function-evaluator!17jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (9abc7c2)repos/abstract-wiki/wikifunctions/function-orchestrator!22jforrestersync-function-schematamain
build: Publish test coverage report when merging into the default branchrepos/abstract-wiki/wikifunctions/function-evaluator!16jforrestergitlab-coverage-publicationmain
build: Publish test coverage report when merging into the default branchrepos/abstract-wiki/wikifunctions/function-orchestrator!18jforrestergitlab-coverage-publicationmain
Publish test coverage report when merging into the default branchrepos/abstract-wiki/wikifunctions/function-schemata!9jforresterreview/dancy/publish-coverage-reportmain
Customize query in GitLab

Event Timeline

Note that this is blocked by work currently being done by the RelEng team to make this possible.

Note that this is blocked by work currently being done by the RelEng team to make this possible.

https://gitlab.wikimedia.org/repos/releng/docpub is ready to be used now. Setup instructions are in the README.md.

Note that this is blocked by work currently being done by the RelEng team to make this possible.

https://gitlab.wikimedia.org/repos/releng/docpub is ready to be used now. Setup instructions are in the README.md.

I was waiting for someone else to go first so I could steal their code; the scap example is rather involved. ;-)

I was waiting for someone else to go first so I could steal their code; the scap example is rather involved. ;-)

Gotcha. I'll set something up for you.

@Jdforrester-WMF @jnuche:
function-evaluator's Zuul CI published its coverage report to https://doc.wikimedia.org/cover/mediawiki-services-function-evaluator/. The mediawiki-services-function-evaluator name was computed by https://gerrit.wikimedia.org/r/plugins/gitiles/integration/config/+/refs/heads/master/zuul/parameter_functions.py#978 based on the Gerrit repository name, which was mediawiki/services/function-evaluator. Now function-evaluator is at https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-evaluator and the docpub stuff currently only has the ability to publish to https://doc.wikimedia.org/abstract-wiki/wikifunctions/function-evaluator. We'll need to extend it to support writing to cover/$CI_PROJECT_PATH_WITHOUT_REPOS_PREFIX too. James, is it okay if the coverage URL becomes https://doc.wikimedia.org/cover/abstract-wiki/wikifunctions/function-evaluator?

docpub can now publish test coverage reports under https://doc.wikimedia.org/cover by specifying COVERAGE: 'true' in the publishing job. I've updated https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/commit/57a1a0c207a04fd3f641cf77aff0cd8598b85167 to reflect the change.

Final URL right now will be: https://doc.wikimedia.org/cover/abstract-wiki/wikifunctions/function-evaluator. But we can add some flattening/processing of the URL as it was done before for gerrit if we think there's value in that.

@Jdforrester-WMF @jnuche:
function-evaluator's Zuul CI published its coverage report to https://doc.wikimedia.org/cover/mediawiki-services-function-evaluator/. The mediawiki-services-function-evaluator name was computed by https://gerrit.wikimedia.org/r/plugins/gitiles/integration/config/+/refs/heads/master/zuul/parameter_functions.py#978 based on the Gerrit repository name, which was mediawiki/services/function-evaluator. Now function-evaluator is at https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-evaluator and the docpub stuff currently only has the ability to publish to https://doc.wikimedia.org/abstract-wiki/wikifunctions/function-evaluator. We'll need to extend it to support writing to cover/$CI_PROJECT_PATH_WITHOUT_REPOS_PREFIX too. James, is it okay if the coverage URL becomes https://doc.wikimedia.org/cover/abstract-wiki/wikifunctions/function-evaluator?

Yeah, that's fine, as long as they're published I'm happy to tweak the incoming URLs etc..

docpub can now publish test coverage reports under https://doc.wikimedia.org/cover by specifying COVERAGE: 'true' in the publishing job. I've updated https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/commit/57a1a0c207a04fd3f641cf77aff0cd8598b85167 to reflect the change.

Final URL right now will be: https://doc.wikimedia.org/cover/abstract-wiki/wikifunctions/function-evaluator. But we can add some flattening/processing of the URL as it was done before for gerrit if we think there's value in that.

This is great, thank you!

Jdforrester-WMF renamed this task from Re-implement post-merge publication of code coverage and code documentation for Wikifunctions repos on GitLab to Re-implement post-merge publication of code coverage for Wikifunctions's repos on GitLab.May 25 2023, 4:33 PM
Jdforrester-WMF updated the task description. (Show Details)

Change 923394 had a related patch set uploaded (by Jforrester; author: Jforrester):

[integration/docroot@master] function-*: Update links for source and coverage reports

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

Change 924598 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (9abc7c2)

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

Change 924598 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (9abc7c2)

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

Just saw a few links here that I thought would probably make sense to update as part of this task.

Just saw a few links here that I thought would probably make sense to update as part of this task.

Yup, that's https://gerrit.wikimedia.org/r/c/integration/docroot/+/923394/ but I was waiting on the evaluator links going live before deploying.

Oh, totally missed the automated comment above. Neat!

Change 923394 merged by jenkins-bot:

[integration/docroot@master] function-*: Update links for source and coverage reports

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

Mentioned in SAL (#wikimedia-operations) [2023-06-05T22:55:19Z] <jforrester@deploy1002> Started deploy [integration/docroot@8255d99]: I6c7575 for T337425

Mentioned in SAL (#wikimedia-operations) [2023-06-05T22:55:33Z] <jforrester@deploy1002> Finished deploy [integration/docroot@8255d99]: I6c7575 for T337425 (duration: 00m 13s)

Jdforrester-WMF changed the task status from Open to In Progress.Oct 26 2023, 4:46 PM
Jdforrester-WMF lowered the priority of this task from High to Low.Oct 26 2023, 4:56 PM

Change 992227 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2023-11-29-143341 to 2024-01-18-182630

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

Change 992227 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2023-11-29-143341 to 2024-01-18-182630

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