Skip to content

Commit

Permalink
Update dependencies for 0.26.0 release (#484)
Browse files Browse the repository at this point in the history
* Update dependencies for 0.26.0 release.

* Fix build.

* Fix unit tests.
  • Loading branch information
alexshtin authored Jun 28, 2020
1 parent 172fa9f commit f73889c
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 50 deletions.
4 changes: 2 additions & 2 deletions canary/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func newWorkflowOptions(id string, executionTimeout time.Duration) client.StartW
TaskQueue: taskQueueName,
WorkflowRunTimeout: executionTimeout,
WorkflowTaskTimeout: decisionTaskTimeout,
WorkflowIDReusePolicy: client.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
}
}

Expand All @@ -142,7 +142,7 @@ func newChildWorkflowOptions(namespace string, wfID string) workflow.ChildWorkfl
TaskQueue: taskQueueName,
WorkflowRunTimeout: childWorkflowTimeout,
WorkflowTaskTimeout: decisionTaskTimeout,
WorkflowIDReusePolicy: client.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
}
}

Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose-cockroach.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
command: ["start", "--insecure"]

temporal:
image: temporalio/auto-setup:0.25.0
image: temporalio/auto-setup:0.26.0
ports:
- "7233:7233"
environment:
Expand All @@ -30,7 +30,7 @@ services:
- cockroach:postgres

