-
Notifications
You must be signed in to change notification settings - Fork 308
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
[DO NOT MERGE] DAOS-4093 test: java package and Java IT test. #4410
Draft
saurabhtandan
wants to merge
110
commits into
master
Choose a base branch
from
DAOS-4093_java_package
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
9d1e205
DAOS-4093 test: Integrate Java and Hadoop test into DAOS CI
Puspalogan c8c377d
DAOS-3794 test: Add pool destroy test during rebuild with io
saurabhtandan 42bca9c
Merge branch 'master' into DAOS-3794
saurabhtandan a7a9ce0
Merge branch 'master' into DAOS-4093
saurabhtandan 01e1478
Merge branch 'master' into DAOS-4093
saurabhtandan 8e0ae37
Merge branch 'master' into DAOS-4093
saurabhtandan 5cb6795
Added maven package to rpms list
saurabhtandan 873b941
Merge branch 'DAOS-4093' of github.com:daos-stack/daos into DAOS-4093
saurabhtandan a545001
Increased timeout limit.
saurabhtandan e31ba7e
Merge branch 'master' into DAOS-4093
saurabhtandan 362a9c8
Automated java sdk version
saurabhtandan f7b7f25
Running maven with extra log display.
saurabhtandan a01dd41
Build Java jar files during setup
saurabhtandan 250d18d
Moved java build as part of SCons script.
saurabhtandan a45e0f5
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan df3701d
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 23b7c96
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 4b41ac9
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 3c67b00
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 160d4e9
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 0ce8126
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 27d81c0
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan fa09ae6
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 4a6ecc1
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan eb68fa9
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 4e341ee
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 0deed20
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan a1c6d22
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan a5ea44d
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 9cad4e9
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan ddf7710
Modified daos.spec and JenkinsFile to add daos-tests-java
saurabhtandan 801b0d4
Merge branch 'DAOS-4093' into DAOS-4093_java_package
saurabhtandan aa19356
[DO NOT MERGE] DAOS-4093 test: java package and Java IT test.
saurabhtandan aa01dfa
Removing unwanted files
saurabhtandan 05ba7e1
Modified daos.spec as per suggestions
saurabhtandan f112e37
Modified daos.spec
saurabhtandan ee9a86d
Modified JenkinsFile
saurabhtandan 55c31a2
Modified daos.spec
saurabhtandan a36c9e6
Modified daos.spec
saurabhtandan 946d74b
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan e97c2cc
Modified daos.spec
saurabhtandan 1008d2a
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan fdd7955
Modified ci_integration.py file
saurabhtandan ec6bf25
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 7b6f423
Modified test files
saurabhtandan 1f079cc
Modified test file
saurabhtandan 121aa97
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan eeb7797
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan a85560e
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 6b42ea3
Using find_java_home.sh
saurabhtandan 5ae9ec0
Changed test file
saurabhtandan 92c7485
Modified test file
saurabhtandan f1eca1e
Modified test file
saurabhtandan 4b24f15
Modified test file
saurabhtandan 1ecf038
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 1775178
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 9d9f688
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 8470f2b
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan ceab242
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 67796bf
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan d1102f0
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 0797ea1
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 6f2e147
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 121f393
WIP
saurabhtandan ad9872d
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan f02c1d8
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 4dedb4e
Corrected daos.spec chronology
saurabhtandan 95afe4f
Quick-Functional: true
saurabhtandan c7ff7f1
Quick-Functional: true
saurabhtandan cd67606
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 292f44b
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 070cb5f
Added java SConscript to build java.
saurabhtandan 30273d1
Test-tag: javaciintegration
saurabhtandan de61293
Test-tag: javaciintegration
saurabhtandan b886b25
Test-tag: javaciintegration
saurabhtandan 2c633e2
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 4f92541
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 45ac04c
WIP
saurabhtandan a59ffe1
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan b34d6e2
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan c24b7b9
Added provision for java code to build with in tree libs/headers
saurabhtandan b8a5c0c
Changed date in daos.spec changelog
saurabhtandan b8a67b1
Modified daos.spec
saurabhtandan 011a5eb
Printing maven output in build.log
saurabhtandan dcdb12e
Test-tag: javaciintegration
saurabhtandan 4862dc3
Enabled network for rpm packaging stage.
saurabhtandan df41832
Enabled network for rpm packaging stage.
saurabhtandan 1e7a34b
Changed daos install path location in daos.spec
saurabhtandan 372b426
Added hack to remove temporary part of the
saurabhtandan 473b69e
Changed permission of java folder
saurabhtandan 209de84
Modified daos.spec
saurabhtandan e519388
Modified test file.
saurabhtandan 095965d
Modified test file.
saurabhtandan 816706e
Modified JenkinsFile to add protobuf-c-devel
saurabhtandan 06a09fe
Edited pom.xml
saurabhtandan 8ff5bd3
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan aa4574e
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan f348740
Modified test script after some conflicts due to master merging.
saurabhtandan cdf7f3d
Modified daos.spec
saurabhtandan fb17d43
Modified daos.spec
saurabhtandan 439827f
Modified JenkinsFile
saurabhtandan 2448c91
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan 32682e1
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan 0490413
Modified daos.spec,find_build_paths.sh and pom.xml
saurabhtandan 44bb7e8
Modified scan_daos_node.sh
saurabhtandan 17aac2b
Pointed modified pipeline-lib branch with java package in JenkinsFile
saurabhtandan e949b1b
Restructured test files.
saurabhtandan 0d5d55b
Modified yaml file as unwanted code got pushed.
saurabhtandan a837d9f
Merge branch 'master' of github.com:daos-stack/daos
saurabhtandan ebfe0d6
Merge branch 'master' into DAOS-4093_java_package
saurabhtandan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/usr/bin/python3 | ||
""" | ||
(C) Copyright 2020 Intel Corporation. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
GOVERNMENT LICENSE RIGHTS-OPEN SOURCE SOFTWARE | ||
The Government's rights to use, modify, reproduce, release, perform, display, | ||
or disclose this software are subject to the terms of the Apache License as | ||
provided in Contract No. B609815. | ||
Any reproduction of computer software, computer software documentation, or | ||
portions thereof marked with this legend must also reproduce the markings. | ||
""" | ||
import os | ||
from general_utils import error_count | ||
from java_utils import JavaUtils | ||
|
||
class JavaCIIntegration(JavaUtils): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (pylint-too-many-ancestors) Too many ancestors (8/7) |
||
"""Test class Description: | ||
|
||
Create a DAOS pool and container and use their | ||
uuid's to run the java-hadoop integration tests | ||
using maven. | ||
|
||
:avocado: recursive | ||
""" | ||
|
||
def test_java_hadoop_it(self): | ||
"""Jira ID: DAOS-4093 | ||
|
||
Test Description: | ||
Create a DAOS pool and container and use their | ||
uuid's to run the java-hadoop integration tests | ||
using maven. | ||
|
||
:avocado: tags=all,pr,hw,small,javaciintegration | ||
""" | ||
# Copy built java folder to /var/tmp. | ||
# Need to be copied to perform maven operations. | ||
test_jdir = str("{}/../java".format(os.getcwd())) | ||
cp_cmd = "cp -r {} {}/..".format(test_jdir, self.log_dir) | ||
self.run_command(self.hostlist_clients, [cp_cmd]) | ||
|
||
# get java dir | ||
self.jdir = str("{}/../java".format(self.log_dir)) | ||
|
||
# create pool and container | ||
pool = self._create_pool() | ||
container = self._create_cont(pool) | ||
|
||
# obtain java version | ||
version = self.java_version() | ||
|
||
# output file | ||
output_file = "{}/maven_integration_test_output.log".\ | ||
format(self.log_dir) | ||
|
||
# run intergration-test | ||
cmd = "cd {};".format(self.jdir) | ||
cmd += " export LD_PRELOAD={}/jre/lib/amd64/libjsig.so;".format(version) | ||
cmd += " ls -l daos-java/target/antrun/build-compile-proto.xml;" | ||
cmd += " mvn -X integration-test -Ddaos.install.path={}".\ | ||
format(self.prefix) | ||
cmd += " -Dpool_id={} -Dcont_id={} ".format(pool.uuid, container.uuid) | ||
cmd += " >> {}".format(output_file) | ||
print("***{}".format(cmd)) | ||
|
||
self.run_command(self.hostlist_clients, [cmd], True, 120) | ||
# look for errors | ||
found_errors = error_count("Errors: [1-9]+", self.hostlist_clients, | ||
output_file, 'Errors: [0-9]') | ||
self.log.info("Matched error lines: %s", found_errors[0]) | ||
|
||
if found_errors[0] > 0: | ||
self.fail("Java Integration test failed. Check" | ||
" maven_integration_test_output.log for more details.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
hosts: | ||
test_servers: | ||
- server-A | ||
test_clients: | ||
- client-B | ||
timeout: 600 | ||
server_config: | ||
name: daos_server | ||
servers: | ||
log_mask: INFO | ||
scm_class: dcpm | ||
scm_list: ["/dev/pmem0"] | ||
pool: | ||
mode: 146 # 146 is RW | ||
name: daos_server | ||
scm_size: 10000000000 | ||
svcn: 1 | ||
control_method: dmg | ||
container: | ||
type: POSIX | ||
control_method: daos |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(lint) in_tree appears unused. Verify use (or export if used externally). [SC2034]