Skip to content

HDDS-3316. Checkstyle check fails silently in case of mvn related errors #746

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

Closed
wants to merge 1 commit into from

Conversation

elek
Copy link
Member

@elek elek commented Apr 1, 2020

What changes were proposed in this pull request?

rom the last master build:

https://github.com/apache/hadoop-ozone/runs/550746880?check_suite_focus=true

Checkstyle is failed due to a maven error:

[ERROR] Failed to execute goal on project hadoop-hdds-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-hdds-common:jar:0.6.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-hdds-config:jar:0.6.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots) -> [Help 1]
[ERROR] Failed to execute goal on project hadoop-hdds-client: Could not resolve dependencies for project org.apache.hadoop:hadoop-hdds-client:jar:0.6.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hadoop:hadoop-hdds-common:jar:0.6.0-SNAPSHOT, org.apache.hadoop:hadoop-hdds-config:jar:0.6.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-hdds-common:jar:0.6.0-SNAPSHOT in apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots) -> [Help 1]

But it remained green.

We should fail the check if the maven run couldn't succeed.

What is the link to the Apache JIRA

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

Please replace this section with the link to the Apache JIRA)

How was this patch tested?

hadoop-ozone/dev-support/checks/checkstyle.sh
echo $?
  1. Create a syntax error in your pom.xml (expected: exit code 1, without the patch: 0)
  2. Create a checkstyle error (expected: exit code 1)
  3. Fix the checkstyle error (expected: exit code 0)

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @elek for finding and fixing this problem. Please note that an unrelated commit is present in the PR.

@elek
Copy link
Member Author

elek commented Apr 3, 2020

Thanks the review @adoroszlai. Merged it to master.

@elek elek closed this in 12fb2f6 Apr 3, 2020
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