-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Expose accumulated metrics #813
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
base: main
Are you sure you want to change the base?
Conversation
📜 Docstring Coverage ReportRESULT: PASSED (minimum: 30.0%, actual: 75.5%) Detailed Coverage Report |
📦 Trivy Vulnerability Scan Results
Report Summary
Scan Result Details✅ No vulnerabilities found during the scan for |
📦 Trivy Secret Scan Results
Report Summary
Scan Result Details✅ No secrets found during the scan for |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
|
🛠 Full Test Coverage Report: https://k.atlan.dev/coverage/application-sdk/pr/813 |
|
🛠 Docs available at: https://k.atlan.dev/application-sdk/APP-8299 |
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.
Bug: Update Test for File Handling Changes
The test expects file to be opened with mode "w" and path /test/path/statistics.json.ignore, but the implementation now uses mode "wb" and path /test/path/statistics/statistics.json.ignore. The test needs updating to match the new implementation.
tests/unit/outputs/test_output.py#L139-L140
application-sdk/tests/unit/outputs/test_output.py
Lines 139 to 140 in 7ecb605
| } | |
| mock_file.assert_called_once_with("/test/path/statistics.json.ignore", "w") |
akshay-vishwanath27
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
📦 Example workflows test results
|
📦 Example workflows test results
|
📦 Example workflows test results
|
442b9e9
Changelog
Additional context (e.g. screenshots, logs, links)
Checklist
Copyleft License Compliance
Note
Routes typename into statistics and writes stats under output_path/statistics (with optional chunk-specific filenames), updating SQL transform call and unit tests accordingly.
Output.get_statisticsnow forwardstypenametowrite_statistics.Output.write_statistics(typename)addstypenameto the payload, writes JSON understatistics/(e.g.,statistics.json.ignoreorstatistics-chunk-{chunk_start}.json.ignore), ensures the directory exists, writes in binary mode, and uploads the new path.transform_datareturnstransformed_output.get_statistics(typename=typename).tests/unit/outputs/test_output.pyto reflect new statistics path, directory creation, file mode, and mocks.Written by Cursor Bugbot for commit ea6357b. This will update automatically on new commits. Configure here.