Skip to content

feat: add safe_duration_factor and safe_duration_offset fields to trip schema - #2147

Merged
davidgamez merged 3 commits into
masterfrom
safe_duration
Apr 28, 2026
Merged

feat: add safe_duration_factor and safe_duration_offset fields to trip schema#2147
davidgamez merged 3 commits into
masterfrom
safe_duration

Conversation

@davidgamez

@davidgamez davidgamez commented Apr 27, 2026

Copy link
Copy Markdown
Member

Summary:

Add safe duration fields to trips.txt to provide better, flexible trip time estimates

Expected behavior:

The safe_duration_factor and safe_duration_offset are optional fields of the trip schema.

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 linked an issue Apr 27, 2026 that may be closed by this pull request
@github-actions

Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit b4c6443
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.

🛡️ 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.43 5.89 ⬆️+0.46
Median -- 1.60 1.93 ⬆️+0.32
Standard Deviation -- 19.44 24.61 ⬆️+5.17
Minimum in References Reports mdb-518 0.46 0.52 ⬆️+0.06
Maximum in Reference Reports mdb-2014 508.19 698.96 ⬆️+190.77
Minimum in Latest Reports mdb-1819 0.46 0.49 ⬆️+0.02
Maximum in Latest Reports mdb-2014 508.19 698.96 ⬆️+190.77
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 561.54 MiB 574.97 MiB ⬆️+13.43 MiB
Median -- 326.93 MiB 327.93 MiB ⬆️+1020.66 KiB
Standard Deviation -- 980.89 MiB 1.01 GiB ⬆️+50.86 MiB
Minimum in References Reports mdb-77 39.52 MiB 411.93 MiB ⬆️+372.40 MiB
Maximum in Reference Reports mdb-2393 9.10 GiB 9.67 GiB ⬆️+584.76 MiB
Minimum in Latest Reports mdb-628 415.93 MiB 39.04 MiB ⬇️-376.88 MiB
Maximum in Latest Reports mdb-2393 9.10 GiB 9.67 GiB ⬆️+584.76 MiB

@github-actions

Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 32e2f5c
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.

🛡️ 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.61 5.83 ⬆️+0.23
Median -- 1.62 1.87 ⬆️+0.25
Standard Deviation -- 22.55 21.96 ⬇️-0.60
Minimum in References Reports mdb-518 0.44 0.74 ⬆️+0.30
Maximum in Reference Reports mdb-2014 618.02 595.49 ⬇️-22.54
Minimum in Latest Reports mdb-1788 0.50 0.49 ⬇️-0.00
Maximum in Latest Reports mdb-2014 618.02 595.49 ⬇️-22.54
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 564.12 MiB 586.79 MiB ⬆️+22.67 MiB
Median -- 327.93 MiB 327.93 MiB ⬇️0 bytes
Standard Deviation -- 1000.27 MiB 1.06 GiB ⬆️+80.61 MiB
Minimum in References Reports mdb-68 39.14 MiB 403.93 MiB ⬆️+364.78 MiB
Maximum in Reference Reports mdb-2393 9.40 GiB 9.63 GiB ⬆️+232.70 MiB
Minimum in Latest Reports mdb-651 50.15 MiB 40.36 MiB ⬇️-9.79 MiB
Maximum in Latest Reports mdb-2393 9.40 GiB 9.63 GiB ⬆️+232.70 MiB

@github-actions

Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 455d97a
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 (1 out of 1001 datasets, ~0%) ✅

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

Dataset Notice Code
mdb-2014 csv_parsing_failed
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.

🛡️ 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.51 5.76 ⬆️+0.24
Median -- 1.62 1.89 ⬆️+0.27
Standard Deviation -- 20.35 20.37 ⬆️+0.02
Minimum in References Reports mdb-1819 0.48 0.57 ⬆️+0.09
Maximum in Reference Reports mdb-2014 542.60 541.83 ⬇️-0.77
Minimum in Latest Reports mdb-299 0.49 0.50 ⬆️+0.02
Maximum in Latest Reports mdb-2014 542.60 541.83 ⬇️-0.77
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 565.35 MiB 581.68 MiB ⬆️+16.33 MiB
Median -- 327.93 MiB 327.93 MiB ⬇️0 bytes
Standard Deviation -- 1004.48 MiB 1.04 GiB ⬆️+56.26 MiB
Minimum in References Reports mdb-651 40.31 MiB 50.21 MiB ⬆️+9.90 MiB
Maximum in Reference Reports mdb-2393 9.24 GiB 9.35 GiB ⬆️+108.54 MiB
Minimum in Latest Reports mdb-77 411.93 MiB 39.43 MiB ⬇️-372.50 MiB
Maximum in Latest Reports mdb-2393 9.24 GiB 9.35 GiB ⬆️+108.54 MiB

@davidgamez
davidgamez merged commit bd118bf into master Apr 28, 2026
103 checks passed
@davidgamez
davidgamez deleted the safe_duration branch April 28, 2026 15:56
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.

Safe duration fields

2 participants