Skip to content

fix: Added a shared in-progress VersionInfo returned to concurrent callers#2086

Merged
davidgamez merged 11 commits intomasterfrom
2021-missing-validatorversion-value-from-gtfs-validation-report
Feb 17, 2026
Merged

fix: Added a shared in-progress VersionInfo returned to concurrent callers#2086
davidgamez merged 11 commits intomasterfrom
2021-missing-validatorversion-value-from-gtfs-validation-report

Conversation

@qcdyx
Copy link
Copy Markdown
Contributor

@qcdyx qcdyx commented Jan 29, 2026

Summary:

Closes #2021

Expected behavior:
Keep and return a single shared “in‑progress” VersionInfo once resolution starts. Set the current version synchronously before kicking off the background fetch of the latest release. If another request arrives during resolution, it gets the same instance (already carrying currentVersion) instead of an empty one.

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 29, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

🚨 Code Formatting Issue 🚨

This contribution does not follow the conventions set by the Google Java Style Guide.

Please run the following command at the root of the project to fix formatting errors:

./gradlew spotlessApply
🗂️ Affected files
  • src/main/java/org/mobilitydata/gtfsvalidator/util/VersionResolver.java

Go to the Actions Dashboard to download the full Spotless output

@github-actions
Copy link
Copy Markdown
Contributor

🚨 Code Formatting Issue 🚨

This contribution does not follow the conventions set by the Google Java Style Guide.

Please run the following command at the root of the project to fix formatting errors:

./gradlew spotlessApply
🗂️ Affected files
  • src/main/java/org/mobilitydata/gtfsvalidator/util/VersionResolver.java

Go to the Actions Dashboard to download the full Spotless output

@qcdyx qcdyx marked this pull request as ready for review January 29, 2026 18:10
@github-actions
Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

16 out of 994 sources (~2 %) are corrupted.
Dataset Ref Report Exists Ref Report Readable Latest Report Exists Latest Report Readable
mdb-1114
mdb-1123
mdb-1332
mdb-1808
mdb-1953
mdb-227
mdb-383
mdb-55
mdb-606
mdb-609
mdb-655
mdb-780
mdb-789
mdb-806
mdb-9
mdb-907

⏱️ 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.06 5.19 ⬆️+0.13
Median -- 1.60 1.76 ⬆️+0.17
Standard Deviation -- 14.39 12.97 ⬇️-1.42
Minimum in References Reports mdb-1819 0.48 0.59 ⬆️+0.11
Maximum in Reference Reports mdb-2014 304.71 235.73 ⬇️-68.98
Minimum in Latest Reports mdb-1251 0.48 0.50 ⬆️+0.01
Maximum in Latest Reports mdb-2014 304.71 235.73 ⬇️-68.98
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 565.93 MiB 571.47 MiB ⬆️+5.53 MiB
Median -- 327.93 MiB 327.93 MiB ⬇️0 bytes
Standard Deviation -- 988.25 MiB 1.03 GiB ⬆️+65.86 MiB
Minimum in References Reports mdb-79 39.65 MiB 41.39 MiB ⬆️+1.75 MiB
Maximum in Reference Reports mdb-2393 8.86 GiB 9.47 GiB ⬆️+621.49 MiB
Minimum in Latest Reports mdb-77 415.93 MiB 41.02 MiB ⬇️-374.91 MiB
Maximum in Latest Reports mdb-2014 7.02 GiB 11.89 GiB ⬆️+4.88 GiB

Comment thread main/src/main/java/org/mobilitydata/gtfsvalidator/util/VersionResolver.java Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

🚨 Code Formatting Issue 🚨

This contribution does not follow the conventions set by the Google Java Style Guide.

Please run the following command at the root of the project to fix formatting errors:

./gradlew spotlessApply
🗂️ Affected files
  • src/main/java/org/mobilitydata/gtfsvalidator/web/service/util/ValidationHandler.java

Go to the Actions Dashboard to download the full Spotless output

@qcdyx qcdyx requested a review from davidgamez February 9, 2026 21:33
@github-actions
Copy link
Copy Markdown
Contributor

🚨 Code Formatting Issue 🚨

This contribution does not follow the conventions set by the Google Java Style Guide.

Please run the following command at the root of the project to fix formatting errors:

