Skip to content

Commit

Permalink
Enable workflow update in server integration tests (temporalio#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin authored Jan 18, 2024
1 parent 9e79f5f commit e4113bd
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up -d temporal-server cassandra elasticsearch
- name: Run SDK-features tests directly
Expand All @@ -101,10 +101,10 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up --no-log-prefix --exit-code-from features-tests-cs features-tests-cs
- name: Tear down docker compose
if: inputs.docker-image-artifact-name && (success() || failure())
run: docker-compose -f /tmp/server-docker/docker-compose.yml -f ./dockerfiles/docker-compose.for-server-image.yaml down -v
run: docker-compose -f ./dockerfiles/docker-compose.for-server-image.yaml -f /tmp/server-docker/docker-compose.yml down -v
6 changes: 3 additions & 3 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up -d temporal-server cassandra elasticsearch
- name: Run SDK-features tests directly
Expand All @@ -85,10 +85,10 @@ jobs:
WAIT_EXTRA_FOR_NAMESPACE: true
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up --no-log-prefix --exit-code-from features-tests-go features-tests-go
- name: Tear down docker compose
if: inputs.docker-image-artifact-name && (success() || failure())
run: docker-compose -f /tmp/server-docker/docker-compose.yml -f ./dockerfiles/docker-compose.for-server-image.yaml down -v
run: docker-compose -f ./dockerfiles/docker-compose.for-server-image.yaml -f /tmp/server-docker/docker-compose.yml down -v
6 changes: 3 additions & 3 deletions .github/workflows/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up -d temporal-server cassandra elasticsearch
- name: Run SDK-features tests directly
Expand All @@ -89,10 +89,10 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up --no-log-prefix --exit-code-from features-tests-java features-tests-java
- name: Tear down docker compose
if: inputs.docker-image-artifact-name && (success() || failure())
run: docker-compose -f /tmp/server-docker/docker-compose.yml -f ./dockerfiles/docker-compose.for-server-image.yaml down -v
run: docker-compose -f ./dockerfiles/docker-compose.for-server-image.yaml -f /tmp/server-docker/docker-compose.yml down -v
6 changes: 3 additions & 3 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up -d temporal-server cassandra elasticsearch
- name: Run SDK-features tests directly
Expand All @@ -108,10 +108,10 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up --no-log-prefix --exit-code-from features-tests-py features-tests-py
- name: Tear down docker compose
if: inputs.docker-image-artifact-name && (success() || failure())
run: docker-compose -f /tmp/server-docker/docker-compose.yml -f ./dockerfiles/docker-compose.for-server-image.yaml down -v
run: docker-compose -f ./dockerfiles/docker-compose.for-server-image.yaml -f /tmp/server-docker/docker-compose.yml down -v
6 changes: 3 additions & 3 deletions .github/workflows/typescript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up -d temporal-server cassandra elasticsearch
- name: Run SDK-features tests directly
Expand All @@ -108,10 +108,10 @@ jobs:
if: inputs.docker-image-artifact-name
run: |
docker-compose \
-f /tmp/server-docker/docker-compose.yml \
-f ./dockerfiles/docker-compose.for-server-image.yaml \
-f /tmp/server-docker/docker-compose.yml \
up --no-log-prefix --exit-code-from features-tests-ts features-tests-ts
- name: Tear down docker compose
if: inputs.docker-image-artifact-name && (success() || failure())
run: docker-compose -f /tmp/server-docker/docker-compose.yml -f ./dockerfiles/docker-compose.for-server-image.yaml down -v
run: docker-compose -f ./dockerfiles/docker-compose.for-server-image.yaml -f /tmp/server-docker/docker-compose.yml down -v
2 changes: 2 additions & 0 deletions dockerfiles/docker-compose.for-server-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- ENABLE_ES=true
- ES_SEEDS=elasticsearch
- ES_VERSION=v7
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
ports:
- '7233:7233'
depends_on:
Expand Down
6 changes: 6 additions & 0 deletions dockerfiles/dynamicconfig/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
frontend.enableUpdateWorkflowExecution:
- value: true
constraints: {}
frontend.enableUpdateWorkflowExecutionAsyncAccepted:
- value: true
constraints: {}

0 comments on commit e4113bd

Please sign in to comment.