fix: acceptance tests keep dropping errors for missing_required_column#2007
fix: acceptance tests keep dropping errors for missing_required_column#2007davidgamez merged 3 commits intomasterfrom
Conversation
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit 8df6f0b 📊 Notices ComparisonNew Errors (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check25 out of 1827 sources (~1 %) are corrupted.
⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
|
The acceptance test report shows an increased number of corrupted files. This is expected, as before, the report missed the feeds failing to download. Those feeds have a report JSON generated without notices and system errors with notices. |
|
Should we add to the |
The cause might be different than just downloading the file. Any runtime exception that exits the validation process will count as |
...ain/java/org/mobilitydata/gtfsvalidator/outputcomparator/cli/ValidationReportComparator.java
Outdated
Show resolved
Hide resolved
Created a follow-up issue |
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit f1dfa6a 📊 Notices ComparisonNew Errors (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1802 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check25 out of 1827 sources (~1 %) are corrupted.
⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
Summary:
Feeds that failed to download or process with runtime exceptions were not marked as corrupted.
Expected behavior:
All feeds that failed to download or process with system error notices are marked as corrupted.
Closes: #2005
From our AI friend
This pull request introduces several changes to the
output-comparatormodule, primarily focused on enhancing the handling of system errors in validation reports. The key modifications include adding new command-line parameters for system error files, updating methods to accommodate these parameters, and improving error handling logic.Enhancements to command-line arguments and parameters:
output-comparator/src/main/java/org/mobilitydata/gtfsvalidator/outputcomparator/cli/Arguments.java: Added constants for system error file names and new command-line parametersreference_system_errors_nameandlatest_system_errors_name. [1] [2]Improved error handling and validation logic:
output-comparator/src/main/java/org/mobilitydata/gtfsvalidator/outputcomparator/cli/Arguments.java: Added getter and setter methods for the new system error file parameters.output-comparator/src/main/java/org/mobilitydata/gtfsvalidator/outputcomparator/cli/ValidationReportComparator.java: Updated thecompareValidationRunsmethod to include paths for the system error files and improved error handling by introducing thehasSystemErrorsmethod. [1] [2] [3]Please make sure these boxes are checked before submitting your pull request - thanks!
gradle testto make sure you didn't break anything