Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,18 @@ workflowcheck: $(WORKFLOWCHECK)
check: lint shell-check

##### Tests #####
# verify-test-log reads the whole file, so a log left behind by an earlier run
# would be judged as if it belonged to this one.
clean-test-output:
@printf $(COLOR) "Delete test output..."
@rm -rf $(TEST_OUTPUT_ROOT)
@rm -f test.log
@go clean -testcache

build-tests:
@printf $(COLOR) "Build tests..."
@CGO_ENABLED=$(CGO_ENABLED) go test $(TEST_TAG_FLAG) -exec="true" -count=0 $(TEST_DIRS)
@CGO_ENABLED=$(CGO_ENABLED) go test $(TEST_TAG_FLAG) -exec="true" -count=0 $(filter-out $(MIXED_BRAIN_TEST_ROOT)%,$(TEST_DIRS))
@cd $(MIXED_BRAIN_TEST_ROOT) && CGO_ENABLED=1 go test $(TEST_TAG_FLAG) -exec="true" -count=0 ./...

unit-test: clean-test-output
@printf $(COLOR) "Run unit tests..."
Expand Down
50 changes: 50 additions & 0 deletions client/frontend/client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions client/frontend/metric_client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 75 additions & 0 deletions client/frontend/retryable_client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions cmd/tools/getproto/files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions common/api/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ var (
"RespondNexusTaskFailed": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"RequestCancelWorkflowExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"SignalWorkflowExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"NotifyChannel": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"RegisterChannelListener": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"UnregisterChannelListener": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"PollChannel": {Scope: ScopeNamespace, Access: AccessReadOnly, Polling: PollingCapable},
"DescribeChannel": {Scope: ScopeNamespace, Access: AccessReadOnly, Polling: PollingNone},
"SignalWithStartWorkflowExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"ResetWorkflowExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
"TerminateWorkflowExecution": {Scope: ScopeNamespace, Access: AccessWrite, Polling: PollingNone},
Expand Down
14 changes: 10 additions & 4 deletions common/metrics/otel_metrics_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,14 @@ func TestMeter(t *testing.T) {
cmpopts.SortSlices(func(x, y metricdata.Metrics) bool {
return x.Name < y.Name
}),
cmpopts.IgnoreFields(metricdata.DataPoint[int64]{}, "StartTime", "Time"),
cmpopts.IgnoreFields(metricdata.DataPoint[float64]{}, "StartTime", "Time"),
cmpopts.IgnoreFields(metricdata.HistogramDataPoint[int64]{}, "StartTime", "Time", "Bounds"),
// Exemplars are ignored rather than equated empty: the SDK hands back
// either a nil or an allocated-but-empty slice depending on whether
// its reservoir was ever touched, and equating empty globally would
// also hide a nil-versus-empty attribute set or data point.
cmpopts.IgnoreFields(metricdata.DataPoint[int64]{}, "StartTime", "Time", "Exemplars"),
cmpopts.IgnoreFields(metricdata.DataPoint[float64]{}, "StartTime", "Time", "Exemplars"),
cmpopts.IgnoreFields(
metricdata.HistogramDataPoint[int64]{}, "StartTime", "Time", "Bounds", "Exemplars"),
); diff != "" {
t.Errorf("mismatch (-want, +got):\n%s", diff)
}
Expand Down Expand Up @@ -264,7 +269,8 @@ func TestMeter_TimerInSeconds(t *testing.T) {
cmp.Comparer(func(a1, a2 attribute.Set) bool {
return a1.Equals(&a2)
}),
cmpopts.IgnoreFields(metricdata.HistogramDataPoint[float64]{}, "StartTime", "Time", "Bounds"),
cmpopts.IgnoreFields(
metricdata.HistogramDataPoint[float64]{}, "StartTime", "Time", "Bounds", "Exemplars"),
); diff != "" {
t.Errorf("mismatch (-want, +got):\n%s", diff)
}
Expand Down
Loading
Loading