Skip to content

Commit ba91135

Browse files
authored
Merge branch 'master' into jjtimmons/fix/jsonEncoding-Unmarshal
2 parents e400847 + fa329fd commit ba91135

File tree

207 files changed

+27204
-9020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+27204
-9020
lines changed

.buildkite/pipeline.yml

Lines changed: 101 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,135 @@
1+
# `yq 'explode(.)' .buildkite/pipeline.yml` to view expanded anchors/aliases
2+
container:
3+
kubernetes: &kubernetes
4+
gitEnvFrom:
5+
- secretRef:
6+
name: oss-github-ssh-credentials
7+
sidecars:
8+
- image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-dind:v1
9+
volumeMounts:
10+
- mountPath: /var/run/
11+
name: docker-sock
12+
securityContext:
13+
privileged: true
14+
allowPrivilegeEscalation: true
15+
mirrorVolumeMounts: true # CRITICAL: this must be at the same indentation level as sidecars
16+
podSpec: &podSpec
17+
containers:
18+
- &commandContainer
19+
image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-command-container:v2
20+
command:
21+
- |-
22+
echo "Command step was not overridden."
23+
exit 1
24+
volumeMounts:
25+
- mountPath: /var/run/
26+
name: docker-sock
27+
resources:
28+
requests:
29+
cpu: 7500m
30+
memory: 28G
31+
volumes:
32+
- name: docker-sock
33+
emptyDir: {}
34+
35+
agents:
36+
queue: "buildkite-gcp"
137
steps:
2-
- label: "fossa analyze"
3-
agents:
4-
queue: "init"
5-
docker: "*"
6-
command: ".buildkite/scripts/fossa.sh"
738
- label: ":golang: unit-test"
8-
agents:
9-
queue: "workers"
10-
docker: "*"
11-
command: "make unit_test"
1239
artifact_paths:
13-
- ".build/coverage/*.out"
40+
- ".build/*/coverage/*.out"
41+
- ".build/cover.out"
42+
- ".build/metadata.txt"
1443
plugins:
44+
- kubernetes:
45+
<<: *kubernetes
46+
podSpec:
47+
<<: *podSpec
48+
containers:
49+
- <<: *commandContainer
50+
command:
51+
- |-
52+
make unit_test
53+
.buildkite/scripts/gen_coverage_metadata.sh .build/metadata.txt
54+
- docker-compose#v3.0.0:
55+
run: unit-test
56+
config: docker/buildkite/docker-compose.yml
57+
58+
- label: ":golangci-lint: validate code is clean"
59+
artifact_paths: [ ]
60+
retry:
61+
automatic:
62+
limit: 2
63+
plugins:
64+
- kubernetes:
65+
<<: *kubernetes
66+
podSpec:
67+
<<: *podSpec
68+
containers:
69+
- <<: *commandContainer
70+
command:
71+
- |-
72+
./scripts/golint.sh
1573
- docker-compose#v3.0.0:
1674
run: unit-test
1775
config: docker/buildkite/docker-compose.yml
1876

1977
- label: ":golang: integration-test-sticky-off"
20-
agents:
21-
queue: "workers"
22-
docker: "*"
23-
command: "make integ_test_sticky_off"
2478
artifact_paths:
25-
- ".build/coverage/*.out"
79+
- ".build/*/coverage/*.out"
2680
retry:
2781
automatic:
28-
limit: 1
82+
limit: 2
2983
plugins:
84+
- kubernetes:
85+
<<: *kubernetes
86+
podSpec:
87+
<<: *podSpec
88+
containers:
89+
- <<: *commandContainer
90+
command:
91+
- |-
92+
make integ_test_sticky_off
3093
- docker-compose#v3.0.0:
3194
run: integ-test
3295
config: docker/buildkite/docker-compose.yml
3396

3497
- label: ":golang: integration-test-sticky-on"
35-
agents:
36-
queue: "workers"
37-
docker: "*"
38-
command: "make integ_test_sticky_on"
3998
artifact_paths:
40-
- ".build/coverage/*.out"
99+
- ".build/*/coverage/*.out"
41100
retry:
42101
automatic:
43-
limit: 1
102+
limit: 2
44103
plugins:
104+
- kubernetes:
105+
<<: *kubernetes
106+
podSpec:
107+
<<: *podSpec
108+
containers:
109+
- <<: *commandContainer
110+
command:
111+
- |-
112+
make integ_test_sticky_on
45113
- docker-compose#v3.0.0:
46114
run: integ-test
47115
config: docker/buildkite/docker-compose.yml
48116

49117
- label: ":golang: integration-test-grpc-adapter"
50-
agents:
51-
queue: "workers"
52-
docker: "*"
53-
command: "make integ_test_grpc"
54118
artifact_paths:
55-
- ".build/coverage/*.out"
119+
- ".build/*/coverage/*.out"
56120
retry:
57121
automatic:
58-
limit: 1
122+
limit: 2
59123
plugins:
124+
- kubernetes:
125+
<<: *kubernetes
126+
podSpec:
127+
<<: *podSpec
128+
containers:
129+
- <<: *commandContainer
130+
command:
131+
- |-
132+
make integ_test_grpc
60133
- docker-compose#v3.0.0:
61134
run: integ-test-grpc
62135
config: docker/buildkite/docker-compose.yml
63-
64-
- wait
65-
66-
- label: ":golang: code-coverage"
67-
agents:
68-
queue: "workers"
69-
docker: "*"
70-
command: ".buildkite/scripts/gocov.sh"
71-
plugins:
72-
- docker-compose#v3.0.0:
73-
run: coverage-report
74-
config: docker/buildkite/docker-compose.yml

.buildkite/scripts/fossa.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -exo pipefail
44

5-
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b ~/
5+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash -s -- -b ~/
66

77
~/fossa analyze
88

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
5+
# This script generates coverage metadata for the coverage report.
6+
# Output is used by SonarQube integration in Uber and not used by OS repo coverage tool itself.
7+
8+
# Example output:
9+
# commit-sha: 6953daa563e8e44512bc349c9608484cfd4ec4ff
10+
# timestamp: 2024-03-04T19:29:16Z
11+
12+
# Required env variables:
13+
# - BUILDKITE_BRANCH
14+
# - BUILDKITE_COMMIT
15+
16+
output_path="$1"
17+
18+
if [ "$BUILDKITE_BRANCH" != "master" ] && [ "$BUILDKITE_BRANCH" != "origin/master" ]; then
19+
echo "Coverage metadata is only generated for master branch. Current branch: $BUILDKITE_BRANCH"
20+
exit 0
21+
fi
22+
23+
if [ -z "$BUILDKITE_COMMIT" ]; then
24+
echo "BUILDKITE_COMMIT is not set"
25+
exit 1
26+
fi
27+
28+
echo "commit-sha: $BUILDKITE_COMMIT" > "$output_path"
29+
echo "timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$output_path"
30+
31+
echo "Coverage metadata written to $output_path"

.buildkite/scripts/gocov.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

.fossa.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gen/go/cadence/cadence.go

Lines changed: 4336 additions & 1957 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)