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

feat: 1814 flex forbidden continuous pickup or drop off #1941

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

qcdyx
Copy link
Contributor

@qcdyx qcdyx commented Jan 13, 2025

Summary:

Closes #1814

Expected behavior:
image

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with gradle test to make sure you didn't break anything
  • Add or update any needed documentation to the repo
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

@qcdyx qcdyx linked an issue Jan 13, 2025 that may be closed by this pull request
Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

❌ The rule acceptance test has failed for commit f0f1055
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (50 out of 1792 datasets, ~3%) ❌

Details of new errors due to code change, which is above the provided threshold of 1%.

Dataset Notice Code
us-california-city-of-tracy-gtfs-2187 continuous_pickup_drop_off
us-california-manteca-transit-gtfs-2172 continuous_pickup_drop_off
us-california-move-stanislaus-gtfs-2174 continuous_pickup_drop_off
us-california-san-joaquin-regional-transit-district-gtfs-2180 continuous_pickup_drop_off
us-california-stanislaus-regional-transit-authority-gtfs-2186 continuous_pickup_drop_off
us-chicago-brown-county-heartland-express-gtfs-2037 continuous_pickup_drop_off
us-chicago-the-otter-express-gtfs-2038 continuous_pickup_drop_off
us-colorado-adams-county-gtfs-2156 continuous_pickup_drop_off
us-colorado-all-points-transit-gtfs-2039 continuous_pickup_drop_off
us-colorado-avon-transit-gtfs-2040 continuous_pickup_drop_off
us-colorado-baca-area-transportation-gtfs-1087 continuous_pickup_drop_off
us-colorado-bent-county-transportation-gtfs-2157 continuous_pickup_drop_off
us-colorado-blackhawk-and-central-city-tramway-gtfs-2041 continuous_pickup_drop_off
us-colorado-city-of-loveland-gtfs-2161 continuous_pickup_drop_off
us-colorado-cripple-creek-transportation-gtfs-2042 continuous_pickup_drop_off
us-colorado-discover-goodwill-gtfs-2043 continuous_pickup_drop_off
us-colorado-dolores-county-gtfs-1141 continuous_pickup_drop_off
us-colorado-durango-transit-gtfs-2290 continuous_pickup_drop_off
us-colorado-easy-ride-transportation-gtfs-1195 continuous_pickup_drop_off
us-colorado-eco-transit-gtfs-2045 continuous_pickup_drop_off
us-colorado-el-paso-fountain-valley-senior-citizens-program-inc-gtfs-2046 continuous_pickup_drop_off
us-colorado-envida-gtfs-2044 continuous_pickup_drop_off
us-colorado-estes-transit-gtfs-2047 continuous_pickup_drop_off
us-colorado-grand-valley-transit-gtfs-2288 continuous_pickup_drop_off
us-colorado-gunnison-valley-rta-gtfs-2048 continuous_pickup_drop_off
us-colorado-kiowa-county-transit-gtfs-2169 continuous_pickup_drop_off
us-colorado-la-junta-transit-gtfs-2170 continuous_pickup_drop_off
us-colorado-lake-county-senior-center-transportation-program-gtfs-2291 continuous_pickup_drop_off
us-colorado-lakewood-rides-gtfs-2171 continuous_pickup_drop_off
us-colorado-mountain-express-gtfs-2294 continuous_pickup_drop_off
us-colorado-mountain-family-center-gtfs-2173 continuous_pickup_drop_off
us-colorado-mountain-metro-transit-gtfs-2292 continuous_pickup_drop_off
us-colorado-omnibus-gtfs-2175 continuous_pickup_drop_off
us-colorado-outback-express-gtfs-2306 continuous_pickup_drop_off
us-colorado-pueblo-transit-gtfs-1232 continuous_pickup_drop_off
us-colorado-roaring-fork-transportation-authority-rfta-gtfs-2179 continuous_pickup_drop_off
us-colorado-routt-county-council-on-aging-rccoca-transportation-gtfs-2178 continuous_pickup_drop_off
us-colorado-senior-resource-development-agency-gtfs-2185 continuous_pickup_drop_off
us-colorado-silver-key-senior-services-gtfs-2182 continuous_pickup_drop_off
us-colorado-south-central-council-of-governments-sccog-gtfs-2181 continuous_pickup_drop_off
us-colorado-southwest-rides-gtfs-2184 continuous_pickup_drop_off
us-colorado-steamboat-springs-transit-gtfs-2051 continuous_pickup_drop_off
us-colorado-town-of-telluride-gtfs-2050 continuous_pickup_drop_off
us-colorado-transfort-gtfs-2293 continuous_pickup_drop_off
us-colorado-tsc-transit-gtfs-2052 continuous_pickup_drop_off
us-colorado-upper-arkansas-area-council-of-governments-gtfs-2188 continuous_pickup_drop_off
us-new-hampshire-concord-area-transit-gtfs-2164 continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2158 continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2159 continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2160 continuous_pickup_drop_off
Dropped Errors (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

New Warnings (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Warnings (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1792 sources (~0 %) are corrupted.

⏱️ Performance Assessment

📈 Validation Time

Assess the performance in terms of seconds taken for the validation process.

Time Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 3.97 4.08 ⬆️+0.11
Median -- 1.36 1.43 ⬆️+0.06
Standard Deviation -- 11.75 11.90 ⬆️+0.15
Minimum in References Reports us-oregon-high-desert-point-gtfs-636 0.52 0.65 ⬆️+0.12
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 314.45 321.22 ⬆️+6.77
Minimum in Latest Reports us-california-flex-v2-developer-test-feed-2-gtfs-1818 0.60 0.55 ⬇️-0.05
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 314.45 321.22 ⬆️+6.77
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 487.37 MiB 477.09 MiB ⬇️-10.29 MiB
Median -- 239.73 MiB 240.45 MiB ⬆️+740.96 KiB
Standard Deviation -- 916.42 MiB 883.63 MiB ⬇️-32.79 MiB
Minimum in References Reports us-california-flex-v2-developer-test-feed-3-gtfs-1819 34.47 MiB 34.51 MiB ⬆️+40.00 KiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.52 GiB 10.90 GiB ⬆️+381.69 MiB
Minimum in Latest Reports us-california-catalina-express-gtfs-299 34.48 MiB 34.49 MiB ⬆️+2.16 KiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.52 GiB 10.90 GiB ⬆️+381.69 MiB

@tzujenchanmbd
Copy link

Suggestion -

Notice name: continuous_pickup_drop_off -> forbidden_continuous_pickup_drop_off

Description:
Continuous pickup or drop-off are forbidden when routes.continuous_pickup or routes.continuous_drop_off are 0, 2, or 3 and stop_times.start_pickup_drop_off_window or stop_times.end_pickup_drop_off_window are defined for any trip of this route.

@qcdyx
Copy link
Contributor Author

qcdyx commented Jan 15, 2025

@tzujenchanmbd Please take a look and feel free to approve the PR.
image

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

❌ The rule acceptance test has failed for commit 134191a
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (50 out of 1792 datasets, ~3%) ❌

Details of new errors due to code change, which is above the provided threshold of 1%.

Dataset Notice Code
us-california-city-of-tracy-gtfs-2187 continuous_pickup_drop_off
us-california-manteca-transit-gtfs-2172 continuous_pickup_drop_off
us-california-move-stanislaus-gtfs-2174 continuous_pickup_drop_off
us-california-san-joaquin-regional-transit-district-gtfs-2180 continuous_pickup_drop_off
us-california-stanislaus-regional-transit-authority-gtfs-2186 continuous_pickup_drop_off
us-chicago-brown-county-heartland-express-gtfs-2037 continuous_pickup_drop_off
us-chicago-the-otter-express-gtfs-2038 continuous_pickup_drop_off
us-colorado-adams-county-gtfs-2156 continuous_pickup_drop_off
us-colorado-all-points-transit-gtfs-2039 continuous_pickup_drop_off
us-colorado-avon-transit-gtfs-2040 continuous_pickup_drop_off
us-colorado-baca-area-transportation-gtfs-1087 continuous_pickup_drop_off
us-colorado-bent-county-transportation-gtfs-2157 continuous_pickup_drop_off
us-colorado-blackhawk-and-central-city-tramway-gtfs-2041 continuous_pickup_drop_off
us-colorado-city-of-loveland-gtfs-2161 continuous_pickup_drop_off
us-colorado-cripple-creek-transportation-gtfs-2042 continuous_pickup_drop_off
us-colorado-discover-goodwill-gtfs-2043 continuous_pickup_drop_off
us-colorado-dolores-county-gtfs-1141 continuous_pickup_drop_off
us-colorado-durango-transit-gtfs-2290 continuous_pickup_drop_off
us-colorado-easy-ride-transportation-gtfs-1195 continuous_pickup_drop_off
us-colorado-eco-transit-gtfs-2045 continuous_pickup_drop_off
us-colorado-el-paso-fountain-valley-senior-citizens-program-inc-gtfs-2046 continuous_pickup_drop_off
us-colorado-envida-gtfs-2044 continuous_pickup_drop_off
us-colorado-estes-transit-gtfs-2047 continuous_pickup_drop_off
us-colorado-grand-valley-transit-gtfs-2288 continuous_pickup_drop_off
us-colorado-gunnison-valley-rta-gtfs-2048 continuous_pickup_drop_off
us-colorado-kiowa-county-transit-gtfs-2169 continuous_pickup_drop_off
us-colorado-la-junta-transit-gtfs-2170 continuous_pickup_drop_off
us-colorado-lake-county-senior-center-transportation-program-gtfs-2291 continuous_pickup_drop_off
us-colorado-lakewood-rides-gtfs-2171 continuous_pickup_drop_off
us-colorado-mountain-express-gtfs-2294 continuous_pickup_drop_off
us-colorado-mountain-family-center-gtfs-2173 continuous_pickup_drop_off
us-colorado-mountain-metro-transit-gtfs-2292 continuous_pickup_drop_off
us-colorado-omnibus-gtfs-2175 continuous_pickup_drop_off
us-colorado-outback-express-gtfs-2306 continuous_pickup_drop_off
us-colorado-pueblo-transit-gtfs-1232 continuous_pickup_drop_off
us-colorado-roaring-fork-transportation-authority-rfta-gtfs-2179 continuous_pickup_drop_off
us-colorado-routt-county-council-on-aging-rccoca-transportation-gtfs-2178 continuous_pickup_drop_off
us-colorado-senior-resource-development-agency-gtfs-2185 continuous_pickup_drop_off
us-colorado-silver-key-senior-services-gtfs-2182 continuous_pickup_drop_off
us-colorado-south-central-council-of-governments-sccog-gtfs-2181 continuous_pickup_drop_off
us-colorado-southwest-rides-gtfs-2184 continuous_pickup_drop_off
us-colorado-steamboat-springs-transit-gtfs-2051 continuous_pickup_drop_off
us-colorado-town-of-telluride-gtfs-2050 continuous_pickup_drop_off
us-colorado-transfort-gtfs-2293 continuous_pickup_drop_off
us-colorado-tsc-transit-gtfs-2052 continuous_pickup_drop_off
us-colorado-upper-arkansas-area-council-of-governments-gtfs-2188 continuous_pickup_drop_off
us-new-hampshire-concord-area-transit-gtfs-2164 continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2158 continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2159 continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2160 continuous_pickup_drop_off
Dropped Errors (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

New Warnings (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Warnings (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1792 sources (~0 %) are corrupted.

⏱️ Performance Assessment

📈 Validation Time

Assess the performance in terms of seconds taken for the validation process.

Time Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 4.01 4.22 ⬆️+0.21
Median -- 1.38 1.49 ⬆️+0.11
Standard Deviation -- 11.71 11.90 ⬆️+0.19
Minimum in References Reports us-oregon-high-desert-point-gtfs-636 0.52 0.58 ⬆️+0.06
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 314.75 316.43 ⬆️+1.68
Minimum in Latest Reports ar-buenos-aires-subterraneos-de-buenos-aires-subte-gtfs-6 0.56 0.55 ⬇️-0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 314.75 316.43 ⬆️+1.68
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 473.27 MiB 458.59 MiB ⬇️-14.68 MiB
Median -- 240.44 MiB 240.15 MiB ⬇️-295.56 KiB
Standard Deviation -- 877.35 MiB 849.34 MiB ⬇️-28.02 MiB
Minimum in References Reports us-oregon-hut-airport-shuttle-gtfs-635 34.49 MiB 34.50 MiB ⬆️+8.00 KiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.62 GiB 10.85 GiB ⬆️+230.76 MiB
Minimum in Latest Reports us-massachusetts-massachusetts-area-express-max-gtfs-431 34.53 MiB 34.49 MiB ⬇️-40.00 KiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.62 GiB 10.85 GiB ⬆️+230.76 MiB

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

❌ The rule acceptance test has failed for commit 840490e
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (50 out of 1792 datasets, ~3%) ❌

Details of new errors due to code change, which is above the provided threshold of 1%.

Dataset Notice Code
us-california-city-of-tracy-gtfs-2187 forbidden_continuous_pickup_drop_off
us-california-manteca-transit-gtfs-2172 forbidden_continuous_pickup_drop_off
us-california-move-stanislaus-gtfs-2174 forbidden_continuous_pickup_drop_off
us-california-san-joaquin-regional-transit-district-gtfs-2180 forbidden_continuous_pickup_drop_off
us-california-stanislaus-regional-transit-authority-gtfs-2186 forbidden_continuous_pickup_drop_off
us-chicago-brown-county-heartland-express-gtfs-2037 forbidden_continuous_pickup_drop_off
us-chicago-the-otter-express-gtfs-2038 forbidden_continuous_pickup_drop_off
us-colorado-adams-county-gtfs-2156 forbidden_continuous_pickup_drop_off
us-colorado-all-points-transit-gtfs-2039 forbidden_continuous_pickup_drop_off
us-colorado-avon-transit-gtfs-2040 forbidden_continuous_pickup_drop_off
us-colorado-baca-area-transportation-gtfs-1087 forbidden_continuous_pickup_drop_off
us-colorado-bent-county-transportation-gtfs-2157 forbidden_continuous_pickup_drop_off
us-colorado-blackhawk-and-central-city-tramway-gtfs-2041 forbidden_continuous_pickup_drop_off
us-colorado-city-of-loveland-gtfs-2161 forbidden_continuous_pickup_drop_off
us-colorado-cripple-creek-transportation-gtfs-2042 forbidden_continuous_pickup_drop_off
us-colorado-discover-goodwill-gtfs-2043 forbidden_continuous_pickup_drop_off
us-colorado-dolores-county-gtfs-1141 forbidden_continuous_pickup_drop_off
us-colorado-durango-transit-gtfs-2290 forbidden_continuous_pickup_drop_off
us-colorado-easy-ride-transportation-gtfs-1195 forbidden_continuous_pickup_drop_off
us-colorado-eco-transit-gtfs-2045 forbidden_continuous_pickup_drop_off
us-colorado-el-paso-fountain-valley-senior-citizens-program-inc-gtfs-2046 forbidden_continuous_pickup_drop_off
us-colorado-envida-gtfs-2044 forbidden_continuous_pickup_drop_off
us-colorado-estes-transit-gtfs-2047 forbidden_continuous_pickup_drop_off
us-colorado-grand-valley-transit-gtfs-2288 forbidden_continuous_pickup_drop_off
us-colorado-gunnison-valley-rta-gtfs-2048 forbidden_continuous_pickup_drop_off
us-colorado-kiowa-county-transit-gtfs-2169 forbidden_continuous_pickup_drop_off
us-colorado-la-junta-transit-gtfs-2170 forbidden_continuous_pickup_drop_off
us-colorado-lake-county-senior-center-transportation-program-gtfs-2291 forbidden_continuous_pickup_drop_off
us-colorado-lakewood-rides-gtfs-2171 forbidden_continuous_pickup_drop_off
us-colorado-mountain-express-gtfs-2294 forbidden_continuous_pickup_drop_off
us-colorado-mountain-family-center-gtfs-2173 forbidden_continuous_pickup_drop_off
us-colorado-mountain-metro-transit-gtfs-2292 forbidden_continuous_pickup_drop_off
us-colorado-omnibus-gtfs-2175 forbidden_continuous_pickup_drop_off
us-colorado-outback-express-gtfs-2306 forbidden_continuous_pickup_drop_off
us-colorado-pueblo-transit-gtfs-1232 forbidden_continuous_pickup_drop_off
us-colorado-roaring-fork-transportation-authority-rfta-gtfs-2179 forbidden_continuous_pickup_drop_off
us-colorado-routt-county-council-on-aging-rccoca-transportation-gtfs-2178 forbidden_continuous_pickup_drop_off
us-colorado-senior-resource-development-agency-gtfs-2185 forbidden_continuous_pickup_drop_off
us-colorado-silver-key-senior-services-gtfs-2182 forbidden_continuous_pickup_drop_off
us-colorado-south-central-council-of-governments-sccog-gtfs-2181 forbidden_continuous_pickup_drop_off
us-colorado-southwest-rides-gtfs-2184 forbidden_continuous_pickup_drop_off
us-colorado-steamboat-springs-transit-gtfs-2051 forbidden_continuous_pickup_drop_off
us-colorado-town-of-telluride-gtfs-2050 forbidden_continuous_pickup_drop_off
us-colorado-transfort-gtfs-2293 forbidden_continuous_pickup_drop_off
us-colorado-tsc-transit-gtfs-2052 forbidden_continuous_pickup_drop_off
us-colorado-upper-arkansas-area-council-of-governments-gtfs-2188 forbidden_continuous_pickup_drop_off
us-new-hampshire-concord-area-transit-gtfs-2164 forbidden_continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2158 forbidden_continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2159 forbidden_continuous_pickup_drop_off
us-washington-catholic-community-services-gtfs-2160 forbidden_continuous_pickup_drop_off
Dropped Errors (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

New Warnings (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Warnings (0 out of 1792 datasets, ~0%) ✅

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1792 sources (~0 %) are corrupted.

⏱️ Performance Assessment

📈 Validation Time

Assess the performance in terms of seconds taken for the validation process.

Time Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 4.01 4.14 ⬆️+0.13
Median -- 1.38 1.45 ⬆️+0.07
Standard Deviation -- 11.81 11.85 ⬆️+0.04
Minimum in References Reports us-california-catalina-express-gtfs-299 0.51 0.58 ⬆️+0.07
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 315.65 311.30 ⬇️-4.35
Minimum in Latest Reports us-california-city-of-wasco-gtfs-1788 0.55 0.56 ⬆️+0.02
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 315.65 311.30 ⬇️-4.35
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 466.36 MiB 478.63 MiB ⬆️+12.26 MiB
Median -- 240.45 MiB 240.44 MiB ⬇️-6.54 KiB
Standard Deviation -- 856.19 MiB 890.66 MiB ⬆️+34.48 MiB
Minimum in References Reports us-florida-citrus-county-transit-gtfs-630 34.49 MiB 34.50 MiB ⬆️+8.00 KiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.94 GiB 10.59 GiB ⬇️-361.48 MiB
Minimum in Latest Reports us-oregon-hut-airport-shuttle-gtfs-635 34.50 MiB 34.48 MiB ⬇️-16.00 KiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.94 GiB 10.59 GiB ⬇️-361.48 MiB

Copy link

@tzujenchanmbd tzujenchanmbd left a comment

Choose a reason for hiding this comment

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

Notice name, fields displayed, and description lgtm!

@emmambd
Copy link
Contributor

emmambd commented Jan 16, 2025

@tzujenchanmbd I find the number of feeds that trigger this error to be surprising - it's high. Is that expected from your perspective?

@tzujenchanmbd
Copy link

Let me have a look before merging

@tzujenchanmbd
Copy link

@emmambd thanks for catching this!

Checked a couple of feeds that seems to trigger false positive error? such as:
https://data.trilliumtransit.com/gtfs/otterexpress-mn-us/otterexpress-mn-us--flex-v2.zip
https://data.trilliumtransit.com/gtfs/discovergoodwill-co-us/discovergoodwill-co-us--flex-v2.zip
https://data.trilliumtransit.com/gtfs/transfort-co-us/transfort-co-us--flex-v2.zip

All continuous_pickup and continuous_drop_off values in these feeds are 1 "NOT_AVAILABLE". @qcdyx could you have another look at this?

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.

Flex: forbidden_ continuous_pickup_or_drop_off
3 participants