Closed
Description
Symfony version(s) affected: all
Description
The lint:xliff
command is too slow.
How to reproduce
I put the following on my Travis CI config:
$ ./tests/bin/console lint:xliff "src/Resources/translations"
But the build runs out of time (see full details):
No output has been received in the last 10m0s, this potentially indicates a
stalled build or something wrong with the build itself.
The build has been terminated.
Additional context
I've run this command locally linting just 1 file and it was extremely slow. I share the Blackfire profile:
$ blackfire run ./tests/bin/console lint:xliff src/Resources/translations/EasyAdminBundle.en.xlf
Profile:
https://blackfire.io/profiles/5f1be513-3f01-414d-8759-11ae84a00ce3/graph
The problem seems to be in PHP's DOMDocument::schemaValidate
but maybe we are doing something that makes it slow?