-
Notifications
You must be signed in to change notification settings - Fork 112
fix: web validator logging #2026
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
Conversation
📝 Acceptance Test Report📋 Summary❌ The rule acceptance test has failed for commit 001ef6f 📊 Notices ComparisonNew Errors (0 out of 1866 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1866 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1866 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1866 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check55 out of 1921 sources (~3 %) are corrupted.
⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit 001ef6f 📊 Notices ComparisonNew Errors (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check35 out of 1921 sources (~2 %) are corrupted.
⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
qcdyx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit 07bae2a 📊 Notices ComparisonNew Errors (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1886 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check35 out of 1921 sources (~2 %) are corrupted.
⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
Summary:
Closes #1507
The main changes in this PR are:
Minor changes:
From our AI friend
This pull request includes changes to improve logging, enhance error handling, and configure the application for better observability and maintainability. The key updates involve refining logging levels, adding structured logging with MDC, introducing safe file deletion methods, and updating configuration files for logging and application profiles.
Logging Improvements:
INFOtoFINESTinMemoryUsageRegisterandVersionResolverto reduce verbosity for less critical messages. [1] [2]StorageHelperandValidationHandlerto useDEBUGlevel instead ofINFOfor non-critical logs, and added structured logging for better traceability. [1] [2] [3] [4]logback-spring.xmlby settingWARNlevels for specific packages and renamed the file for Spring compatibility. [1] [2]Structured Logging with MDC:
MDC(Mapped Diagnostic Context) toValidationControllerto includejob_idin logs for better traceability of validation jobs. [1] [2] [3] [4]Error Handling and Resource Management:
safeDeleteFilemethod inValidationControllerto handle file deletion safely and log any errors encountered during the process.Configuration Enhancements:
LoggingBridgeConfigclass to bridge Java Util Logging (JUL) to SLF4J, ensuring consistent logging across the application.Dockerfileto include new environment variables for Spring profiles, banner mode, and Sentry logging configuration.Testing Updates:
RunValidatorEndpointTestto verify the existence and deletion of temporary files, ensuring robust cleanup after tests. [1] [2]Expected behavior:
Logs are JSON formatted for the cloud profile. Local profile is not affected.
Please make sure these boxes are checked before submitting your pull request - thanks!
gradle testto make sure you didn't break anything