Skip to content

Commit 37edd54

Browse files
committed
Remove bad branches
1 parent 5d5d7f6 commit 37edd54

File tree

7 files changed

+5
-52
lines changed

7 files changed

+5
-52
lines changed

test/files/audit-config.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@
248248
"sonar.cpd.cross_project": false,
249249
"sonar.dbcleaner.auditHousekeeping": "Monthly",
250250
"sonar.dbcleaner.branchesToKeepWhenInactive": [
251-
"comma,branch",
252251
"develop",
253252
"main",
254253
"master",
@@ -759,7 +758,6 @@
759758
"BANKING-INVESTMENT-EQUITY": "-DEFAULT_BRANCH-",
760759
"BANKING-INVESTMENT-MERGER": "-DEFAULT_BRANCH-",
761760
"BANKING-PORTAL": [
762-
"comma,branch",
763761
"main",
764762
"release-3.2"
765763
]
@@ -960,9 +958,6 @@
960958
},
961959
"BANKING-PORTAL": {
962960
"branches": {
963-
"comma,branch": {
964-
"keepWhenInactive": true
965-
},
966961
"main": {
967962
"isMain": true
968963
},
@@ -1978,10 +1973,6 @@
19781973
},
19791974
"okorach_sonar-tools": {
19801975
"branches": {
1981-
"comma,branch": {
1982-
"keepWhenInactive": true,
1983-
"newCodePeriod": "REFERENCE_BRANCH = develop"
1984-
},
19851976
"develop": {
19861977
"keepWhenInactive": true,
19871978
"newCodePeriod": "REFERENCE_BRANCH = master"

test/files/config-for-audit.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay": "24",
5656
"sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs": "30",
5757
"sonar.dbcleaner.branchesToKeepWhenInactive": [
58-
"comma,branch",
5958
"develop",
6059
"main",
6160
"master",

test/files/config.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay": "24",
5757
"sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs": "30",
5858
"sonar.dbcleaner.branchesToKeepWhenInactive": [
59-
"comma,branch",
6059
"develop",
6160
"main",
6261
"master",
@@ -3437,9 +3436,6 @@
34373436
}
34383437
},
34393438
"branches": {
3440-
"comma,branch": {
3441-
"keepWhenInactive": true
3442-
},
34433439
"release-3.2": {
34443440
"keepWhenInactive": true
34453441
},
@@ -4687,35 +4683,6 @@
46874683
}
46884684
]
46894685
},
4690-
"okorach_sonar-tools-target": {
4691-
"name": "Sonar Tools Target",
4692-
"visibility": "private",
4693-
"permissions": {
4694-
"users": {
4695-
"admin": "admin, codeviewer, user",
4696-
"syncer": "codeviewer, issueadmin, securityhotspotadmin, user"
4697-
},
4698-
"groups": {
4699-
"developers": "codeviewer, user",
4700-
"project-admins": "admin, codeviewer, user",
4701-
"security-auditors": "codeviewer, issueadmin, securityhotspotadmin, user",
4702-
"sonar-administrators": "admin, codeviewer, user",
4703-
"sonar-users": "user",
4704-
"tech-leads": "codeviewer, issueadmin, user"
4705-
}
4706-
},
4707-
"branches": {
4708-
"master": {
4709-
"isMain": true
4710-
},
4711-
"develop": {
4712-
"keepWhenInactive": true
4713-
},
4714-
"comma,branch": {
4715-
"keepWhenInactive": true
4716-
}
4717-
}
4718-
},
47194686
"org.owasp.webgoat:webgoat": {
47204687
"name": "WebGoat",
47214688
"visibility": "private",
@@ -4794,9 +4761,6 @@
47944761
}
47954762
},
47964763
"branches": {
4797-
"comma,branch": {
4798-
"keepWhenInactive": true
4799-
},
48004764
"release-2.x": {
48014765
"keepWhenInactive": true
48024766
},
@@ -5449,7 +5413,6 @@
54495413
"BANKING-INVESTMENT-EQUITY": "-DEFAULT_BRANCH-",
54505414
"BANKING-INVESTMENT-MERGER": "-DEFAULT_BRANCH-",
54515415
"BANKING-PORTAL": [
5452-
"comma,branch",
54535416
"main",
54545417
"release-3.2"
54555418
]

test/projects-provisioning/scan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for p in $projects; do
1414
sonar-scanner -Dsonar.projectKey=$p -Dsonar.host.url=$url -Dsonar.branch.name=develop -Dsonar.login=$SONAR_TOKEN -Dsonar.token=$SONAR_TOKEN
1515
done
1616

17-
branches="feature/new-feature some-branch comma,branch release-2.x release-3.x"
17+
branches="feature/new-feature some-branch release-3.x"
1818
for b in $branches; do
1919
echo "Processing $p"
2020
sonar-scanner -Dsonar.projectKey=$p -Dsonar.host.url=$url -Dsonar.projectKey=project1 -Dsonar.branch.name=$b -Dsonar.login=$SONAR_TOKEN -Dsonar.token=$SONAR_TOKEN

test/test-sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ do
55
curl -X POST -u "$SONAR_TOKEN:" "$SONAR_HOST_URL/api/projects/delete?project=$proj"
66
opts=("-Dsonar.projectKey=$proj" "-Dsonar.projectName=$proj")
77
conf/run_all.sh "${opts[@]}" "$@"
8-
for branch in release-1.x release-2.x
8+
for branch in release-2.x release-2.x
99
do
1010
conf/run_all.sh "${opts[@]}" "$@" "-Dsonar.branch.name=$branch"
1111
done

test/unit/test_portfolios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_add_project(get_test_portfolio: Generator[pf.Portfolio]) -> None:
113113
assert p.has_project(project.key)
114114

115115
p.add_project_branches(project.key, [c.DEFAULT_BRANCH, "develop"])
116-
p.add_project_branches(project.key, ["comma,branch", "develop"])
116+
p.add_project_branches(project.key, ["release-3.x", "develop"])
117117
assert p.recompute()
118118

119119

test/unit/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
PROJ_WITH_BRANCHES = PROJECT_1
6464
BRANCH_MAIN = "main"
6565
BRANCH_2 = "develop"
66-
BRANCH_3 = "some-branch"
66+
BRANCH_3 = "release-3.x"
6767
BRANCH_4 = "feature/new-feature"
68-
BRANCH_5 = "comma,branch"
68+
BRANCH_5 = "release-2.x"
6969

7070
NON_EXISTING_KEY = "non-existing"
7171

0 commit comments

Comments
 (0)