Page MenuHomePhabricator

Add a PHP test to lint ContentTranslation yaml files
Closed, DeclinedPublic1 Estimated Story Points

Description

The mediawiki/extensions/ContentTranslation repository has a yamllint job I would like to phase out T95890. The repository has a composer entry which runs composer test. Can you add a test that validates your yaml files so I can phase out the generic yamllint job? Thanks!

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar added a project: ContentTranslation.
hashar subscribed.
santhosh triaged this task as Medium priority.
santhosh added a project: LE-Sprint-86.
santhosh set Security to None.
santhosh subscribed.

Change 242446 had a related patch set uploaded (by KartikMistry):
Removed deprecated yamlint for ContentTranslation

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

CI configuration is gone. Thanks. You will most probably want to add a composer/npm runnable test to lint the YAML files.

Change 242446 merged by jenkins-bot:
Removed deprecated yamlint for ContentTranslation

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

hashar subscribed.

Turns out there is no YAML file in the repository beside the rubocop configuration file. If it ever become invalid, the rubocop job will fail.

Amire80 changed the task status from Resolved to Declined.Oct 30 2015, 11:31 AM

A yaml test is not really needed in ContentTranslation, because the only yaml file that we have there is the rubocop configuration, and it can test itself, and we don't expect any more yaml files.