Skip to content

Conversation

@adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Nov 24, 2019

What changes were proposed in this pull request?

HDDS-2587 added Sonar check in post-commit workflow, publishing results to SonarCloud. It does not work in forks, as it requires SonarCloud token. This causes unit check to fail completely. Example: https://github.com/bharatviswa504/hadoop-ozone/runs/316829850

This PR proposes to skip the check for forks. (Ideally it would be skipped if SONARCLOUD_TOKEN is not set, but I could not add a condition based on that.)

https://issues.apache.org/jira/browse/HDDS-2627

How was this patch tested?

Pushed to own fork: unit check passed, sonar step skipped.

It would be great if someone with write access to apache/hadoop-ozone could push the same to a "feature" branch and verify that Sonar check is executed as expected.

elek pushed a commit that referenced this pull request Nov 25, 2019
@adoroszlai
Copy link
Contributor Author

Thanks @elek for pushing it to apache/hadoop-ozone to confirm that Sonar check is executed:

https://github.com/apache/hadoop-ozone/runs/319300695

@adoroszlai
Copy link
Contributor Author

@elek @vivekratnavel please review

Copy link
Contributor

@vivekratnavel vivekratnavel left a comment

Choose a reason for hiding this comment

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

+1 LGTM

Copy link
Contributor

@arp7 arp7 left a comment

Choose a reason for hiding this comment

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

+1

@arp7 arp7 merged commit 728755e into apache:master Nov 25, 2019
@adoroszlai adoroszlai deleted the HDDS-2627 branch November 25, 2019 20:57
@adoroszlai
Copy link
Contributor Author

Thanks @vivekratnavel and @arp7 for reviewing it.

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.

3 participants