Skip to content

Deployment zip filenames - #664

Open
daniel-heppner-ibigroup wants to merge 3 commits into
devfrom
deployment-zip-filenames
Open

Deployment zip filenames#664
daniel-heppner-ibigroup wants to merge 3 commits into
devfrom
deployment-zip-filenames

Conversation

@daniel-heppner-ibigroup

Copy link
Copy Markdown
Contributor

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing
  • The description lists all relevant PRs included in this release (remove this if not merging to master)
  • e2e tests are all passing (remove this if not merging to master)

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

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@daniel-heppner-ibigroup daniel-heppner-ibigroup Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@br648 br648 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants