Skip to content
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

Handle disfunctional issue handlers properly in triage #4476

Merged
merged 11 commits into from
Dec 9, 2024

Conversation

vitorguidi
Copy link
Collaborator

@vitorguidi vitorguidi commented Dec 6, 2024

Motivation

Fuchsia testcases were referencing monorail, for which the API was deprecated. This implied on the cronjob failing prematurely, and no issues being filed on google3.

This PR adds extra logging, so we can troubleshoot this sort of issue more easily.

Also, under the triage cronjob, the ValueError exception is handled, to handle gracefully the case where some testcase references an issue finder that is not present under the issue tracker config.

@vitorguidi vitorguidi changed the title [DO NOT MERGE] Temporary logging for appengine Improving triage.py logging Dec 6, 2024
@vitorguidi vitorguidi changed the title Improving triage.py logging Handle disfunctional issue handlers properly in triage Dec 9, 2024
continue

# If this project does not have an associated issue tracker, we cannot
# file this crash anywhere.
issue_tracker = issue_tracker_utils.get_issue_tracker_for_testcase(testcase)
try:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the part that solves the incident, along deleting the config
@jonathanmetzman

continue

# Clean up old triage messages that would be not applicable now.
testcase.delete_metadata(TRIAGE_MESSAGE_KEY, update_testcase=False)

# File the bug first and then create filed bug metadata.
# # File the bug first and then create filed bug metadata.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra

Copy link
Collaborator

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vitorguidi vitorguidi merged commit 089d9ef into master Dec 9, 2024
7 checks passed
@vitorguidi vitorguidi deleted the chore/issue-tracker-logging branch December 9, 2024 04:13
vitorguidi added a commit that referenced this pull request Dec 20, 2024
Fuchsia testcases were referencing monorail, for which the API was
deprecated. This implied on the cronjob failing prematurely, and no
issues being filed on google3.

This PR adds extra logging, so we can troubleshoot this sort of issue
more easily.

Also, under the triage cronjob, the ValueError exception is handled, to
handle gracefully the case where some testcase references an issue
finder that is not present under the issue tracker config.
jonathanmetzman pushed a commit that referenced this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants