Skip to content

Commit c891597

Browse files
jsonv2
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent 147d9f8 commit c891597

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.buildkite/pipeline.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
GOLANGCI_LINT_CACHE: $HOME/.cache/golangci-lint
1919
HELM_CHART_REPO: git@github.com:theopenlane/openlane-infra.git
2020
HELM_CHART_PATH: charts/openlane
21+
GOEXPERIMENT: jsonv2
2122

2223
secrets:
2324
- GITHUB_TOKEN
@@ -59,6 +60,7 @@ steps:
5960
environment:
6061
- "CGO_ENABLED=0"
6162
- "GOTOOLCHAIN=auto"
63+
- "GOEXPERIMENT=jsonv2"
6264
- label: ":yaml: generate config"
6365
key: "generate_config"
6466
cancel_on_build_failing: true
@@ -80,6 +82,7 @@ steps:
8082
environment:
8183
- "CGO_ENABLED=0"
8284
- "GOTOOLCHAIN=auto"
85+
- "GOEXPERIMENT=jsonv2"
8386
- label: ":construction: create draft config PR"
8487
key: "draft_pr_automation"
8588
depends_on: "generate_config"
@@ -103,6 +106,7 @@ steps:
103106
- "HELM_CHART_PATH"
104107
- "SLACK_WEBHOOK_URL"
105108
- "BUILDKITE_BUILD_CHECKOUT_PATH=/workdir"
109+
- "GOEXPERIMENT=jsonv2"
106110
- label: ":link: link PRs"
107111
key: "link_pr_automation"
108112
depends_on: "draft_pr_automation"
@@ -127,6 +131,7 @@ steps:
127131
- "GITHUB_SSH_PRIVATE_KEY"
128132
- "SLACK_WEBHOOK_URL"
129133
- "BUILDKITE_BUILD_CHECKOUT_PATH=/workdir"
134+
- "GOEXPERIMENT=jsonv2"
130135
- label: ":helm: update helm chart"
131136
key: "helm_automation"
132137
depends_on: "generate_config"
@@ -151,6 +156,7 @@ steps:
151156
- "HELM_CHART_PATH"
152157
- "SLACK_WEBHOOK_URL"
153158
- "BUILDKITE_BUILD_CHECKOUT_PATH=/workdir"
159+
- "GOEXPERIMENT=jsonv2"
154160
- label: ":arrows_counterclockwise: close draft config PRs"
155161
key: "post_merge_automation"
156162
depends_on: "helm_automation"
@@ -174,6 +180,7 @@ steps:
174180
- "HELM_CHART_PATH"
175181
- "SLACK_WEBHOOK_URL"
176182
- "BUILDKITE_BUILD_CHECKOUT_PATH=/workdir"
183+
- "GOEXPERIMENT=jsonv2"
177184
- label: ":broom: cleanup draft PRs"
178185
key: "cleanup_draft_prs"
179186
depends_on: "post_merge_automation"
@@ -188,6 +195,7 @@ steps:
188195
- "GITHUB_TOKEN"
189196
- "GITHUB_SSH_PRIVATE_KEY"
190197
- "HELM_CHART_REPO"
198+
- "GOEXPERIMENT=jsonv2"
191199
- label: ":rocket: update image tag for release"
192200
key: "image_tag_automation"
193201
depends_on:
@@ -210,6 +218,7 @@ steps:
210218
- "HELM_CHART_PATH"
211219
- "SLACK_WEBHOOK_URL"
212220
- "BUILDKITE_BUILD_CHECKOUT_PATH=/workdir"
221+
- "GOEXPERIMENT=jsonv2"
213222
- group: ":golangci-lint: Linter"
214223
key: "linter"
215224
steps:
@@ -237,6 +246,7 @@ steps:
237246
environment:
238247
- "CGO_ENABLED=0"
239248
- "GOTOOLCHAIN=auto"
249+
- "GOEXPERIMENT=jsonv2"
240250
- label: ":golangci-lint: lint handlers package :lint-roller:"
241251
if_changed:
242252
- "internal/httpserve/handlers/**.go"
@@ -261,6 +271,7 @@ steps:
261271
environment:
262272
- "GOTOOLCHAIN=auto"
263273
- "CGO_ENABLED=0"
274+
- "GOEXPERIMENT=jsonv2"
264275
- label: ":golangci-lint: lint - non-api packages :lint-roller:"
265276
if_changed:
266277
include:
@@ -289,6 +300,7 @@ steps:
289300
environment:
290301
- "CGO_ENABLED=0"
291302
- "GOTOOLCHAIN=auto"
303+
- "GOEXPERIMENT=jsonv2"
292304
- group: ":test_tube: Tests"
293305
key: "go_tests"
294306
steps:
@@ -327,6 +339,7 @@ steps:
327339
- "TEST_DB_CONTAINER_EXPIRY=20" # container expiry in minutes
328340
- "TEST_DB_HOST=172.17.0.1" # docker host ip on linux
329341
- "CGO_ENABLED=0"
342+
- "GOEXPERIMENT=jsonv2"
330343
artifact_paths: ["coverage-graph.out", "junit-graph.xml"]
331344
- label: ":golang: go test - handlers only"
332345
agents:
@@ -363,6 +376,7 @@ steps:
363376
- "TEST_DB_CONTAINER_EXPIRY=20" # container expiry in minutes
364377
- "TEST_DB_HOST=172.17.0.1" # docker host ip on linux
365378
- "CGO_ENABLED=0"
379+
- "GOEXPERIMENT=jsonv2"
366380
artifact_paths: ["coverage-handlers.out", "junit-handlers.xml"]
367381
- label: ":golang: go test - all except api"
368382
if_changed:
@@ -399,6 +413,7 @@ steps:
399413
- "TEST_DB_CONTAINER_EXPIRY=20" # container expiry in minutes
400414
- "TEST_DB_HOST=172.17.0.1" # docker host ip on linux
401415
- "CGO_ENABLED=0"
416+
- "GOEXPERIMENT=jsonv2"
402417
artifact_paths: ["coverage-no-api.out", "junit-no-api.xml"]
403418
- label: ":auth0: fga model test"
404419
if_changed:
@@ -503,6 +518,7 @@ steps:
503518
- "SONAR_TOKEN"
504519
- "SONAR_HOST_URL=$SONAR_HOST"
505520
- "SONAR_SCANNER_OPTS=-Dsonar.pullrequest.branch=$BUILDKITE_BRANCH -Dsonar.pullrequest.base=$BUILDKITE_PULL_REQUEST_BASE_BRANCH -Dsonar.pullrequest.key=$BUILDKITE_PULL_REQUEST"
521+
- "GOEXPERIMENT=jsonv2"
506522
- label: ":github: upload reports"
507523
key: "scan-upload"
508524
agents:
@@ -576,6 +592,7 @@ steps:
576592
- CGO_ENABLED=0
577593
- GOOS=linux
578594
- GOFLAGS="-buildvcs=false -gcflags=all=-l"
595+
- "GOEXPERIMENT=jsonv2"
579596
command: ["task", "go:build:ci"]
580597
- label: ":terminal: build cli"
581598
key: "gobuild-cli"
@@ -603,6 +620,7 @@ steps:
603620
- GOOS=darwin
604621
- GOARCH=arm64
605622
- GOFLAGS="-buildvcs=false -gcflags=all=-l"
623+
- "GOEXPERIMENT=jsonv2"
606624
command: ["task", "go:build-cli:ci"]
607625
- label: ":golang: build release"
608626
key: "gobuild-server-release"
@@ -624,6 +642,7 @@ steps:
624642
environment:
625643
- CGO_ENABLED=0
626644
- GOOS=linux
645+
- "GOEXPERIMENT=jsonv2"
627646
command: ["task", "go:build:ci"]
628647
- label: ":terminal: build cli release"
629648
if: build.tag != null && build.tag =~ /cli\//
@@ -646,6 +665,7 @@ steps:
646665
- CGO_ENABLED=0
647666
- GOOS=darwin
648667
- GOARCH=arm64
668+
- "GOEXPERIMENT=jsonv2"
649669
command: ["task", "go:build-cli:ci"]
650670
- group: ":database: schema lint"
651671
key: "database"

Taskfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ env:
3939
# CLI demo environment variables
4040
ADMIN_USER_EMAIL: "admin@admin.theopenlane.io"
4141
GO_INLINE_FLAG: "-gcflags=all=-l"
42+
GOEXPERIMENT: jsonv2
4243

4344
tasks:
4445
default:

0 commit comments

Comments
 (0)