Debug XML check failure - #790
Conversation
|
@lacatoire , here is a question for you: the checkout of Note the output of steps "Initial state", "After checkout, without: repository, path" and "After checkout, with: repository, path", in: https://github.com/php/doc-pt_br/actions/runs/31059766682/job/92484939615 In particular, note that in the last case, an |
Yes, intentional: the check script expects the translation at the working directory root and doc-en under It is not the sibling layout the rest of the tooling uses, though. Happy to move the translation to |
|
If it is intended, it is ok. I would only ask, in future and if this yaml is changed for another reason, to also annotate this tree layout at yaml level. But I asked because of the strange results of Structure/Check XML results of https://github.com/php/doc-pt_br/pull/789/checks . In that PR, only one file was modified, not a .xml one, and even so the check is listing (and failing) some .xml files, for errors (xi:fallback) that does not exist anymore, in any files of either repository. So are two possible problems here. The listing of xml files, and the PR inspecting the past, aven after the PR is pushed. At first I suspected that was because of the unusual checkout inside the checkout layout. |
|
Oh, I think I got it. The HEAD of "this" repository is a merge commit. So it has two parents, and so, listing from BASE to HEAD will list all files changes in both branches. So check is listing files not changed by the PR, but files also changed in main/master. This is intended? To avoid listing files outside the PR, the checkout or diff need to be using the ref/HEAD as |
|
@alfsb nice catches, i've done the PRs |
|
Thanks. Closing here, applying there. |
No description provided.