Deployment zip filenames - #664
Conversation
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
Is the "gtfs" substring guaranteed to be in getFeedSourceBundleFilename? I don't see comments regarding that.
| FeedVersion feedVersion = Persistence.feedVersions.getById(feedVersionId); | ||
| return deployment.getFeedSourceBundleFilename( | ||
| feedVersion, | ||
| String.format("gtfs-%s", feedVersionId) |
There was a problem hiding this comment.
For the fallback, copy the deleted comment about OTP2 requiring "gtfs" in the file name.
Also, is the presence of the "gtfs" substring guaranteed in getFeedSourceBundleFilename?
There was a problem hiding this comment.
edit: misread your comment at first
I think that is not needed. The GTFS in the filename is used for autodiscovery of the zips, but it's not actually required. If the filename doesn't have gtfs in it, you must specify the filenames of the GTFS files in build-config, which is the goal here anyway since this allows us to specify feed IDs instead of using the non deterministic ones provided by OTP in the autodiscovery method.
Checklist
devbefore they can be merged tomaster)Description
Datatools was not correctly using the configured GTFS feed source filename in the otp-runner manifest/bundle download, even though it was using the correct filenames in the web ui download. This fixes that