This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
add log checking to refactored integration check #700
Merged
Merged
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c211589
add log checking to refactored integration check
demoray 126aa10
cleanup errors
demoray 8c07ba1
handle that we're not logging errors by default
demoray f968530
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 04a88d9
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 36db15a
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft ebad28c
address comments
demoray 6c9678c
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 15f9913
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 2cf4462
handle azure-functions retry
demoray 6821692
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 517a758
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 4a0546c
only log the message if the error has a message
demoray 9897b18
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft a95d4cc
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft fe816c3
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft 5ed2409
Merge branch 'main' into check-logs-integration-tests-2
bmc-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,7 +136,7 @@ def get_extension(vm_name: str, extension_name: str) -> Optional[Any]: | |
resource_group, vm_name, extension_name | ||
) | ||
except (ResourceNotFoundError, CloudError) as err: | ||
logging.error("extension does not exist %s", err) | ||
logging.info("extension does not exist %s", err) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is common place when we're deploying VMs. shouldn't be an error. |
||
return None | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,9 +108,12 @@ def get_queue_tasks() -> Sequence[Tuple[Task, Sequence[str]]]: | |
|
||
|
||
def new_files(container: Container, filename: str) -> None: | ||
report = get_report_or_regression(container, filename) | ||
|
||
notifications = get_notifications(container) | ||
|
||
report = get_report_or_regression( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since we're going to try to inspect every new file as a potential report, this sets up the parsing (seen later in this PR) to only log errors if we actually expect the files to be a report, rather than just optimistically being a report. |
||
container, filename, expect_reports=bool(notifications) | ||
) | ||
|
||
if notifications: | ||
logging.info("notifications for %s %s %s", container, filename, notifications) | ||
done = [] | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,6 +205,8 @@ def mark_failed( | |
) | ||
return | ||
|
||
logging.error("task failed %s:%s - %s", self.job_id, self.task_id, error) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See previous comment about |
||
|
||
self.error = error | ||
self.set_state(TaskState.stopping) | ||
|
||
|
This file contains 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
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.
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.
note, this is now handled by
task.mark_failed
. Since we don't record errors on tasks already marked as failures, this moves the error longing to model our state handling.