Skip to content

AMBARI-25695 Pull request tests fail due to Maven 3.8.x blocks http repositories (santal)#3321

Merged
hapylestat merged 1 commit intoapache:branch-2.7from
sziszo:AMBARI-25695-branch-2.7
Nov 8, 2021
Merged

AMBARI-25695 Pull request tests fail due to Maven 3.8.x blocks http repositories (santal)#3321
hapylestat merged 1 commit intoapache:branch-2.7from
sziszo:AMBARI-25695-branch-2.7

Conversation

@sziszo
Copy link
Contributor

@sziszo sziszo commented Nov 4, 2021

What changes were proposed in this pull request?

Tests for ambari-infra and ambari-logsearch cannot be perfomed because the http repositories have been blocked since Maven 3.8.1.
command:
$ mvn -am test -Dmaven.artifact.threads=10 -Drat.skip
output:

[INFO] Reactor Summary for ambari-infra 2.7.5.0.0:
[INFO] 
[INFO] ambari-infra ....................................... SUCCESS [  1.126 s]
[INFO] Ambari Infra Solr Client ........................... SUCCESS [  6.155 s]
[INFO] Ambari Infra Solr Plugin ........................... FAILURE [  0.585 s]
[INFO] Ambari Infra Manager ............................... SKIPPED
[INFO] Ambari Infra Assembly .............................. SKIPPED
[INFO] Ambari Infra Manager Integration Tests ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.192 s
[INFO] Finished at: 2021-10-29T07:58:03Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ambari-infra-solr-plugin: Could not resolve dependencies for project org.apache.ambari:ambari-infra-solr-plugin:jar:2.7.5.0.0: Failed to collect dependencies at org.apache.solr:solr-core:jar:7.7.3 -> org.restlet.jee:org.restlet:jar:2.3.0: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.3.0: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.3.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [maven-restlet (http://maven.restlet.org, default, releases+snapshots)] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :ambari-infra-solr-plugin

How was this patch tested?

manually tested

…epositories (santal)

Change-Id: Id36e44c4ee953d39b386e5989b2bea5ba9193d3c
@sziszo
Copy link
Contributor Author

sziszo commented Nov 4, 2021

@payert @hapylestat Could you please review this PR?

@payert payert self-requested a review November 5, 2021 09:25
Copy link

@payert payert left a comment

Choose a reason for hiding this comment

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

LGTM

@aonishuk
Copy link
Contributor

aonishuk commented Nov 5, 2021

I was able to build ambari-admin successfully from latest branch-2.7. Probably some env issue on jenkins

mvn -T 2C -am test -pl ambari-admin -Dmaven.artifact.threads=10 -Drat.skip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Ambari Main 2.7.5.0.0:
[INFO] 
[INFO] Ambari Main ........................................ SUCCESS [  0.327 s]
[INFO] Apache Ambari Project POM .......................... SUCCESS [  0.008 s]
[INFO] Ambari Admin View .................................. SUCCESS [  4.759 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.614 s (Wall Clock)
[INFO] Finished at: 2021-11-05T12:52:25+02:00
[INFO] ------------------------------------------------------------------------

I also tried to use the latest maven 3.8.3 and the build was still successful.

For me command output looks like this:

user@user:~/ambari_apache$ yarn install --ignore-engines --pure-lockfile
yarn install v1.22.11
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 0.06s.

Also jenkins logs we have this command fail:

[ERROR] error /home/jenkins/jenkins-agent/workspace/bari-PreCommit-GitHub-PR_PR-3321/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules/phantomjs: Command failed.
[ERROR] Exit code: 1
[ERROR] Command: sh
[ERROR] Arguments: -c node install.js
[ERROR] Directory: /home/jenkins/jenkins-agent/workspace/bari-PreCommit-GitHub-PR_PR-3321/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
[ERROR] Output:
[ERROR] PhantomJS not found on PATH
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[ERROR] Download already available at /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
[ERROR] Verified checksum of previously downloaded file
[ERROR] Extracting tar contents (via spawned process)
[ERROR] Removing /home/jenkins/jenkins-agent/workspace/bari-PreCommit-GitHub-PR_PR-3321/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
[ERROR] Copying extracted folder /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1636066898711/phantomjs-1.9.8-linux-x86_64 -> /home/jenkins/jenkins-agent/workspace/bari-PreCommit-GitHub-PR_PR-3321/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
[ERROR] Install exited unexpectedly

Maybe this is the root cause.

Copy link
Contributor

@hapylestat hapylestat left a comment

Choose a reason for hiding this comment

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

LGTM

@hapylestat hapylestat merged commit 0fc5d44 into apache:branch-2.7 Nov 8, 2021
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.

4 participants