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

Merged
merged 20 commits into from
Jan 28, 2025

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
qcdyx added 3 commits January 13, 2025 16:24
…github.com:MobilityData/gtfs-validator into 1814-flex-forbidden_-continuous_pickup_or_drop_off
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?

Copy link
Contributor

This contribution does not follow the conventions set by the Google Java style guide. Please run the following command line at the root of the project to fix formatting errors: ./gradlew goJF.

@qcdyx
Copy link
Contributor Author

qcdyx commented Jan 17, 2025

Hello @tzujenchanmbd, I noticed that when both values are set to 1, the logic still passes the condition <routes.continuous_pickup OR routes.continuous_drop_off are NOT 1 or empty>. To address this, I updated the logic to

ERROR:
Generate if
routes.continuous_pickup OR routes.continuous_drop_off are 2,3
AND
stop_times.start_pickup_drop_off_window OR
stop_times.end_pickup_drop_off_window

like what @emmambd suggested as the description of the notice.

I tested the otterexpress dataset, the validation result looks good.
image

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 7dcb169
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

No changes were detected due to the code change.

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.63 3.84 ⬆️+0.20
Median -- 1.33 1.42 ⬆️+0.08
Standard Deviation -- 10.54 10.59 ⬆️+0.04
Minimum in References Reports us-oregon-high-desert-point-gtfs-636 0.48 0.52 ⬆️+0.04
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 285.14 286.60 ⬆️+1.46
Minimum in Latest Reports us-massachusetts-massachusetts-area-express-max-gtfs-431 0.60 0.47 ⬇️-0.13
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 285.14 286.60 ⬆️+1.46
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 471.82 MiB 457.52 MiB ⬇️-14.31 MiB
Median -- 332.32 MiB 333.92 MiB ⬆️+1.61 MiB
Standard Deviation -- 801.70 MiB 734.35 MiB ⬇️-67.35 MiB
Minimum in References Reports mexico-jalisco-direccion-general-de-transporte-publico-de-puerto-vallarta-gtfs-2034 38.54 MiB 387.92 MiB ⬆️+349.39 MiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.68 GiB 10.39 GiB ⬇️-295.68 MiB
Minimum in Latest Reports us-california-redding-area-bus-authority-raba-gtfs-114 38.79 MiB 38.79 MiB ⬆️+408 bytes
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.68 GiB 10.39 GiB ⬇️-295.68 MiB

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 75bb490
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

No changes were detected due to the code change.

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.59 3.76 ⬆️+0.16
Median -- 1.30 1.40 ⬆️+0.10
Standard Deviation -- 10.44 10.32 ⬇️-0.12
Minimum in References Reports us-florida-citrus-county-transit-gtfs-630 0.46 3.60 ⬆️+3.14
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 288.50 277.93 ⬇️-10.57
Minimum in Latest Reports us-california-flex-v2-developer-test-feed-2-gtfs-1818 0.52 0.47 ⬇️-0.05
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 288.50 277.93 ⬇️-10.57
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 466.61 MiB 456.55 MiB ⬇️-10.06 MiB
Median -- 331.92 MiB 331.92 MiB ⬇️0 bytes
Standard Deviation -- 772.23 MiB 733.00 MiB ⬇️-39.23 MiB
Minimum in References Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 38.13 MiB 38.35 MiB ⬆️+224.08 KiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.40 GiB 10.62 GiB ⬆️+226.91 MiB
Minimum in Latest Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 38.13 MiB 38.35 MiB ⬆️+224.08 KiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.40 GiB 10.62 GiB ⬆️+226.91 MiB

