Skip to content

Commit 99aeca7

Browse files
surajsuraj
authored andcommitted
codebeamer-tests-parallel-execution
Issue: SWF-21305
1 parent 46eeb65 commit 99aeca7

24 files changed

+409
-312
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
py-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
126126
include:
127127
- os: macos-14
128-
brew: "/opt/homebrewrew"
128+
brew: "/opt/homebrew"
129129
runs-on: ${{ matrix.os }}
130130
steps:
131131
- uses: actions/checkout@v4

lobster/tools/codebeamer/codebeamer.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,6 @@ def _execute(self, options: argparse.Namespace) -> None:
655655
print(f"Written {len(items)} requirements to {cb_config.out}")
656656

657657

658-
def _ensure_output_directory(file_path: str) -> None:
659-
"""Create parent directories for the output file if they don't exist."""
660-
directory = os.path.dirname(file_path)
661-
if directory:
662-
os.makedirs(directory, exist_ok=True)
663-
664-
665658
def _get_out_stream(config_out: Optional[str]) -> TextIO:
666659
if config_out:
667660
ensure_output_directory(config_out)

lobster/tools/python/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# <https://www.gnu.org/licenses/>.
1919

2020
from argparse import Namespace
21+
import sys
2122
import os.path
2223
import multiprocessing
2324
import functools

tests_system/lobster_codebeamer/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ py_library(
4343
py_test(
4444
name = "test_extract_requirements",
4545
srcs = ["test_extract_requirements.py"],
46-
tags = ["exclusive"],
4746
deps = [
4847
":lobster_codebeamer",
4948
requirement("flask"),
@@ -53,7 +52,6 @@ py_test(
5352
py_test(
5453
name = "test_lobster_codebeamer",
5554
srcs = ["test_lobster_codebeamer.py"],
56-
tags = ["exclusive"],
5755
deps = [
5856
":lobster_codebeamer",
5957
"//tests_system",
@@ -64,7 +62,6 @@ py_test(
6462
py_test(
6563
name = "test_valid_flow",
6664
srcs = ["test_valid_flow.py"],
67-
tags = ["exclusive"],
6865
deps = [
6966
":lobster_codebeamer",
7067
requirement("flask"),

tests_system/lobster_codebeamer/data/10_items.lobster

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tag": "req 1@100",
55
"location": {
66
"kind": "codebeamer",
7-
"cb_root": "https://localhost:8999",
7+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
88
"tracker": 10000,
99
"item": 1,
1010
"version": 100,
@@ -24,7 +24,7 @@
2424
"tag": "req 2@200",
2525
"location": {
2626
"kind": "codebeamer",
27-
"cb_root": "https://localhost:8999",
27+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
2828
"tracker": 20000,
2929
"item": 2,
3030
"version": 200,
@@ -44,7 +44,7 @@
4444
"tag": "req 3@300",
4545
"location": {
4646
"kind": "codebeamer",
47-
"cb_root": "https://localhost:8999",
47+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
4848
"tracker": 30000,
4949
"item": 3,
5050
"version": 300,
@@ -64,7 +64,7 @@
6464
"tag": "req 4@400",
6565
"location": {
6666
"kind": "codebeamer",
67-
"cb_root": "https://localhost:8999",
67+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
6868
"tracker": 40000,
6969
"item": 4,
7070
"version": 400,
@@ -84,7 +84,7 @@
8484
"tag": "req 5@500",
8585
"location": {
8686
"kind": "codebeamer",
87-
"cb_root": "https://localhost:8999",
87+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
8888
"tracker": 50000,
8989
"item": 5,
9090
"version": 500,
@@ -104,7 +104,7 @@
104104
"tag": "req 6@600",
105105
"location": {
106106
"kind": "codebeamer",
107-
"cb_root": "https://localhost:8999",
107+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
108108
"tracker": 60000,
109109
"item": 6,
110110
"version": 600,
@@ -124,7 +124,7 @@
124124
"tag": "req 7@700",
125125
"location": {
126126
"kind": "codebeamer",
127-
"cb_root": "https://localhost:8999",
127+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
128128
"tracker": 70000,
129129
"item": 7,
130130
"version": 700,
@@ -144,7 +144,7 @@
144144
"tag": "req 8@800",
145145
"location": {
146146
"kind": "codebeamer",
147-
"cb_root": "https://localhost:8999",
147+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
148148
"tracker": 80000,
149149
"item": 8,
150150
"version": 800,
@@ -164,7 +164,7 @@
164164
"tag": "req 9@900",
165165
"location": {
166166
"kind": "codebeamer",
167-
"cb_root": "https://localhost:8999",
167+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
168168
"tracker": 90000,
169169
"item": 9,
170170
"version": 900,
@@ -184,7 +184,7 @@
184184
"tag": "req 10@1000",
185185
"location": {
186186
"kind": "codebeamer",
187-
"cb_root": "https://localhost:8999",
187+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
188188
"tracker": 100000,
189189
"item": 10,
190190
"version": 1000,

tests_system/lobster_codebeamer/data/11_items.lobster

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tag": "req 1@100",
55
"location": {
66
"kind": "codebeamer",
7-
"cb_root": "https://localhost:8999",
7+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
88
"tracker": 10000,
99
"item": 1,
1010
"version": 100,
@@ -24,7 +24,7 @@
2424
"tag": "req 2@200",
2525
"location": {
2626
"kind": "codebeamer",
27-
"cb_root": "https://localhost:8999",
27+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
2828
"tracker": 20000,
2929
"item": 2,
3030
"version": 200,
@@ -44,7 +44,7 @@
4444
"tag": "req 3@300",
4545
"location": {
4646
"kind": "codebeamer",
47-
"cb_root": "https://localhost:8999",
47+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
4848
"tracker": 30000,
4949
"item": 3,
5050
"version": 300,
@@ -64,7 +64,7 @@
6464
"tag": "req 4@400",
6565
"location": {
6666
"kind": "codebeamer",
67-
"cb_root": "https://localhost:8999",
67+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
6868
"tracker": 40000,
6969
"item": 4,
7070
"version": 400,
@@ -84,7 +84,7 @@
8484
"tag": "req 5@500",
8585
"location": {
8686
"kind": "codebeamer",
87-
"cb_root": "https://localhost:8999",
87+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
8888
"tracker": 50000,
8989
"item": 5,
9090
"version": 500,
@@ -104,7 +104,7 @@
104104
"tag": "req 6@600",
105105
"location": {
106106
"kind": "codebeamer",
107-
"cb_root": "https://localhost:8999",
107+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
108108
"tracker": 60000,
109109
"item": 6,
110110
"version": 600,
@@ -124,7 +124,7 @@
124124
"tag": "req 7@700",
125125
"location": {
126126
"kind": "codebeamer",
127-
"cb_root": "https://localhost:8999",
127+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
128128
"tracker": 70000,
129129
"item": 7,
130130
"version": 700,
@@ -144,7 +144,7 @@
144144
"tag": "req 8@800",
145145
"location": {
146146
"kind": "codebeamer",
147-
"cb_root": "https://localhost:8999",
147+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
148148
"tracker": 80000,
149149
"item": 8,
150150
"version": 800,
@@ -164,7 +164,7 @@
164164
"tag": "req 9@900",
165165
"location": {
166166
"kind": "codebeamer",
167-
"cb_root": "https://localhost:8999",
167+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
168168
"tracker": 90000,
169169
"item": 9,
170170
"version": 900,
@@ -184,7 +184,7 @@
184184
"tag": "req 10@1000",
185185
"location": {
186186
"kind": "codebeamer",
187-
"cb_root": "https://localhost:8999",
187+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
188188
"tracker": 100000,
189189
"item": 10,
190190
"version": 1000,
@@ -204,7 +204,7 @@
204204
"tag": "req 11@1100",
205205
"location": {
206206
"kind": "codebeamer",
207-
"cb_root": "https://localhost:8999",
207+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
208208
"tracker": 110000,
209209
"item": 11,
210210
"version": 1100,

tests_system/lobster_codebeamer/data/1_items.lobster

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tag": "req 1@100",
55
"location": {
66
"kind": "codebeamer",
7-
"cb_root": "https://localhost:8999",
7+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
88
"tracker": 10000,
99
"item": 1,
1010
"version": 100,

tests_system/lobster_codebeamer/data/4_items.lobster

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tag": "req 1@100",
55
"location": {
66
"kind": "codebeamer",
7-
"cb_root": "https://localhost:8999",
7+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
88
"tracker": 10000,
99
"item": 1,
1010
"version": 100,
@@ -24,7 +24,7 @@
2424
"tag": "req 2@200",
2525
"location": {
2626
"kind": "codebeamer",
27-
"cb_root": "https://localhost:8999",
27+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
2828
"tracker": 20000,
2929
"item": 2,
3030
"version": 200,
@@ -44,7 +44,7 @@
4444
"tag": "req 3@300",
4545
"location": {
4646
"kind": "codebeamer",
47-
"cb_root": "https://localhost:8999",
47+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
4848
"tracker": 30000,
4949
"item": 3,
5050
"version": 300,
@@ -64,7 +64,7 @@
6464
"tag": "req 4@400",
6565
"location": {
6666
"kind": "codebeamer",
67-
"cb_root": "https://localhost:8999",
67+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
6868
"tracker": 40000,
6969
"item": 4,
7070
"version": 400,

tests_system/lobster_codebeamer/data/5_items.lobster

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tag": "req 1@100",
55
"location": {
66
"kind": "codebeamer",
7-
"cb_root": "https://localhost:8999",
7+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
88
"tracker": 10000,
99
"item": 1,
1010
"version": 100,
@@ -24,7 +24,7 @@
2424
"tag": "req 2@200",
2525
"location": {
2626
"kind": "codebeamer",
27-
"cb_root": "https://localhost:8999",
27+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
2828
"tracker": 20000,
2929
"item": 2,
3030
"version": 200,
@@ -44,7 +44,7 @@
4444
"tag": "req 3@300",
4545
"location": {
4646
"kind": "codebeamer",
47-
"cb_root": "https://localhost:8999",
47+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
4848
"tracker": 30000,
4949
"item": 3,
5050
"version": 300,
@@ -64,7 +64,7 @@
6464
"tag": "req 4@400",
6565
"location": {
6666
"kind": "codebeamer",
67-
"cb_root": "https://localhost:8999",
67+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
6868
"tracker": 40000,
6969
"item": 4,
7070
"version": 400,
@@ -84,7 +84,7 @@
8484
"tag": "req 5@500",
8585
"location": {
8686
"kind": "codebeamer",
87-
"cb_root": "https://localhost:8999",
87+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
8888
"tracker": 50000,
8989
"item": 5,
9090
"version": 500,

tests_system/lobster_codebeamer/data/6_items.lobster

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tag": "req 1@100",
55
"location": {
66
"kind": "codebeamer",
7-
"cb_root": "https://localhost:8999",
7+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
88
"tracker": 10000,
99
"item": 1,
1010
"version": 100,
@@ -24,7 +24,7 @@
2424
"tag": "req 2@200",
2525
"location": {
2626
"kind": "codebeamer",
27-
"cb_root": "https://localhost:8999",
27+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
2828
"tracker": 20000,
2929
"item": 2,
3030
"version": 200,
@@ -44,7 +44,7 @@
4444
"tag": "req 3@300",
4545
"location": {
4646
"kind": "codebeamer",
47-
"cb_root": "https://localhost:8999",
47+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
4848
"tracker": 30000,
4949
"item": 3,
5050
"version": 300,
@@ -64,7 +64,7 @@
6464
"tag": "req 4@400",
6565
"location": {
6666
"kind": "codebeamer",
67-
"cb_root": "https://localhost:8999",
67+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
6868
"tracker": 40000,
6969
"item": 4,
7070
"version": 400,
@@ -84,7 +84,7 @@
8484
"tag": "req 5@500",
8585
"location": {
8686
"kind": "codebeamer",
87-
"cb_root": "https://localhost:8999",
87+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
8888
"tracker": 50000,
8989
"item": 5,
9090
"version": 500,
@@ -104,7 +104,7 @@
104104
"tag": "req 6@600",
105105
"location": {
106106
"kind": "codebeamer",
107-
"cb_root": "https://localhost:8999",
107+
"cb_root": "https://localhost:MOCK_SERVER_PORT",
108108
"tracker": 60000,
109109
"item": 6,
110110
"version": 600,

0 commit comments

Comments
 (0)