./gradlew spotlessApply
🗂️ Affected files
  • src/main/java/org/mobilitydata/gtfsvalidator/validator/StopTimesTripBlockOrderValidator.java
  • src/test/java/org/mobilitydata/gtfsvalidator/validator/StopTimesTripBlockOrderValidatorTest.java

Go to the Actions Dashboard to download the full Spotless output

@github-actions
Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

New Errors (1 out of 987 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
Dropped Errors (0 out of 987 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

16 out of 1003 sources (~2 %) are corrupted.
Dataset Ref Report Exists Ref Report Readable Latest Report Exists Latest Report Readable
mdb-1114
mdb-1123
mdb-1332
mdb-1808
mdb-1953
mdb-227
mdb-383
mdb-55
mdb-606
mdb-609
mdb-655
mdb-780
mdb-789
mdb-806
mdb-9
mdb-907

⏱️ 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.31 5.50 ⬆️+0.19
Median -- 1.53 1.67 ⬆️+0.14
Standard Deviation -- 21.96 21.01 ⬇️-0.95
Minimum in References Reports mdb-518 0.44 0.50 ⬆️+0.06
Maximum in Reference Reports mdb-2014 604.66 566.14 ⬇️-38.52
Minimum in Latest Reports mdb-1105 0.47 0.45 ⬇️-0.02
Maximum in Latest Reports mdb-2014 604.66 566.14 ⬇️-38.52
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 565.00 MiB 572.19 MiB ⬆️+7.18 MiB
Median -- 327.93 MiB 331.93 MiB ⬆️+4.00 MiB
Standard Deviation -- 1001.10 MiB 1.01 GiB ⬆️+29.20 MiB
Minimum in References Reports mdb-79 39.64 MiB 39.61 MiB ⬇️-23.85 KiB
Maximum in Reference Reports mdb-2393 9.58 GiB 9.58 GiB ⬆️+917.95 KiB
Minimum in Latest Reports mdb-79 39.64 MiB 39.61 MiB ⬇️-23.85 KiB
Maximum in Latest Reports mdb-2393 9.58 GiB 9.58 GiB ⬆️+917.95 KiB

@github-actions
Copy link
Copy Markdown
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

16 out of 1003 sources (~2 %) are corrupted.
Dataset Ref Report Exists Ref Report Readable Latest Report Exists Latest Report Readable
mdb-1114
mdb-1123
mdb-1332
mdb-1808
mdb-1953
mdb-227
mdb-383
mdb-55
mdb-606
mdb-609
mdb-655
mdb-780
mdb-789
mdb-806
mdb-9
mdb-907

⏱️ 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.09 5.64 ⬆️+0.55
Median -- 1.61 1.85 ⬆️+0.24
Standard Deviation -- 13.05 19.04 ⬆️+6.00
Minimum in References Reports mdb-1817 0.45 0.50 ⬆️+0.05
Maximum in Reference Reports mdb-2014 215.21 487.61 ⬆️+272.40
Minimum in Latest Reports mdb-1788 0.46 0.49 ⬆️+0.03
Maximum in Latest Reports mdb-2014 215.21 487.61 ⬆️+272.40
📜 Memory Consumption
Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 575.32 MiB 554.94 MiB ⬇️-20.38 MiB
Median -- 327.93 MiB 327.93 MiB ⬇️0 bytes
Standard Deviation -- 1.00 GiB 953.83 MiB ⬇️-74.09 MiB
Minimum in References Reports mdb-1812 41.30 MiB 411.93 MiB ⬆️+370.63 MiB
Maximum in Reference Reports mdb-2014 11.83 GiB 9.45 GiB ⬇️-2.39 GiB
Minimum in Latest Reports mdb-77 411.93 MiB 39.36 MiB ⬇️-372.56 MiB
Maximum in Latest Reports mdb-2014 11.83 GiB 9.45 GiB ⬇️-2.39 GiB

Copy link
Copy Markdown
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!

@davidgamez davidgamez merged commit 11396ce into master Feb 17, 2026
108 checks passed
@davidgamez davidgamez deleted the 2021-missing-validatorversion-value-from-gtfs-validation-report branch February 17, 2026 20:12
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.

Missing validatorVersion value from GTFS validation report

2 participants