Skip to content
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

Issue 23: add integration test #20

Open
wants to merge 5 commits into
base: feature-separate-adapters
Choose a base branch
from

Conversation

ravibeta
Copy link
Contributor

@ravibeta ravibeta commented Sep 5, 2020

Change log description
This repository produces bindings which is used in container deployments using docker images. This change adds and tries out the integration tests.

Purpose of the change
It uses the jars produced by this repository and runs integration tests against it.

What the code does
Fixes: #23
Initially, all the integration tests were moved to see if the new jars can pass the tests. The resulting build proved that they did:
https://travis-ci.com/github/ravibeta/pravega-storage-adapters-1/builds/182858340
Initially all the system tests were moved. They all passed. There were two tests that were marked as ignored because of the difference in the version checked into the libs but they pass when all the dependencies are of the same version. This PR has now been modified to only include those pertaining to hdfs. It does not include extendeds3 yet because that is pending another pr which is already out for review. I did try a dry run with extendeds3 to see if there are any changes in dependencies and there were none.

How to verify it
We need a working pravega build and the jars from this repository to run the tests. Ideally, there will be no bindings in the Pravega build other than filesystem.

@ravibeta ravibeta marked this pull request as draft September 5, 2020 00:22
@ravibeta ravibeta marked this pull request as ready for review September 8, 2020 22:01
@ravibeta ravibeta changed the title [draft] add integration test add integration test Sep 8, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 10, 2020

Codecov Report

Merging #20 into feature-separate-adapters will increase coverage by 1.73%.
The diff coverage is n/a.

Impacted file tree graph

@@                       Coverage Diff                       @@
##             feature-separate-adapters      #20      +/-   ##
===============================================================
+ Coverage                        72.77%   74.51%   +1.73%     
- Complexity                          95      101       +6     
===============================================================
  Files                               10       10              
  Lines                              518      518              
  Branches                            47       47              
===============================================================
+ Hits                               377      386       +9     
+ Misses                             102       95       -7     
+ Partials                            39       37       -2     
Impacted Files Coverage Δ Complexity Δ
...main/java/io/pravega/storage/hdfs/HDFSStorage.java 73.65% <0.00%> (+0.95%) 55.00% <0.00%> (+2.00%)
.../io/pravega/storage/hdfs/HDFSExceptionHelpers.java 46.15% <0.00%> (+15.38%) 6.00% <0.00%> (+2.00%)
...va/io/pravega/storage/hdfs/HDFSStorageFactory.java 66.66% <0.00%> (+66.66%) 1.00% <0.00%> (+1.00%)
...pravega/storage/hdfs/HDFSSimpleStorageFactory.java 100.00% <0.00%> (+100.00%) 1.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 914c9c0...f47fbdd. Read the comment docs.

build.gradle Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
@andreipaduroiu
Copy link
Member

Please create an issue and reference it in this PR's title and description.

gradle.properties Show resolved Hide resolved
hdfs/build.gradle Outdated Show resolved Hide resolved
hdfs/build.gradle Outdated Show resolved Hide resolved
@andreipaduroiu
Copy link
Member

Also, please remove the 2 JAR files you committed.

@ravibeta
Copy link
Contributor Author

Yes Andrei

@ravibeta ravibeta changed the title add integration test Issue 23: add integration test Sep 11, 2020
}

//endregion
}
Copy link
Contributor Author

@ravibeta ravibeta Sep 11, 2020

Choose a reason for hiding this comment

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

The libs does not appear in the branch. It only appears in the review. This is weird.
Ok i added the files back in the libs and they disappeared from the review.
Then I deleted the files one more time from the libs and they reappeared in the review.
Looks like the review wants to show that these files are deleted but there is an option to hide deleted files from the view by clicking on settings.

Choose a reason for hiding this comment

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

91d0faf Adds lib
looks like ae86e45 removes it

Signed-off-by: Ravi Rajamani <ravi.rajamani@emc.com>
Ravi Rajamani added 3 commits September 11, 2020 16:22
Signed-off-by: Ravi Rajamani <ravi.rajamani@emc.com>
Signed-off-by: Ravi Rajamani <ravi.rajamani@emc.com>
checkstyle/import-control.xml Outdated Show resolved Hide resolved
}

//endregion
}

Choose a reason for hiding this comment

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

91d0faf Adds lib
looks like ae86e45 removes it

Signed-off-by: Ravi Rajamani <ravi.rajamani@emc.com>
Copy link

@sachin-j-joshi sachin-j-joshi left a comment

Choose a reason for hiding this comment

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

Looks okay to me.
I am assuming you'll fix the ECS part soon

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.

5 participants