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

Improve error messages #3678

Merged
merged 274 commits into from
Aug 17, 2021
Merged

Improve error messages #3678

merged 274 commits into from
Aug 17, 2021

Conversation

Sparsh1212
Copy link
Contributor

@Sparsh1212 Sparsh1212 commented Aug 13, 2021

Explanation

Sample full error logs for all checks:

RegexPatternValidation Check:

File name/path violation: <failure_message>

  • file_path_1
  • file_path_2

filePath1:lineNumber1: errorToShow1
filePath2:lineNumber2: errorToShow1
filePath3:lineNumber3: errorToShow2

Refer to <wiki_url_1> for more details on how to fix this.

XmlSyntaxValidation Check:

errorFile1:lineNumber1:columnNumber1: error_message1
errorFile2:lineNumber2:columnNumber2: error_message2
errorFile3:lineNumber3:columnNumber3: error_message3

Refer to <wiki_url_2> for more details on how to fix this.

TestFilePresence Check:

File file_path_1 does not have a corresponding test file.
File file_path_2 does not have a corresponding test file.
File file_path_3 does not have a corresponding test file.

Refer to <wiki_url_3> for more details on how to fix this.

AccessibilityLabel Check:

Accessibility label missing for Activities:

  • activityPath1
  • activityPath2
  • activityPath3

Refer to <wiki_url_4> for more details on how to fix this.

KDocValidity Check:

KDoc missing for files:

  • file_path_1:columnNumber
  • file_path_2:columnNumber
  • file_path_3:columnNumber
  • file_path_4:columnNumber

Refer to <wiki_url_5> for more details on how to fix this.

TodoOpen Check:

TODOs not in proper format:

  • file_path_1:lineNumber1
  • file_path_2:lineNumber2
  • file_path_3:lineNumber3

TODOs not corresponding to open issues on GitHub:

  • file_path_4:lineNumber4
  • file_path_5:lineNumber5
  • file_path_6:lineNumber6

Refer to <wiki_url_6> for more details on how to fix this.

TodoIssueResolved Check:

The following TODOs are unresolved for the closed issue:

  • file_path_4:lineNumber4
  • file_path_5:lineNumber5
  • file_path_6:lineNumber6

Refer to <wiki_url_7> for more details on how to fix this.

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@Sparsh1212
Copy link
Contributor Author

Thanks @Sparsh1212. Took a first pass. Will review fully once the wiki is in place.

I think the approach looks good. Could you please include sample output in the opening comment for each check's full failure case (e.g. all error types triggered)?

Done. PTAL.

@Sparsh1212 Sparsh1212 marked this pull request as ready for review August 14, 2021 15:28
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @Sparsh1212. Fully reviewed this--just had 2 comments. I still can't approve until the wiki page is checked in, but the PR looks pretty close to done.

@BenHenning
Copy link
Sponsor Member

Also, @Sparsh1212 please fix the CI checks & assign this back once the base PR is merged.

Base automatically changed from closed-issue-check to develop August 16, 2021 21:18
@Sparsh1212 Sparsh1212 assigned BenHenning and unassigned Sparsh1212 Aug 17, 2021
Comment on lines -24 to +25
* bazel run //scripts:accessibility_label_check -- $(pwd) app/src/main/AndroidManifest.xml
* scripts/assets/accessibility_label_exemptions.pb
* bazel run //scripts:accessibility_label_check -- $(pwd)
* scripts/assets/accessibility_label_exemptions.pb app/src/main/AndroidManifest.xml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed Typo fixed now.

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @Sparsh1212. LGTM! Just waiting for CI checks to pass before merging.

@oppiabot
Copy link

oppiabot bot commented Aug 17, 2021

Unassigning @BenHenning since they have already approved the PR.

@oppiabot oppiabot bot added the PR: LGTM label Aug 17, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Looks like there's 1 CI failure. PTAL.

@oppiabot
Copy link

oppiabot bot commented Aug 17, 2021

Hi @Sparsh1212, it looks like some changes were requested on this pull request by @BenHenning. PTAL. Thanks!

@oppiabot oppiabot bot removed the PR: LGTM label Aug 17, 2021
@Sparsh1212 Sparsh1212 assigned BenHenning and unassigned Sparsh1212 Aug 17, 2021
@vinitamurthi
Copy link
Contributor

@BenHenning I think all checks are passing here right?

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @Sparsh1212. LGTM. Nice find regarding the flake.

@BenHenning BenHenning merged commit 6a859c1 into develop Aug 17, 2021
@BenHenning BenHenning deleted the improve-error-messages branch August 17, 2021 06:26
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.

None yet

3 participants