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: 1791 feed infotxt should be added to missing required file when translationstxt exists #1803

Conversation

qcdyx
Copy link
Contributor

@qcdyx qcdyx commented Aug 23, 2024

Summary:

Closes #1791
Expected behavior:

  1. when translations.txt exists, if there's no feed_info.txt, create missing required file notice.
image
  1. when there's no translation.txt, and no feed_info.txt either, create missing recommended file notice.
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)

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_required_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_required_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_required_file
gr-thessaloniki-trainose-gtfs-1161 missing_required_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_required_file
in-kerala-kochi-metro-gtfs-1209 missing_required_file
Dropped Errors (0 out of 1563 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_recommended_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_recommended_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_recommended_file
gr-thessaloniki-trainose-gtfs-1161 missing_recommended_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_recommended_file
in-kerala-kochi-metro-gtfs-1209 missing_recommended_file

🛡️ Corruption Check

0 out of 1563 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.87 3.96 ⬆️+0.09
Median -- 1.37 1.43 ⬆️+0.06
Standard Deviation -- 10.98 10.97 ⬇️-0.00
Minimum in References Reports us-oregon-hut-airport-shuttle-gtfs-635 0.49 0.61 ⬆️+0.12
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 308.29 304.87 ⬇️-3.42
Minimum in Latest Reports us-california-flex-v2-developer-test-feed-3-gtfs-1819 0.51 0.54 ⬆️+0.03
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 308.29 304.87 ⬇️-3.42

@jcpitre
Copy link
Contributor

jcpitre commented Aug 26, 2024

Maybe you could add some tests?

@davidgamez
Copy link
Member

I think we can follow an already implemented pattern for the conditionally required files. Example: calendar.txt.
Main steps:

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_required_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_required_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_required_file
gr-thessaloniki-trainose-gtfs-1161 missing_required_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_required_file
in-kerala-kochi-metro-gtfs-1209 missing_required_file
Dropped Errors (0 out of 1563 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_recommended_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_recommended_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_recommended_file
gr-thessaloniki-trainose-gtfs-1161 missing_recommended_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_recommended_file
in-kerala-kochi-metro-gtfs-1209 missing_recommended_file

🛡️ Corruption Check

0 out of 1563 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.91 3.98 ⬆️+0.07
Median -- 1.35 1.43 ⬆️+0.08
Standard Deviation -- 11.36 11.44 ⬆️+0.08
Minimum in References Reports us-california-flex-v2-developer-test-feed-2-gtfs-1818 0.49 0.49 ⬆️+0.00
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 322.79 326.75 ⬆️+3.96
Minimum in Latest Reports us-massachusetts-massachusetts-area-express-max-gtfs-431 0.51 0.48 ⬇️-0.03
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 322.79 326.75 ⬆️+3.96

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

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 3a4dbdc
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_required_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_required_file
Dropped Errors (0 out of 1563 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_recommended_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_recommended_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_recommended_file
gr-thessaloniki-trainose-gtfs-1161 missing_recommended_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_recommended_file
in-kerala-kochi-metro-gtfs-1209 missing_recommended_file

🛡️ Corruption Check

0 out of 1563 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.88 3.93 ⬆️+0.05
Median -- 1.36 1.39 ⬆️+0.03
Standard Deviation -- 11.25 11.31 ⬆️+0.05
Minimum in References Reports au-tasmania-merseylink-gtfs-1251 0.49 0.53 ⬆️+0.04
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 319.14 321.98 ⬆️+2.83
Minimum in Latest Reports us-oregon-high-desert-point-gtfs-636 0.52 0.53 ⬆️+0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 319.14 321.98 ⬆️+2.83

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 0b27d1c
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_required_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_required_file
Dropped Errors (0 out of 1563 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_recommended_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_recommended_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_recommended_file
gr-thessaloniki-trainose-gtfs-1161 missing_recommended_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_recommended_file
in-kerala-kochi-metro-gtfs-1209 missing_recommended_file

🛡️ Corruption Check

0 out of 1563 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.90 3.96 ⬆️+0.05
Median -- 1.35 1.40 ⬆️+0.05
Standard Deviation -- 11.56 11.34 ⬇️-0.22
Minimum in References Reports us-california-flex-v2-developer-test-feed-2-gtfs-1818 0.51 0.54 ⬆️+0.02
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 333.57 321.36 ⬇️-12.21
Minimum in Latest Reports us-california-city-of-wasco-gtfs-1788 0.54 0.53 ⬇️-0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 333.57 321.36 ⬇️-12.21

@qcdyx qcdyx requested review from davidgamez and jcpitre August 27, 2024 20:06
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 qcdyx merged commit ada0b25 into master Aug 28, 2024
333 checks passed
@qcdyx qcdyx deleted the 1791-feed_infotxt-should-be-added-to-missing_required_file-when-translationstxt-exists branch August 28, 2024 14:45
Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_required_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_required_file
Dropped Errors (0 out of 1564 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

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

Dataset Notice Code
ae-abu-dhabi-emirate-department-of-municipalities-and-transport-gtfs-1329 missing_recommended_file
be-bruxelles-capitale-societe-des-transports-intercommunaux-de-bruxellesmaatschappij-voor-het-intercommunaal-vervoer-te-brussel-stibmivb-gtfs-1088 missing_recommended_file
be-unknown-societe-nationale-des-chemins-de-fer-belges-nmbs-sncb-gtfs-686 missing_recommended_file
gr-thessaloniki-trainose-gtfs-1161 missing_recommended_file
il-unknown-ministry-of-transport-and-road-safety-gtfs-1134 missing_recommended_file
in-kerala-kochi-metro-gtfs-1209 missing_recommended_file

🛡️ Corruption Check

0 out of 1564 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.89 3.95 ⬆️+0.06
Median -- 1.35 1.41 ⬆️+0.06
Standard Deviation -- 11.38 11.44 ⬆️+0.06
Minimum in References Reports ph-unknown-hm-transport-inc-and-robinsons-malls-gtfs-1105 0.49 0.60 ⬆️+0.11
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 326.42 329.04 ⬆️+2.62
Minimum in Latest Reports us-california-flex-v2-developer-test-feed-3-gtfs-1819 0.49 0.49 ⬇️-0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 326.42 329.04 ⬆️+2.62

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.

feed_info.txt should be added to missing_required_file when translations.txt exists
3 participants