Skip to content

Commit ea34ec7

Browse files
authored
chore(site): regenerate provisioner stub (#9151)
1 parent 04810cb commit ea34ec7

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

.github/workflows/ci.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,15 @@ jobs:
508508
- name: Setup Terraform
509509
uses: ./.github/actions/setup-tf
510510

511+
- name: Install Nix
512+
uses: DeterminateSystems/nix-installer-action@v4
513+
514+
- name: Run the Magic Nix Cache
515+
uses: DeterminateSystems/magic-nix-cache-action@v2
516+
511517
- name: Build
512518
run: |
513-
make -B site/out/index.html
519+
nix-shell --command 'make -B site/out/index.html'
514520
515521
- run: pnpm playwright:install
516522
working-directory: site

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ gen: \
470470
.prettierignore \
471471
site/.prettierrc.yaml \
472472
site/.prettierignore \
473-
site/.eslintignore
473+
site/.eslintignore \
474+
site/e2e/provisionerGenerated.ts
474475
.PHONY: gen
475476

476477
# Mark all generated files as fresh so make thinks they're up-to-date. This is
@@ -492,6 +493,7 @@ gen/mark-fresh:
492493
site/.prettierrc.yaml \
493494
site/.prettierignore \
494495
site/.eslintignore \
496+
site/e2e/provisionerGenerated.ts \
495497
"
496498
for file in $$files; do
497499
echo "$$file"
@@ -538,6 +540,11 @@ site/src/api/typesGenerated.ts: scripts/apitypings/main.go $(shell find ./coders
538540
cd site
539541
pnpm run format:types
540542

543+
site/e2e/provisionerGenerated.ts:
544+
cd site
545+
../scripts/pnpm_install.sh
546+
pnpm run gen:provisioner
547+
541548
coderd/rbac/object_gen.go: scripts/rbacgen/main.go coderd/rbac/object.go
542549
go run scripts/rbacgen/main.go ./coderd/rbac > coderd/rbac/object_gen.go
543550

scripts/helm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ cdroot
7575
temp_dir="$(mktemp -d)"
7676

7777
cdroot
78-
cd ./helm/$chart
78+
cd "./helm/${chart}"
7979
log "--- Updating dependencies"
8080
helm dependency update .
8181
log "--- Packaging helm chart $chart for version $version ($output_path)"

site/e2e/provisionerGenerated.ts

+9
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export interface RichParameter {
6464
validationMax?: number | undefined
6565
validationMonotonic: string
6666
required: boolean
67+
/** legacy_variable_name was removed (= 14) */
6768
displayName: string
69+
order: number
70+
ephemeral: boolean
6871
}
6972

7073
/** RichParameterValue holds the key/value mapping of a parameter. */
@@ -356,6 +359,12 @@ export const RichParameter = {
356359
if (message.displayName !== "") {
357360
writer.uint32(122).string(message.displayName)
358361
}
362+
if (message.order !== 0) {
363+
writer.uint32(128).int32(message.order)
364+
}
365+
if (message.ephemeral === true) {
366+
writer.uint32(136).bool(message.ephemeral)
367+
}
359368
return writer
360369
},
361370
}

site/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint:types": "tsc --noEmit",
2020
"playwright:install": "playwright install --with-deps chromium",
2121
"playwright:test": "playwright test --config=e2e/playwright.config.ts",
22-
"gen:provisioner": "protoc --plugin=./node_modules/.bin/protoc-gen-ts-proto --ts_proto_out=./e2e/ --ts_proto_opt=outputJsonMethods=false,outputEncodeMethods=encode-no-creation,outputClientImpl=false,nestJs=false,outputPartialMethods=false,fileSuffix=Generated,suffix=hey -I ../provisionersdk/proto ../provisionersdk/proto/provisioner.proto && prettier --cache --write './e2e/provisionerGenerated.ts'",
22+
"gen:provisioner": "protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./e2e/ --ts_proto_opt=outputJsonMethods=false,outputEncodeMethods=encode-no-creation,outputClientImpl=false,nestJs=false,outputPartialMethods=false,fileSuffix=Generated,suffix=hey -I ../provisionersdk/proto ../provisionersdk/proto/provisioner.proto && pnpm exec prettier --ignore-path '/dev/null' --cache --write './e2e/provisionerGenerated.ts'",
2323
"storybook": "STORYBOOK=true storybook dev -p 6006",
2424
"storybook:build": "storybook build --webpack-stats-json",
2525
"test": "jest --selectProjects test",

0 commit comments

Comments
 (0)