Repository navigation
Conversation
Contributor
|
Comment on lines
+109
to
+112
| extra={ | ||
| 'provider': provider.value, | ||
| 'provider_user_id': provider_user_id, | ||
| }, |
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This is the scheduled log hygiene pass. It fixes 56 of 60
preformatted-messagefindings in three files. Messages built with f-strings are now constant sentences, and the values are passed asextrawith snake_case keys (provider,source,org_id,user_id,issue_key,conversation_id,webhook_id, and so on). Values moved toextraappear in JSON log output but not in plain-text output.server/services/automation_event_service.py: 32 of 36 findings fixed.integrations/jira_dc/jira_dc_manager.py: 22 of 22 fixed.integrations/azure_devops/azure_devops_view.py: 2 of 2 fixed.exc_info=Trueinstead of putting the error in the message (14 calls: 6 inautomation_event_service.py, 8 injira_dc_manager.py). I usedexc_info=Truerather thanlogger.exception(...)so the WARNING/DEBUG level stays unchanged, as the level rule requires.Invalid event detection rule in requested metadatainautomation_event_service.py, andWebhook workspace is not active/Job workspace is not activeinjira_dc_manager.py.Calls left alone with
# log-hygiene: ignore, because the message carries a whole downstream response body and that must not go inextra:automation_event_service.py: warningFailed to fetch requested event types for {source}: {resp.status} {body}automation_event_service.py: warningInvalid requested event metadata response for {source}: {data}automation_event_service.py: errorAutomation service returned {resp.status} ... {body}(5xx branch)automation_event_service.py: errorAutomation service returned {resp.status} ... {body}(4xx branch)Test update:
tests/unit/server/routes/test_org_git_claims.pyasserted on text inside the logged message. It now asserts on theextravalues.Validation
log_checks.py(fromextensions-private@main) on the three files: 60 findings before, 0 findings and exit 0 after.test_org_git_claims.py,test_automation_event_service.py,tests/unit/integrations/jira_dcandtests/unit/integrations/azure_devops: 316 passed. 21 tests could not run: they need the Postgres test container, and Docker cannot start in this sandbox (no root). They fail the same way on unmodifiedmain, so CI should confirm them.This pull request was opened by an AI agent (OpenHands).
Enterprise server image for this PR: