Compare commits
1 Commits
ee306c18f9
...
ce94d89250
| Author | SHA1 | Date | |
|---|---|---|---|
|
ce94d89250
|
@@ -247,17 +247,16 @@ init_prof_test(void **state)
|
||||
const char *build_env = getenv("PROF_BUILD_INDEX");
|
||||
int build_idx = build_env ? atoi(build_env) : 0;
|
||||
|
||||
/* Calculate port base: each build uses a different range of TEST_GROUPS ports.
|
||||
* Build 0 (local/default): 5230-5233, Full: 5230-5233, Minimal: 5234-5237, etc.
|
||||
* Build 0 and Full share the same range because build 0 is for local runs or sequential run (no parallel builds),
|
||||
* while Full/Minimal/NoEncrypt/Default are used in CI where they run in parallel. */
|
||||
int port_base = 5230 + ((build_idx > 0 ? build_idx - 1 : 0) * TEST_GROUPS);
|
||||
/* Calculate port base: each build uses a separate block of
|
||||
* TEST_GROUPS * PORTS_PER_GROUP ports so parallel CI builds don't collide.
|
||||
* Build 0/1: 5230, Build 2: 5430, Build 3: 5630, etc. */
|
||||
#define PORTS_PER_GROUP 50
|
||||
int port_base = 5230 + ((build_idx > 0 ? build_idx - 1 : 0) * TEST_GROUPS * PORTS_PER_GROUP);
|
||||
|
||||
/* Each group gets a dedicated range of ports for parallel execution.
|
||||
* Group 1: port_base..port_base+PORTS_PER_GROUP-1
|
||||
* Group 2: port_base+PORTS_PER_GROUP..port_base+2*PORTS_PER_GROUP-1, etc.
|
||||
* Ports in TIME_WAIT from previous tests are skipped automatically. */
|
||||
#define PORTS_PER_GROUP 50
|
||||
gboolean started = FALSE;
|
||||
|
||||
if (group >= 1 && group <= TEST_GROUPS) {
|
||||
|
||||
Reference in New Issue
Block a user