-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
Hmmm, that isn't good 😕 |
Right, so what happened is:
The latter added some info to templates but not everything, and this isn't tested in swiftgenkit until the next PR that updates the submodule. |
Should we do something to improve that, like see if we can trigger a submodule realignment + build in SwiftGenKit from templates PR or a warning via Danger if SwiftGenKit wasn't aligned before merging the PR or whatnot? |
SwiftGenKit PRs should, before they get merged, have their submodules point to But it still won't help the issue that happened here, namely that a PR on templates was essentially broken but our tests didn't catch this, because these tests are run in the swiftgenkit repo. Somehow, template repo PRs that affect the fixtures, should run the tests in this repository... |
I have an idea but it can be complicated. We could use Not sure it's worth it. The best solution would rather be that the |
@AliSoftware I need a little more context on this to be able to suggest something - We should definitely talk about it in Budapest this week tho. |
Yeah sure. We can talk more about it in Budapest next week indeed. |
Right so SwiftGen works in 2 fases:
We test those fases separately, the first fase is checked by the unit tests in The templates repository contains all the files (fixtures, contexts and expected output). The SwiftGenKit repository has the templates repository as a git submodule. All of this works, but an issue can arise in certain situations. Edit: @AliSoftware beat me to it. |
Thing is, if the templates repository could trigger a build in the SwiftGenKit repository, it'd have to trigger tests while making the latter point to the current But then in some cases, we don't want that automation, because there might be a related PR in SwiftGenKit to handle the generation of modified contexts... |
I think that the easiest would be:
|
No description provided.