Skip to content
This repository was archived by the owner on Nov 11, 2019. It is now read-only.

staticanalysis/bot: Do not publish patches without matching issues.#1708

Merged
La0 merged 2 commits into
mozilla:masterfrom
La0:fix-clang-format-report
Nov 27, 2018
Merged

staticanalysis/bot: Do not publish patches without matching issues.#1708
La0 merged 2 commits into
mozilla:masterfrom
La0:fix-clang-format-report

Conversation

@La0
Copy link
Copy Markdown
Contributor

@La0 La0 commented Nov 26, 2018

To avoid this edge case where a patch with clang-format issues not publishable (due to paths not covered) is published even though the linked issues are silent

Fixes #1704

analyzers_available = set(i.ANALYZER for i in issues).intersection(self.analyzers)
patches = {
analyzer: url
for analyzer, url in revision.improvement_patches.items()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe we should filter out not allowed paths when we build revision.improvement_patches?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That would mean parsing the chunks of the full clang-format patch itself, hence doing #1696

@La0 La0 merged commit 43b84ba into mozilla:master Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants