forked from empear-analytics/zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Testsmaller #9
Open
RokLenarcic
wants to merge
32
commits into
master
Choose a base branch
from
testsmaller
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.
Open
Testsmaller #9
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
c47d809
ddddZOOKEEPER-4037: Closing autoCloseable resource with try-with-reso…
lanicc 84692b7
ZOOKEEPER-3730: fix a typo about watchManagerName in the zookeeperAdm…
2e1d6a2
ZOOKEEPER-3849: improve the all logs with a necessary time unit at th…
ZWShuai91 fe06eb6
ZOOKEEPER-4001: Make AuditHelper.addAuditLog(...) more readable
zengchao1212 99d1351
ZOOKEEPER-4050: Zookeeper Inspector reports "List of default node vie…
brentwritescode 19f07cd
ZOOKEEPER-4007: A typo in the ZKUtil#validateFileInput method
LuoManGit a7fd801
Revert "ZOOKEEPER-4007: A typo in the ZKUtil#validateFileInput method"
anmolnar b62bd97
ZOOKEEPER-4207: Remove extra checkout from Jenkinsfile
anmolnar f73c387
ZOOKEEPER-3987: Reduce fork count for tests to 1
ctubbsii 0a25f4b
ZOOKEEPER-4209: Update Netty to 4.1.59.Final
frederiko f24a353
ZOOKEEPER-4200: Widen latency window in WatcherCleanerTest
ztzg e113636
ZOOKEEPER-4201: C client: Disable SASL deprecation warnings on macOS
ztzg c677995
ZOOKEEPER-4199: Avoid thread leak in QuorumRequestPipelineTest
ztzg 219e75b
ZOOKEEPER-4221: Improve the error message when message goes above jut…
362b799
ZOOKEEPER-4219: Quota checks break setData in multi transactions
ztzg 5def71d
ZOOKEEPER-3922: The introduction of the oracle, a failure detector.
07a42d7
ZOOKEEPER-3877: JMX Bean RemotePeerBean should enclose IPV6 host in s…
arshadmohammad fa562fa
ZOOKEEPER-3781: Create snapshots on followers when snapshot.trust.emp…
2c53fcb
ZOOKEEPER-4220: Potential redundant connection attempts during leader…
symat 9c6773b
ZOOKEEPER-2693: Correct the documentation about response to "ruok" 4lw
nemobis 1a77331
ZOOKEEPER-4217: add new arg 'func' to handle_socket_error_msg()
smikes 2897e34
ZOOKEEPER-4232: InvalidSnapshotTest corrupts its own test data
ztzg fcc4547
ZOOKEEPER-4210: Preserve return code from nonblocking send
smikes 037158f
ZOOKEEPER-4233: dependency-check:check failing - Jetty 9.4.35.v202011…
ztzg d226752
ZOOKEEPER-4227: X509AuthFailureTest is failing consistently
arshadmohammad 74633b6
ZOOKEEPER-4230: Use dynamic temp folder instead of static temp folder…
MuktiKrishnan a77ef0d
ZOOKEEPER-1871: Add an option to zkCli to wait for connection before …
MuktiKrishnan 16d71a4
ZOOKEEPER-4205: Change X509AuthFailureTest to use dynamically assigne…
258ade1
Modify build files for coverage and sonar analysis
c6c4574
Modify build files for coverage and sonar analysis...
a753b2a
D
RokLenarcic 08d86b0
D
RokLenarcic 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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
name: Run Tests With Clover | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
# Configure credentials | ||
- uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: eu-west-1 | ||
# Run build steps | ||
- run: mvn clean clover:setup | ||
- run: mvn test | ||
- run: mvn clover:aggregate clover:clover | ||
if: always() | ||
- run: aws s3 cp ./target/site/clover/clover.xml s3://codescene-on-prem/code-coverage-data/apache/zookeeper/clover.xml |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
name: Run Sonar Analysis | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
# Run build steps | ||
- run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -DskipTests -e | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
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
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
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.
❌ Getting worse: Complex Method
main already has high cyclomatic complexity, and now it increases in Lines of Code from 327 to 334
Why does this problem occur?
This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring. Read more.