Skip to content

fix: discard circular trips when trip_headsign matches intermediate stop name#2150

Merged
davidgamez merged 2 commits intomasterfrom
fix/tripheadsign_circular_trip
Apr 29, 2026
Merged

fix: discard circular trips when trip_headsign matches intermediate stop name#2150
davidgamez merged 2 commits intomasterfrom
fix/tripheadsign_circular_trip

Conversation

@davidgamez
Copy link
Copy Markdown
Member

@davidgamez davidgamez commented Apr 29, 2026

Summary:
Related to #2139

This PR discards circular trips when the trip_headsign matches the intermediate stop name.

Expected behavior:

The trip_headsign_matches_intermediate_stop notice should not be triggered

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)

@davidgamez davidgamez marked this pull request as ready for review April 29, 2026 15:53
@github-actions
Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

New Info Notices (0 out of 1001 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Info Notices (95 out of 1001 datasets, ~9%) ❌

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

Dataset Notice Code
mdb-1027 trip_headsign_matches_intermediate_stop
mdb-1031 trip_headsign_matches_intermediate_stop
mdb-1059 trip_headsign_matches_intermediate_stop
mdb-1063 trip_headsign_matches_intermediate_stop
mdb-1066 trip_headsign_matches_intermediate_stop
mdb-1077 trip_headsign_matches_intermediate_stop
mdb-1144 trip_headsign_matches_intermediate_stop
mdb-1154 trip_headsign_matches_intermediate_stop
mdb-1224 trip_headsign_matches_intermediate_stop
mdb-1227 trip_headsign_matches_intermediate_stop
mdb-1272 trip_headsign_matches_intermediate_stop
mdb-1292 trip_headsign_matches_intermediate_stop
mdb-1791 trip_headsign_matches_intermediate_stop
mdb-1835 trip_headsign_matches_intermediate_stop
mdb-1909 trip_headsign_matches_intermediate_stop
mdb-1915 trip_headsign_matches_intermediate_stop
mdb-1918 trip_headsign_matches_intermediate_stop
mdb-1919 trip_headsign_matches_intermediate_stop
mdb-1931 trip_headsign_matches_intermediate_stop
mdb-1933 trip_headsign_matches_intermediate_stop
mdb-1938 trip_headsign_matches_intermediate_stop
mdb-1939 trip_headsign_matches_intermediate_stop
mdb-1948 trip_headsign_matches_intermediate_stop
mdb-1949 trip_headsign_matches_intermediate_stop
mdb-1951 trip_headsign_matches_intermediate_stop
mdb-1952 trip_headsign_matches_intermediate_stop
mdb-2008 trip_headsign_matches_intermediate_stop
mdb-2027 trip_headsign_matches_intermediate_stop
mdb-2094 trip_headsign_matches_intermediate_stop
mdb-2106 trip_headsign_matches_intermediate_stop
mdb-2135 trip_headsign_matches_intermediate_stop
mdb-220 trip_headsign_matches_intermediate_stop
mdb-2212 trip_headsign_matches_intermediate_stop
mdb-228 trip_headsign_matches_intermediate_stop
mdb-2333 trip_headsign_matches_intermediate_stop
mdb-2337 trip_headsign_matches_intermediate_stop
mdb-2345 trip_headsign_matches_intermediate_stop
mdb-2385 trip_headsign_matches_intermediate_stop
mdb-2387 trip_headsign_matches_intermediate_stop
mdb-2393 trip_headsign_matches_intermediate_stop
mdb-2449 trip_headsign_matches_intermediate_stop
mdb-2508 trip_headsign_matches_intermediate_stop
mdb-2579 trip_headsign_matches_intermediate_stop
mdb-2651 trip_headsign_matches_intermediate_stop
mdb-2661 trip_headsign_matches_intermediate_stop
mdb-2762 trip_headsign_matches_intermediate_stop
mdb-2765 trip_headsign_matches_intermediate_stop
mdb-2771 trip_headsign_matches_intermediate_stop
mdb-2773 trip_headsign_matches_intermediate_stop
mdb-2774 trip_headsign_matches_intermediate_stop
mdb-2792 trip_headsign_matches_intermediate_stop
mdb-2798 trip_headsign_matches_intermediate_stop
mdb-28 trip_headsign_matches_intermediate_stop
mdb-2802 trip_headsign_matches_intermediate_stop
mdb-2818 trip_headsign_matches_intermediate_stop
mdb-2820 trip_headsign_matches_intermediate_stop
mdb-2821 trip_headsign_matches_intermediate_stop
mdb-2825 trip_headsign_matches_intermediate_stop
mdb-2832 trip_headsign_matches_intermediate_stop
mdb-2836 trip_headsign_matches_intermediate_stop
mdb-2839 trip_headsign_matches_intermediate_stop
mdb-2841 trip_headsign_matches_intermediate_stop
mdb-2867 trip_headsign_matches_intermediate_stop
mdb-2904 trip_headsign_matches_intermediate_stop
mdb-2908 trip_headsign_matches_intermediate_stop
mdb-2911 trip_headsign_matches_intermediate_stop
mdb-43 trip_headsign_matches_intermediate_stop
mdb-59 trip_headsign_matches_intermediate_stop
mdb-61 trip_headsign_matches_intermediate_stop
mdb-643 trip_headsign_matches_intermediate_stop
mdb-646 trip_headsign_matches_intermediate_stop
mdb-655 trip_headsign_matches_intermediate_stop
mdb-668 trip_headsign_matches_intermediate_stop
mdb-75 trip_headsign_matches_intermediate_stop
mdb-763 trip_headsign_matches_intermediate_stop
mdb-770 trip_headsign_matches_intermediate_stop
mdb-771 trip_headsign_matches_intermediate_stop
mdb-774 trip_headsign_matches_intermediate_stop
mdb-779 trip_headsign_matches_intermediate_stop
mdb-78 trip_headsign_matches_intermediate_stop
mdb-781 trip_headsign_matches_intermediate_stop
mdb-782 trip_headsign_matches_intermediate_stop
mdb-783 trip_headsign_matches_intermediate_stop
mdb-791 trip_headsign_matches_intermediate_stop
mdb-792 trip_headsign_matches_intermediate_stop
mdb-794 trip_headsign_matches_intermediate_stop
mdb-8 trip_headsign_matches_intermediate_stop
mdb-892 trip_headsign_matches_intermediate_stop
mdb-895 trip_headsign_matches_intermediate_stop
mdb-898 trip_headsign_matches_intermediate_stop
mdb-9 trip_headsign_matches_intermediate_stop
mdb-900 trip_headsign_matches_intermediate_stop
mdb-904 trip_headsign_matches_intermediate_stop
mdb-978 trip_headsign_matches_intermediate_stop
mdb-986 trip_headsign_matches_intermediate_stop

🛡️ Corruption Check

2 out of 1003 sources (~0 %) are corrupted.
Dataset Ref Report Exists Ref Report Readable Latest Report Exists Latest Report Readable
mdb-1114
mdb-1123
🔍 System errors for mdb-1114 (reference)
[
  {
    "code": "i_o_error",
    "severity": "ERROR",
    "totalNotices": 1,
    "sampleNotices": [
      {
        "exception": "java.util.zip.ZipException",
        "message": "Archive is not a ZIP archive"
      }
    ]
  }
]
🔍 System errors for mdb-1114 (latest)
[
  {
    "code": "i_o_error",
    "severity": "ERROR",
    "totalNotices": 1,
    "sampleNotices": [
      {
        "exception": "java.util.zip.ZipException",
        "message": "Archive is not a ZIP archive"
      }
    ]
  }
]
🔍 System errors for mdb-1123 (reference)
[
  {
    "code": "i_o_error",
    "severity": "ERROR",
    "totalNotices": 1,
    "sampleNotices": [
      {
        "exception": "java.util.zip.ZipException",
        "message": "Archive is not a ZIP archive"
      }
    ]
  }
]
🔍 System errors for mdb-1123 (latest)
[
  {
    "code": "i_o_error",
    "severity": "ERROR",
    "totalNotices": 1,
    "sampleNotices": [
      {
        "exception": "java.util.zip.ZipException",
        "message": "Archive is not a ZIP archive"
      }
    ]
  }
]

💾 Out of Memory Check

No datasets experienced an OutOfMemoryError.

⏱️ 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 -- 5.58 5.81 ⬆️+0.23
Median -- 1.60 1.88 ⬆️+0.28
Standard Deviation -- 21.51 21.70 ⬆️+0.19
Minimum in References Reports mdb-1788 0.47 0.48 ⬆️+0.01
Maximum in Reference Reports mdb-2014 580.92 587.99 ⬆️+7.07
Minimum in Latest Reports mdb-1788 0.47 0.48 ⬆️+0.01
Maximum in Latest Reports mdb-2014 580.92 587.99 ⬆️+7.07
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 594.04 MiB 577.17 MiB ⬇️-16.87 MiB
Median -- 327.93 MiB 327.93 MiB ⬇️0 bytes
Standard Deviation -- 1.07 GiB 1.02 GiB ⬇️-59.62 MiB
Minimum in References Reports mdb-2034 38.64 MiB 395.93 MiB ⬆️+357.28 MiB
Maximum in Reference Reports mdb-2393 10.20 GiB 9.55 GiB ⬇️-672.24 MiB
Minimum in Latest Reports mdb-77 52.03 MiB 39.52 MiB ⬇️-12.50 MiB
Maximum in Latest Reports mdb-2393 10.20 GiB 9.55 GiB ⬇️-672.24 MiB

@davidgamez davidgamez requested review from emmambd and skalexch April 29, 2026 17:01
@davidgamez davidgamez merged commit a72383d into master Apr 29, 2026
104 of 111 checks passed
@davidgamez davidgamez deleted the fix/tripheadsign_circular_trip branch April 29, 2026 17:34
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.

3 participants