Repository navigation
Apply a stop consolidation file on static import - #1776
Draft
aaronbrethorst wants to merge 1 commit into
Draft
aaronbrethorst wants to merge 1 commit into
aaronbrethorst wants to merge 1 commit into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Oct 24, 2026
|
The description follows the PR template. |
9 tasks done
Performance Smoke Test ResultsStatus: PASSED
Smoke test config: 5 VUs x 30s. Thresholds: p(95) < 300ms, error rate < 1%. Full results uploaded as workflow artifact: k6-smoke-summary. |
When Config.StopConsolidationURL is set, the static import reads the file, from a URL or a local path, and applies it: - The file's stop IDs use the feed's first agency in agency.txt, the agency Java names every stop in a feed after. - Each problem Validate finds is logged as a warning, with its kind and line. None stops the import, because Java loads such files. - A file that can't be read, or has a malformed stop ID, fails the import, as it fails Java's bundle build. The database keeps serving the previous import. - The file's hash is part of the import hash, so changing the file alone causes a re-import, and an unchanged feed and file skip parsing as before. Absorbed stops without coordinates are not in the loaded set, because maglev never stores them.
aaronbrethorst
force-pushed
the
ab/stop-consolidation-load
branch
from
November 8, 2026 17:58
4dee8da to
ae96840
Compare
|
Performance Smoke Test ResultsStatus: PASSED
Smoke test config: 5 VUs x 30s. Thresholds: p(95) < 300ms, error rate < 1%. Full results uploaded as workflow artifact: k6-smoke-summary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Part of #1977
Draft. Stacked on #1775. Draft until multi-feed phases B and C land.
What it does
When
Config.StopConsolidationURLis set, the static import reads the file (from a URL or a local path) and applies it:agency.txt, the agency Java names every stop in a feed after.Validatefinds is logged as a warning with its kind and line. None of them stops the import.The config option itself comes in #1773.
Root cause
Connects the parser, validator and
Apply(#1771, #1772, #1774) to the import step in #1775.Testing
Test failing on
mainbefore this change: n/a (new feature).Manual check: RABA with
25_5008 25_5027and25_gone 25_3022, compared with the same feed and no file:schedule-for-stop/25_5008(2025-06-02)schedule-for-stop/25_5027stop/25_3022trip-details/25_ef279c99…missing_canonicalwarning for line 3 is logged.TestStopConsolidation_*covers:make testandgo vet(both tag sets) pass.Checklist
mainand passes on this branch.gtfsdb/(db.go,models.go,query.sql.go) ortestdata/openapi.yml(synced from upstream).r.Context()to DB/service calls, notcontext.Background().testdata/openapi.yml, has an issue open on OneBusAway/sdk-config, or is outside the SDK and the description says why.Notes for reviewers