Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 15 additions & 32 deletions .github/workflows/scripts.yaml → .github/workflows/ci1.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
Expand All @@ -7,52 +6,36 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# 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.
#

# This workflow enforces quality checks on bash scripts in the project

name: ScriptQA
name: Java CI with Maven

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

permissions:
contents: read

jobs:
shfmt:
name: shfmt
timeout-minutes: 3
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Show the first log message
run: git log -n1
- name: Install shfmt
run: tools/ci/install-shfmt.sh
- name: Checking formatting of all scripts
run: tools/ci/run-shfmt.sh

shellcheck:
name: ShellCheck
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Show the first log message
run: git log -n1
- name: Install shfmt
run: tools/ci/install-shfmt.sh
- name: Running shellcheck on all scripts
run: tools/ci/run-shellcheck.sh
- name: Checkout repository
uses: actions/checkout@v5

- name: Set up JDK 11
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '11'
cache: maven

- name: Build and test with Maven
run: mvn -B -V -ntp clean test
79 changes: 0 additions & 79 deletions .github/workflows/e2e.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/manual.yaml

This file was deleted.

1 change: 1 addition & 0 deletions Dattree_codesmellsC2.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Dattree_codesmellsC3.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Dattree_codesmellsC4.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions PathTrie_codesmellsC1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"total":0,"p":1,"ps":500,"paging":{"pageIndex":1,"pageSize":500,"total":0},"effortTotal":0,"debtTotal":0,"issues":[],"components":[],"organizations":[],"facets":[]}
1 change: 1 addition & 0 deletions PathTrie_codesmellsC2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"total":0,"p":1,"ps":500,"paging":{"pageIndex":1,"pageSize":500,"total":0},"effortTotal":0,"debtTotal":0,"issues":[],"components":[],"organizations":[],"facets":[]}
1 change: 1 addition & 0 deletions PathTrie_codesmellsC3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"total":0,"p":1,"ps":500,"paging":{"pageIndex":1,"pageSize":500,"total":0},"effortTotal":0,"debtTotal":0,"issues":[],"components":[],"organizations":[],"facets":[]}
Binary file added RandoopTemporarySeqTest199.class
Binary file not shown.
1 change: 1 addition & 0 deletions datatree_codesmells.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"total":0,"p":1,"ps":500,"paging":{"pageIndex":1,"pageSize":500,"total":0},"effortTotal":0,"debtTotal":0,"issues":[],"components":[],"organizations":[],"facets":[]}
1 change: 1 addition & 0 deletions datatree_codesmells_C0.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions datatree_codesmells_C1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"total":5,"p":1,"ps":500,"paging":{"pageIndex":1,"pageSize":500,"total":5},"effortTotal":25,"debtTotal":25,"issues":[{"key":"AZ5BfUW48sJpQflT3s5q","rule":"java:S2629","severity":"MAJOR","component":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","project":"lucacupellaro_zookeeper","line":1814,"hash":"3269f38b0b29608bdd7a916ec7dcad90","textRange":{"startLine":1814,"endLine":1814,"startOffset":20,"endOffset":42},"flows":[],"status":"OPEN","message":"Invoke method(s) only conditionally.","effort":"5min","debt":"5min","author":"wander4096@gmail.com","tags":["performance"],"creationDate":"2023-02-27T06:28:59+0000","updateDate":"2026-05-19T18:25:10+0000","type":"CODE_SMELL","organization":"lucacupellaro","branch":"metrics-tools","cleanCodeAttribute":"EFFICIENT","cleanCodeAttributeCategory":"INTENTIONAL","impacts":[{"softwareQuality":"MAINTAINABILITY","severity":"MEDIUM"}],"issueStatus":"OPEN","projectName":"zookeeper","internalTags":[],"lastChangeAnalysisUuid":"01d3a90d-b05f-46f3-a529-d90ef32591cf","lastChangeSource":"ANALYSIS"},{"key":"AZ5BfUW48sJpQflT3s5o","rule":"java:S2629","severity":"MAJOR","component":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","project":"lucacupellaro_zookeeper","line":1670,"hash":"5f347c2aef9cef26c96daeebc44360a7","textRange":{"startLine":1670,"endLine":1670,"startOffset":24,"endOffset":71},"flows":[],"status":"OPEN","message":"Invoke method(s) only conditionally.","effort":"5min","debt":"5min","author":"fangmin@apache.org","tags":["performance"],"creationDate":"2019-12-27T21:33:26+0000","updateDate":"2026-05-19T18:25:10+0000","type":"CODE_SMELL","organization":"lucacupellaro","branch":"metrics-tools","cleanCodeAttribute":"EFFICIENT","cleanCodeAttributeCategory":"INTENTIONAL","impacts":[{"softwareQuality":"MAINTAINABILITY","severity":"MEDIUM"}],"issueStatus":"OPEN","projectName":"zookeeper","internalTags":[],"lastChangeAnalysisUuid":"01d3a90d-b05f-46f3-a529-d90ef32591cf","lastChangeSource":"ANALYSIS"},{"key":"AZ5BfUW48sJpQflT3s5p","rule":"java:S2629","severity":"MAJOR","component":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","project":"lucacupellaro_zookeeper","line":1697,"hash":"8da827a7f65df862e5273ece27ca9b59","textRange":{"startLine":1697,"endLine":1697,"startOffset":58,"endOffset":105},"flows":[{"locations":[{"component":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","textRange":{"startLine":1698,"endLine":1698,"startOffset":24,"endOffset":61},"msg":"Invoke method(s) only conditionally."}]}],"status":"OPEN","message":"Invoke method(s) only conditionally.","effort":"5min","debt":"5min","author":"fangmin@apache.org","tags":["performance"],"creationDate":"2019-12-27T21:33:26+0000","updateDate":"2026-05-19T18:25:10+0000","type":"CODE_SMELL","organization":"lucacupellaro","branch":"metrics-tools","cleanCodeAttribute":"EFFICIENT","cleanCodeAttributeCategory":"INTENTIONAL","impacts":[{"softwareQuality":"MAINTAINABILITY","severity":"MEDIUM"}],"issueStatus":"OPEN","projectName":"zookeeper","internalTags":[],"lastChangeAnalysisUuid":"01d3a90d-b05f-46f3-a529-d90ef32591cf","lastChangeSource":"ANALYSIS"},{"key":"AZ5BfUW48sJpQflT3s5n","rule":"java:S2629","severity":"MAJOR","component":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","project":"lucacupellaro_zookeeper","line":1118,"hash":"36575b0a58620af651d6c665cefb4cdb","textRange":{"startLine":1118,"endLine":1118,"startOffset":24,"endOffset":46},"flows":[],"status":"OPEN","message":"Invoke method(s) only conditionally.","effort":"5min","debt":"5min","author":"allenlyu@fb.com","tags":["performance"],"creationDate":"2019-09-11T08:27:28+0000","updateDate":"2026-05-19T18:25:10+0000","type":"CODE_SMELL","organization":"lucacupellaro","branch":"metrics-tools","cleanCodeAttribute":"EFFICIENT","cleanCodeAttributeCategory":"INTENTIONAL","impacts":[{"softwareQuality":"MAINTAINABILITY","severity":"MEDIUM"}],"issueStatus":"OPEN","projectName":"zookeeper","internalTags":[],"lastChangeAnalysisUuid":"01d3a90d-b05f-46f3-a529-d90ef32591cf","lastChangeSource":"ANALYSIS"},{"key":"AZ5BfUW48sJpQflT3s5s","rule":"java:S131","severity":"CRITICAL","component":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","project":"lucacupellaro_zookeeper","line":835,"hash":"d3014c1421114a3b6ac69d34e1667288","textRange":{"startLine":835,"endLine":835,"startOffset":12,"endOffset":18},"flows":[],"status":"OPEN","message":"Add a default case to this switch.","effort":"5min","debt":"5min","author":"breed@apache.org","tags":["cert","cwe"],"creationDate":"2007-11-03T04:41:15+0000","updateDate":"2026-05-19T18:25:10+0000","type":"CODE_SMELL","organization":"lucacupellaro","branch":"metrics-tools","cleanCodeAttribute":"CLEAR","cleanCodeAttributeCategory":"INTENTIONAL","impacts":[{"softwareQuality":"MAINTAINABILITY","severity":"HIGH"}],"issueStatus":"OPEN","projectName":"zookeeper","internalTags":[],"lastChangeAnalysisUuid":"01d3a90d-b05f-46f3-a529-d90ef32591cf","lastChangeSource":"ANALYSIS"}],"components":[{"organization":"lucacupellaro","key":"lucacupellaro_zookeeper","uuid":"AZ5BemnyKzHSVPC6Y2TJ","enabled":true,"qualifier":"TRK","name":"zookeeper","longName":"zookeeper","branch":"metrics-tools"},{"organization":"lucacupellaro","key":"lucacupellaro_zookeeper:zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","uuid":"AZ5BfUD58sJpQflT3s1G","enabled":true,"qualifier":"FIL","name":"DataTree.java","longName":"zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","path":"zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java","branch":"metrics-tools"}],"organizations":[{"key":"lucacupellaro","name":"lucacupellaro"}],"facets":[]}
5 changes: 5 additions & 0 deletions evosuite-report/statistics.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TARGET_CLASS,criterion,Coverage,Total_Goals,Covered_Goals
org.apache.zookeeper.server.DataTree,LINE;BRANCH,0.3422456130795138,1379,491
org.apache.zookeeper.common.PathTrie,LINE;BRANCH,0.9670354481824339,146,142
org.apache.zookeeper.server.DataTree,LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH,0.6053579457453628,3364,1529
org.apache.zookeeper.server.DataTree,LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH,0.6369481780724984,3456,2083
Loading