boolean continuous =
(route.continuousPickup() == GtfsContinuousPickupDropOff.MUST_PHONE
|| route.continuousPickup() == GtfsContinuousPickupDropOff.ON_REQUEST_TO_DRIVER)
|| (route.continuousPickup() == GtfsContinuousPickupDropOff.MUST_PHONE

Choose a reason for hiding this comment

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

Looks like duplicate checks for route.continuousPickup()?

Perhaps route.continuousDropOff() instead of route.continuousPickup() here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 457aff0
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

No changes were detected due to the code change.

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.61 3.68 ⬆️+0.07
Median -- 1.32 1.36 ⬆️+0.03
Standard Deviation -- 10.38 10.32 ⬇️-0.06
Minimum in References Reports ar-buenos-aires-subterraneos-de-buenos-aires-subte-gtfs-6 0.47 0.55 ⬆️+0.09
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 282.65 277.09 ⬇️-5.56
Minimum in Latest Reports us-oregon-hut-airport-shuttle-gtfs-635 0.49 0.48 ⬇️-0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 282.65 277.09 ⬇️-5.56
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 462.14 MiB 460.49 MiB ⬇️-1.65 MiB
Median -- 331.92 MiB 333.92 MiB ⬆️+2.00 MiB
Standard Deviation -- 755.55 MiB 738.12 MiB ⬇️-17.42 MiB
Minimum in References Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 38.32 MiB 38.38 MiB ⬆️+64.03 KiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.46 GiB 10.69 GiB ⬆️+236.26 MiB
Minimum in Latest Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 38.32 MiB 38.38 MiB ⬆️+64.03 KiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.46 GiB 10.69 GiB ⬆️+236.26 MiB

Copy link
Contributor

This contribution does not follow the conventions set by the Google Java style guide. Please run the following command line at the root of the project to fix formatting errors: ./gradlew goJF.

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 5d08853
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

No changes were detected due to the code change.

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.63 3.71 ⬆️+0.08
Median -- 1.34 1.36 ⬆️+0.03
Standard Deviation -- 10.32 10.40 ⬆️+0.08
Minimum in References Reports us-california-city-of-wasco-gtfs-1788 0.43 0.47 ⬆️+0.04
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 275.71 278.07 ⬆️+2.36
Minimum in Latest Reports us-virginia-jaunt-inc-gtfs-1324 0.50 0.46 ⬇️-0.04
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 275.71 278.07 ⬆️+2.36
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 462.72 MiB 462.17 MiB ⬇️-565.63 KiB
Median -- 334.40 MiB 333.92 MiB ⬇️-488.83 KiB
Standard Deviation -- 746.14 MiB 747.32 MiB ⬆️+1.18 MiB
Minimum in References Reports mexico-jalisco-direccion-general-de-transporte-publico-de-puerto-vallarta-gtfs-2034 38.53 MiB 383.92 MiB ⬆️+345.39 MiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.66 GiB 10.69 GiB ⬆️+29.07 MiB
Minimum in Latest Reports us-massachusetts-marthas-vineyard-transit-authority-gtfs-420 39.85 MiB 39.86 MiB ⬆️+4.08 KiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.66 GiB 10.69 GiB ⬆️+29.07 MiB

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 5399f64
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

No changes were detected due to the code change.

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.59 3.69 ⬆️+0.10
Median -- 1.33 1.36 ⬆️+0.03
Standard Deviation -- 10.15 10.36 ⬆️+0.21
Minimum in References Reports us-oregon-high-desert-point-gtfs-636 0.48 0.52 ⬆️+0.03
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 273.64 274.68 ⬆️+1.04
Minimum in Latest Reports us-massachusetts-massachusetts-area-express-max-gtfs-431 0.50 0.51 ⬆️+0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 273.64 274.68 ⬆️+1.04
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 453.66 MiB 460.78 MiB ⬆️+7.12 MiB
Median -- 333.92 MiB 331.92 MiB ⬇️-2.00 MiB
Standard Deviation -- 702.34 MiB 740.17 MiB ⬆️+37.83 MiB
Minimum in References Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 38.16 MiB 69.27 MiB ⬆️+31.11 MiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.44 GiB 10.44 GiB ⬆️+2.86 MiB
Minimum in Latest Reports us-iowa-sioux-city-transit-system-gtfs-191 411.92 MiB 39.20 MiB ⬇️-372.72 MiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.44 GiB 10.44 GiB ⬆️+2.86 MiB

@qcdyx qcdyx requested a review from davidgamez January 22, 2025 17:56
@davidgamez
Copy link
Member

[suggestion]: The potential cause of the notice is not just in the routes.txt file, it also involves the stop_times.txt. We are referencing the startPickupDropOffWindow and the endPickupDropOffWindow in the notice without providing the row reference to fix it. Only route CVS row is provided. I think you should add the stop_times.txt csv row number to help the producer identify/fix the issue. cc: @emmambd

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit d38a6ed
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (0 out of 1801 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Errors (0 out of 1801 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1801 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.60 3.66 ⬆️+0.06
Median -- 1.30 1.36 ⬆️+0.06
Standard Deviation -- 10.47 10.53 ⬆️+0.07
Minimum in References Reports us-massachusetts-massachusetts-area-express-max-gtfs-431 0.47 0.51 ⬆️+0.05
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 283.99 288.17 ⬆️+4.18
Minimum in Latest Reports us-california-flex-v2-developer-test-feed-1-gtfs-1817 0.49 0.48 ⬇️-0.00
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 283.99 288.17 ⬆️+4.18
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 462.18 MiB 455.75 MiB ⬇️-6.44 MiB
Median -- 331.92 MiB 333.92 MiB ⬆️+2.00 MiB
Standard Deviation -- 741.41 MiB 702.68 MiB ⬇️-38.73 MiB
Minimum in References Reports us-california-redding-area-bus-authority-raba-gtfs-114 38.79 MiB 43.38 MiB ⬆️+4.59 MiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.51 GiB 10.81 GiB ⬆️+310.48 MiB
Minimum in Latest Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 415.92 MiB 38.22 MiB ⬇️-377.70 MiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.51 GiB 10.81 GiB ⬆️+310.48 MiB

Copy link
Member

@davidgamez davidgamez left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 4bb4dd7
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (0 out of 1801 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Errors (0 out of 1801 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1801 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.65 3.74 ⬆️+0.09
Median -- 1.35 1.40 ⬆️+0.05
Standard Deviation -- 10.63 10.86 ⬆️+0.22
Minimum in References Reports us-california-city-of-wasco-gtfs-1788 0.49 0.54 ⬆️+0.05
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 288.20 299.58 ⬆️+11.37
Minimum in Latest Reports ar-buenos-aires-subterraneos-de-buenos-aires-subte-gtfs-6 0.53 0.49 ⬇️-0.05
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 288.20 299.58 ⬆️+11.37
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 468.30 MiB 464.95 MiB ⬇️-3.36 MiB
Median -- 331.92 MiB 331.92 MiB ⬇️0 bytes
Standard Deviation -- 771.81 MiB 757.31 MiB ⬇️-14.50 MiB
Minimum in References Reports us-pennsylvania-monroe-county-transportation-authority-mcta-gtfs-523 38.30 MiB 359.92 MiB ⬆️+321.63 MiB
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.48 GiB 10.66 GiB ⬆️+186.28 MiB
Minimum in Latest Reports ro-vrancea-consiliul-judetean-vrancea-gtfs-1984 40.05 MiB 38.22 MiB ⬇️-1.83 MiB
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 10.48 GiB 10.66 GiB ⬆️+186.28 MiB

@davidgamez davidgamez merged commit 2fa6883 into master Jan 28, 2025
140 checks passed
@davidgamez davidgamez deleted the 1814-flex-forbidden_-continuous_pickup_or_drop_off branch January 28, 2025 19:59
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
4 participants