Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to reduce the Portland GTFS test data set #6023

Conversation

t2gran
Copy link
Member

@t2gran t2gran commented Aug 27, 2024

Summary

This PR replace the Portland GTFS zip file with a catalog with text files(not compressed). It also add a script to modify the GTFS files. The script can remove routes from the dataset, this is useful in cases where you are debugging an integration test. For example, if the search only uses one or two trips only those trips need to exist in the data set - the expected result should be the same.

The unzipping of the GTFS file make inspection of the Portland test data easier - so I what to merge that, but If we want to merge the script is up to the community - if no one, except me, find it useful then we should not merge it.

The data-files are not changed in any way - only unzipped.

Issue

🟥 There is no issue for this PR. This PR does not change OTP code, only unzip test data.

Unit tests

✅ The only code changed is the location of the test data - coverd by tests and the script. The script does not have unit test, but can be verified simply by running it and inspect the data text files.

Documentation

✅ The script is documented at the top of the file. No other doc is added.

Changelog

🟥 This is a developer util, not relevant for the change log.

Bumping the serialization version id

🟥 Not applicable.

@t2gran t2gran added this to the 2.6 (next release) milestone Aug 27, 2024
@t2gran t2gran requested a review from a team as a code owner August 27, 2024 14:45
@t2gran t2gran changed the title Otp2 add script to modify portland gtfs test data Add script to reduce the Portland GTFS test data set Aug 27, 2024
@t2gran t2gran force-pushed the otp2_add_script_to_modify_portland_gtfs_test_data branch from eafb374 to 325504d Compare August 27, 2024 15:04
…a set.

This script can be used to debug test witch only uses a subset of the trips - removing the other
trips makes it easier to debug.
@t2gran t2gran force-pushed the otp2_add_script_to_modify_portland_gtfs_test_data branch from 325504d to 896cd99 Compare August 28, 2024 08:48
@optionsome optionsome marked this pull request as draft September 10, 2024 09:44
@t2gran t2gran modified the milestones: 2.6, 2.7 (next release) Sep 18, 2024
@t2gran t2gran modified the milestones: 2.7 (next release), Rejected Oct 16, 2024
@t2gran
Copy link
Member Author

t2gran commented Oct 16, 2024

There are other better tools for this and I am not sure I ever need it again, so I will close the PR.

@t2gran t2gran closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant