Skip to content

Commit 9c0052c

Browse files
authored
chore: Tune up Temporal Dev Server db config in stress tests (#1572)
1 parent 89d0353 commit 9c0052c

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ jobs:
278278
if: matrix.server == 'cli'
279279
shell: bash
280280
run: |
281-
temporal server start-dev --headless &> /tmp/devserver.log &
281+
temporal server start-dev \
282+
--db-filename temporal.sqlite \
283+
--sqlite-pragma journal_mode=WAL \
284+
--sqlite-pragma synchronous=OFF \
285+
--headless &> /tmp/devserver.log &
282286
283287
- name: Run Tests
284288
run: npm test
@@ -394,7 +398,11 @@ jobs:
394398
if: matrix.server == 'cli'
395399
shell: bash
396400
run: |
397-
temporal server start-dev --headless &
401+
temporal server start-dev \
402+
--db-filename temporal.sqlite \
403+
--sqlite-pragma journal_mode=WAL \
404+
--sqlite-pragma synchronous=OFF \
405+
--headless &
398406
399407
# We write the certs to disk because it serves the sample. Written into /tmp/temporal-certs
400408
- name: Create certs dir

.github/workflows/stress.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ jobs:
113113
- name: Run Temporal CLI
114114
shell: bash
115115
run: |
116-
temporal server start-dev --headless &
116+
temporal server start-dev \
117+
--db-filename temporal.sqlite \
118+
--sqlite-pragma journal_mode=WAL \
119+
--sqlite-pragma synchronous=OFF \
120+
--headless &
117121
118122
- name: Run tests
119123
run: |

packages/test/src/test-workflows.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ test('Signals/Updates/Activities/Timers have coherent promise completion orderin
22362236
seq: 1,
22372237
activityId: '1',
22382238
activityType: 'myActivity',
2239-
scheduleToCloseTimeout: msToTs('1s'),
2239+
scheduleToCloseTimeout: msToTs('10s'),
22402240
taskQueue: 'test-activity',
22412241
doNotEagerlyExecute: false,
22422242
versioningIntent: coresdk.common.VersioningIntent.UNSPECIFIED,
@@ -2282,7 +2282,7 @@ test('Signals/Updates/Activities/Timers have coherent promise completion orderin
22822282
seq: 1,
22832283
activityId: '1',
22842284
activityType: 'myActivity',
2285-
scheduleToCloseTimeout: msToTs('1s'),
2285+
scheduleToCloseTimeout: msToTs('10s'),
22862286
taskQueue: 'test-activity',
22872287
doNotEagerlyExecute: false,
22882288
versioningIntent: coresdk.common.VersioningIntent.UNSPECIFIED,
@@ -2331,7 +2331,7 @@ test('Signals/Updates/Activities/Timers have coherent promise completion orderin
23312331
seq: 1,
23322332
activityId: '1',
23332333
activityType: 'myActivity',
2334-
scheduleToCloseTimeout: msToTs('1s'),
2334+
scheduleToCloseTimeout: msToTs('10s'),
23352335
taskQueue: 'test-activity',
23362336
doNotEagerlyExecute: false,
23372337
versioningIntent: coresdk.common.VersioningIntent.UNSPECIFIED,

packages/test/src/workflows/signals-timers-activities-order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function signalsActivitiesTimersPromiseOrdering(): Promise<boolean[
4747

4848
(async () => {
4949
await wf.scheduleActivity('myActivity', [], {
50-
scheduleToCloseTimeout: '1s',
50+
scheduleToCloseTimeout: '10s',
5151
taskQueue: `${wf.workflowInfo().taskQueue}-activity`,
5252
});
5353
activityCompleted = true;

0 commit comments

Comments
 (0)