common icon indicating copy to clipboard operation
common copied to clipboard

Gherkin testdata duplication

Open aurelien-reeves opened this issue 2 years ago • 4 comments

🤔 What's the problem you've observed?

Testdata for gherkin are duplicated into each implementation. In case of update of the testdata, it generates huge diffs which are making PRs difficult to review properly (cf. #1741)

✨ Do you have a proposal for making it better?

Stop duplicating testdata and refer to those using relative paths Or at least duplicating the testdata during the build, but ignoring those from the repo

📚 Any additional context?

Why the purpose of the duplication? Is it because of the subrepos?


This text was originally generated from a template, then edited by hand. You can modify the template here.

aurelien-reeves avatar May 03 '22 15:05 aurelien-reeves

Why the purpose of the duplication? Is it because of the subrepos?

Yup. The subrepo sync would copy the language subtree. If the data wasn't duplicated, the sub repos build would fail.

mpkorstanje avatar May 03 '22 15:05 mpkorstanje

I do think that fixing this is tied up with extracting gherkin from the common repo. I believe that PHP still requires a subrepo so we may not be able to get rid of it so easily. On the otherhand, if we can make php work withouth a subrepo, we can do the deduplication.

mpkorstanje avatar May 03 '22 15:05 mpkorstanje

PHP doesn't need test data in the subrepo, I don't think

ciaranmcnulty avatar May 03 '22 15:05 ciaranmcnulty

Why the purpose of the duplication? Is it because of the subrepos?

Yup. The subrepo sync would copy the language subtree. If the data wasn't duplicated, the sub repos build would fail.

There are no automated build within subrepos. And I am not sure any subrepo has already been used as a dev environment and thus needed to actually build

I might submit a PR to remove that duplication in the monorepo. Any objection?

aurelien-reeves avatar May 04 '22 07:05 aurelien-reeves