Cross-repo dependencies make maintenance PITA otherwise. Or maybe not cause cross-repo dependencies will be there in any case - needs discussion.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Zuul: Run all Kartographer tests alongside each patch to JsonConfig | integration/config | master | +1 -1 |
Event Timeline
JCMapDataContent relies on both JsonConfig & Kartographer. But while it could still function properly without Kartographer, it cannot function at all without JsonConfig. This is similar to how MediaWiki api uses syntax highlighting - it makes the output nicer, but not required to exist.
Moving off the sprint board - the Discovery team won't be able to do this work at this time.
Recently we had CI complaining about this cross-repo dependencies and it's now blocking one patch, that's why we brought this to the RI Backlog, so we can investigate. You can see the error below:
18:44:15 Fatal error: Class undefined: Kartographer\SimpleStyleParser in /workspace/src/extensions/JsonConfig/includes/JCMapDataContent.php on line 48
Since moving JCMapDataContent from JsonConfig to Kartographer is not a good idea, would you suggest some other path to follow? To be honest I didn't get the time for further investigations on the code and I don't have an opinion yet.
A dependency can't be avoided here: either JsonConfig needs to depend on Kartographer, or vice versa. CI just needs to be aware of this dependency and always clone both extensions.
I see it you had this concern before https://gerrit.wikimedia.org/r/c/integration/config/+/352279
I am going to bring this topic again for discussion and maybe ask for this patch to be merged.
Change 464827 had a related patch set uploaded (by MSantos; owner: MSantos):
[integration/config@master] Allowing JsonConfig to be tested with Kartographer
Change 464827 had a related patch set uploaded (by Jforrester; owner: MSantos):
[integration/config@master] Zuul: Run all Kartographer tests alongside each patch to JsonConfig
Change 464827 merged by jenkins-bot:
[integration/config@master] Zuul: Run all Kartographer tests alongside each patch to JsonConfig
Mentioned in SAL (#wikimedia-releng) [2020-03-23T21:43:59Z] <James_F> Zuul: Run all Kartographer tests alongside each patch to JsonConfig T163274