temporal-web:
image: temporalio/web:0.25.0
image: temporalio/web:0.26.0
environment:
- "TEMPORAL_GRPC_ENDPOINT=temporal:7233"
ports:
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms100m -Xmx100m
temporal:
image: temporalio/server:${SERVER_TAG:-0.25.0}
image: temporalio/server:${SERVER_TAG:-0.26.0}
ports:
- "7233:7233"
environment:
Expand All @@ -41,15 +41,15 @@ services:
- kafka
- elasticsearch
temporal-admin-tools:
image: temporalio/admin-tools:${ADMIN_TOOLS_TAG:-0.25.0}
image: temporalio/admin-tools:${ADMIN_TOOLS_TAG:-0.26.0}
stdin_open: true
tty: true
environment:
- "TEMPORAL_CLI_ADDRESS=temporal:7233"
depends_on:
- temporal
temporal-web:
image: temporalio/web:0.25.0
image: temporalio/web:0.26.0
environment:
- "TEMPORAL_GRPC_ENDPOINT=temporal:7233"
ports:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- "8125:8125"
- "8126:8126"
temporal:
image: temporalio/auto-setup:0.25.0
image: temporalio/auto-setup:0.26.0
ports:
- "7233:7233"
environment:
Expand All @@ -28,7 +28,7 @@ services:
- mysql
- statsd
temporal-web:
image: temporalio/web:0.25.0
image: temporalio/web:0.26.0
environment:
- "TEMPORAL_GRPC_ENDPOINT=temporal:7233"
ports:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- "8125:8125"
- "8126:8126"
temporal:
image: temporalio/auto-setup:0.25.0
image: temporalio/auto-setup:0.26.0
ports:
- "7233:7233"
environment:
Expand All @@ -29,7 +29,7 @@ services:
depends_on:
- postgres
temporal-web:
image: temporalio/web:0.25.0
image: temporalio/web:0.26.0
environment:
- "TEMPORAL_GRPC_ENDPOINT=temporal:7233"
ports:
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
ports:
- "9042:9042"
temporal:
image: temporalio/auto-setup:0.25.0
image: temporalio/auto-setup:0.26.0
ports:
- "7233:7233"
environment:
Expand All @@ -15,7 +15,7 @@ services:
depends_on:
- cassandra
temporal-web:
image: temporalio/web:0.25.0
image: temporalio/web:0.26.0
environment:
- "TEMPORAL_GRPC_ENDPOINT=temporal:7233"
ports:
Expand Down
8 changes: 2 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ require (
github.com/urfave/cli v1.22.4
github.com/valyala/fastjson v1.5.1
github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
go.temporal.io/temporal v0.25.1-0.20200627045318-82db0bc557de
go.temporal.io/temporal-proto v0.25.1-0.20200626222731-b3949ecf5fb6
go.temporal.io/temporal v0.26.0
go.temporal.io/temporal-proto v0.26.0
go.uber.org/atomic v1.6.0
go.uber.org/multierr v1.5.0
go.uber.org/zap v1.15.0
Expand All @@ -84,7 +84,3 @@ require (

// TODO https://github.com/uber/cadence/issues/2863
replace github.com/jmoiron/sqlx v1.2.0 => github.com/longquanzheng/sqlx v0.0.0-20191125235044-053e6130695c

replace go.temporal.io/temporal-proto v0.25.0 => ../temporal-proto-go

replace go.temporal.io/temporal v0.25.0 => ../temporal-go-sdk
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.3 h1:8sGtKOrtQqkN1bp2AtX+misvLIlOmsEsNd+9NIcPEm8=
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.temporal.io/temporal v0.25.1-0.20200627045318-82db0bc557de h1:1GaIv4aFVh9BhNw9a1rIxvdQUjdT1HiD8Zzi5b626k0=
go.temporal.io/temporal v0.25.1-0.20200627045318-82db0bc557de/go.mod h1:XDYU4DmAiOkZ66JblgpbirFXHxdWKSC9dhGUXgX8EI4=
go.temporal.io/temporal-proto v0.25.1-0.20200626222731-b3949ecf5fb6 h1:cm890W0aYf2qQGHimklEA00EM2ZQ8HIfAILwFJtpLCY=
go.temporal.io/temporal-proto v0.25.1-0.20200626222731-b3949ecf5fb6/go.mod h1:E2Ro+CJXq+Wd26/2cMb7kIOG2fv8vXxouNj4jJC93dw=
go.temporal.io/temporal v0.26.0 h1:qqhnjtykSXMYHyeW/rQTCxSYCJnbQGNJf9l3Cm6EDvU=
go.temporal.io/temporal v0.26.0/go.mod h1:AC7G0RzJoMPJARqxvG5gA7z+n8O3whLseDsViYD1uIU=
go.temporal.io/temporal-proto v0.26.0 h1:Ov+K19g4/n23fgIXkd7wmnmXTGP/MpbNVxUOql0pDSc=
go.temporal.io/temporal-proto v0.26.0/go.mod h1:E2Ro+CJXq+Wd26/2cMb7kIOG2fv8vXxouNj4jJC93dw=
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.6.0 h1:Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
Expand Down
2 changes: 1 addition & 1 deletion service/worker/archiver/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (c *client) sendArchiveSignal(ctx context.Context, request *ArchiveRequest,
TaskQueue: decisionTaskQueue,
WorkflowExecutionTimeout: workflowRunTimeout,
WorkflowTaskTimeout: workflowTaskTimeout,
WorkflowIDReusePolicy: sdkclient.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
}
signalCtx, cancel := context.WithTimeout(context.Background(), signalTimeout)
defer cancel()
Expand Down
28 changes: 14 additions & 14 deletions service/worker/archiver/testdata/archival_workflow_history_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
"markerRecordedEventAttributes": {
"markerName": "SideEffect",
"details": {
"side-effect-id": {"payloads": [{"metadata":{"encoding":"anNvbg=="},"data":"NQ=="}]},
"data": {"payloads": [{"metadata":{"encoding":"anNvbg=="},"data":"NQ=="}]}
"side-effect-id": {"payloads": [{"metadata":{"encoding":"anNvbg=="},"data":"Ng=="}]},
"data": {"payloads": [{"metadata":{"encoding":"anNvbg=="},"data":"Ng=="}]}
},
"decisionTaskCompletedEventId": 5
}
Expand All @@ -99,7 +99,7 @@
"version": -24,
"taskId": 6291600,
"timerStartedEventAttributes": {
"timerId": "1",
"timerId": "7",
"startToFireTimeoutSeconds": 1296000,
"decisionTaskCompletedEventId": 5
}
Expand All @@ -111,7 +111,7 @@
"version": -24,
"taskId": 6291601,
"activityTaskScheduledEventAttributes": {
"activityId": "2",
"activityId": "8",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -271,7 +271,7 @@
"version": -24,
"taskId": 6291631,
"activityTaskScheduledEventAttributes": {
"activityId": "4",
"activityId": "19",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -455,7 +455,7 @@
"version": -24,
"taskId": 6291664,
"activityTaskScheduledEventAttributes": {
"activityId": "6",
"activityId": "32",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -488,7 +488,7 @@
"version": -24,
"taskId": 6291665,
"activityTaskScheduledEventAttributes": {
"activityId": "7",
"activityId": "33",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -521,7 +521,7 @@
"version": -24,
"taskId": 6291666,
"activityTaskScheduledEventAttributes": {
"activityId": "8",
"activityId": "34",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -755,7 +755,7 @@
"version": -24,
"taskId": 6291738,
"activityTaskScheduledEventAttributes": {
"activityId": "12",
"activityId": "51",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -915,7 +915,7 @@
"version": -24,
"taskId": 6291767,
"activityTaskScheduledEventAttributes": {
"activityId": "14",
"activityId": "62",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -1075,7 +1075,7 @@
"version": -24,
"taskId": 6291796,
"activityTaskScheduledEventAttributes": {
"activityId": "16",
"activityId": "73",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -1235,7 +1235,7 @@
"version": -24,
"taskId": 6291856,
"activityTaskScheduledEventAttributes": {
"activityId": "18",
"activityId": "84",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -1395,7 +1395,7 @@
"version": -24,
"taskId": 6291885,
"activityTaskScheduledEventAttributes": {
"activityId": "20",
"activityId": "95",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down Expand Up @@ -1555,7 +1555,7 @@
"version": -24,
"taskId": 6291914,
"activityTaskScheduledEventAttributes": {
"activityId": "22",
"activityId": "106",
"activityType": {
"name": "uploadHistoryActivity"
},
Expand Down
4 changes: 1 addition & 3 deletions service/worker/archiver/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ import (
"github.com/stretchr/testify/suite"
"github.com/uber-go/tally"
"go.temporal.io/temporal/activity"
"go.uber.org/zap"

"go.temporal.io/temporal/testsuite"
"go.temporal.io/temporal/worker"
"go.temporal.io/temporal/workflow"
"go.uber.org/zap"

"github.com/temporalio/temporal/common/log"
"github.com/temporalio/temporal/common/log/loggerimpl"
Expand Down Expand Up @@ -170,6 +169,5 @@ func archivalWorkflowTest(ctx workflow.Context) error {
}

func (s *workflowSuite) registerWorkflowsForReplayer(env worker.WorkflowReplayer) {
env.RegisterWorkflow(archivalWorkflowTest)
env.RegisterWorkflowWithOptions(archivalWorkflow, workflow.RegisterOptions{Name: archivalWorkflowFnName})
}
3 changes: 2 additions & 1 deletion service/worker/parentclosepolicy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"math/rand"
"time"

enumspb "go.temporal.io/temporal-proto/enums/v1"
sdkclient "go.temporal.io/temporal/client"

"github.com/temporalio/temporal/common/log"
Expand Down Expand Up @@ -80,7 +81,7 @@ func (c *clientImpl) SendParentClosePolicyRequest(request Request) error {
ID: workflowID,
TaskQueue: processorTaskQueueName,
WorkflowTaskTimeout: time.Minute,
WorkflowIDReusePolicy: sdkclient.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
}
signalCtx, cancel := context.WithTimeout(context.Background(), signalTimeout)
defer cancel()
Expand Down
15 changes: 8 additions & 7 deletions service/worker/scanner/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ import (
"time"

"go.temporal.io/temporal"
enumspb "go.temporal.io/temporal-proto/enums/v1"
"go.temporal.io/temporal/activity"
cclient "go.temporal.io/temporal/client"
"go.temporal.io/temporal/client"
"go.temporal.io/temporal/workflow"

"github.com/temporalio/temporal/common/log/tag"
Expand Down Expand Up @@ -81,23 +82,23 @@ var (
HeartbeatTimeout: 5 * time.Minute,
RetryPolicy: &activityRetryPolicy,
}
tlScannerWFStartOptions = cclient.StartWorkflowOptions{
tlScannerWFStartOptions = client.StartWorkflowOptions{
ID: tqScannerWFID,
TaskQueue: tqScannerTaskQueueName,
WorkflowRunTimeout: 5 * 24 * time.Hour,
WorkflowIDReusePolicy: cclient.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
CronSchedule: "0 */12 * * *",
}
historyScannerWFStartOptions = cclient.StartWorkflowOptions{
historyScannerWFStartOptions = client.StartWorkflowOptions{
ID: historyScannerWFID,
TaskQueue: historyScannerTaskQueueName,
WorkflowIDReusePolicy: cclient.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
CronSchedule: "0 */12 * * *",
}
executionsScannerWFStartOptions = cclient.StartWorkflowOptions{
executionsScannerWFStartOptions = client.StartWorkflowOptions{
ID: executionsScannerWFID,
TaskQueue: executionsScannerTaskQueueName,
WorkflowIDReusePolicy: cclient.WorkflowIDReusePolicyAllowDuplicate,
WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
CronSchedule: "0 */12 * * *",
}
)
Expand Down
2 changes: 1 addition & 1 deletion tools/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
const (
// Version is the controlled version string. It should be updated every time
// before we release a new version.
Version = "0.25.0"
Version = "0.26.0"
)

// SetFactory is used to set the ClientFactory global
Expand Down

0 comments on commit f73889c

Please sign in to comment.