Skip to content

Commit f032ab8

Browse files
Merge pull request #4875 from justinsb/check_generated
tests: verify more generated files
2 parents 6b61135 + 4cad5d0 commit f032ab8

File tree

2 files changed

+289
-85
lines changed

2 files changed

+289
-85
lines changed

.github/workflows/ci-presubmit.yaml

Lines changed: 243 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -33,86 +33,6 @@ on:
3333

3434

3535
jobs:
36-
tests-scenarios:
37-
runs-on: ubuntu-latest
38-
timeout-minutes: 60
39-
steps:
40-
- uses: actions/checkout@v4
41-
- uses: actions/setup-go@v5
42-
with:
43-
go-version-file: 'go.mod'
44-
- name: "Run scripts/github-actions/tests-scenarios"
45-
run: |
46-
./scripts/github-actions/tests-scenarios
47-
env:
48-
ARTIFACTS: /tmp/artifacts
49-
- name: "Upload artifacts"
50-
uses: actions/upload-artifact@v4
51-
with:
52-
name: artifacts-tests-scenarios
53-
path: /tmp/artifacts/
54-
env:
55-
ARTIFACTS: /tmp/artifacts
56-
- name: "Upload artifacts"
57-
uses: actions/upload-artifact@v4
58-
with:
59-
name: artifacts-tests-scenarios-acquisition
60-
path: /tmp/artifacts/
61-
62-
tests-scenarios-acquisition:
63-
runs-on: ubuntu-latest
64-
timeout-minutes: 60
65-
steps:
66-
- uses: actions/checkout@v4
67-
- uses: actions/setup-go@v5
68-
with:
69-
go-version-file: 'go.mod'
70-
- name: "Run scripts/github-actions/tests-scenarios-acquisition"
71-
run: |
72-
./scripts/github-actions/tests-scenarios-acquisition
73-
- name: "Upload artifacts"
74-
uses: actions/upload-artifact@v4
75-
with:
76-
name: artifacts-tests-scenarios-acquisition
77-
path: /tmp/artifacts/
78-
79-
tests-gcptracker:
80-
runs-on: ubuntu-latest
81-
timeout-minutes: 30
82-
steps:
83-
- uses: actions/checkout@v4
84-
- uses: actions/setup-go@v5
85-
with:
86-
go-version-file: 'go.mod'
87-
- name: "Run dev/ci/presubmits/tracker-tests"
88-
run: |
89-
./dev/ci/presubmits/tracker-tests
90-
env:
91-
ARTIFACTS: /tmp/artifacts
92-
- name: "Upload artifacts"
93-
uses: actions/upload-artifact@v4
94-
with:
95-
name: artifacts-tracker-tests
96-
path: /tmp/artifacts/
97-
98-
tests-scenarios-powertool:
99-
runs-on: ubuntu-latest
100-
timeout-minutes: 10
101-
steps:
102-
- uses: actions/checkout@v4
103-
- uses: actions/setup-go@v5
104-
with:
105-
go-version-file: 'go.mod'
106-
- name: "Run scripts/github-actions/tests-scenarios-powertool"
107-
run: |
108-
./scripts/github-actions/tests-scenarios-powertool
109-
env:
110-
ARTIFACTS: /tmp/artifacts
111-
- name: "Upload artifacts"
112-
uses: actions/upload-artifact@v4
113-
with:
114-
name: artifacts-tests-scenarios-powertool
115-
path: /tmp/artifacts/
11636

11737
test-mockgcp:
11838
runs-on: ubuntu-latest
@@ -122,10 +42,6 @@ jobs:
12242
- uses: actions/setup-go@v5
12343
with:
12444
go-version-file: 'go.mod'
125-
- uses: 'google-github-actions/setup-gcloud@v2'
126-
with:
127-
version: '531.0.0'
128-
install_components: 'alpha,beta'
12945
- name: "Run dev/ci/presubmits/test-mockgcp"
13046
run: |
13147
./dev/ci/presubmits/test-mockgcp
@@ -437,9 +353,10 @@ jobs:
437353
name: artifacts-tests-e2e-fixtures-sql
438354
path: /tmp/artifacts/
439355

356+
440357
tests-e2e-fixtures-storage:
441358
runs-on: ubuntu-latest
442-
timeout-minutes: 240
359+
timeout-minutes: 60
443360
steps:
444361
- uses: actions/checkout@v4
445362
- uses: actions/setup-go@v5
@@ -456,6 +373,7 @@ jobs:
456373
name: artifacts-tests-e2e-fixtures-storage
457374
path: /tmp/artifacts/
458375

376+
459377
tests-e2e-fixtures-vertexai:
460378
runs-on: ubuntu-latest
461379
timeout-minutes: 60
@@ -516,6 +434,246 @@ jobs:
516434
path: /tmp/artifacts/
517435

518436

437+
tests-e2e-samples-alloydb:
438+
runs-on: ubuntu-latest
439+
timeout-minutes: 60
440+
steps:
441+
- uses: actions/checkout@v4
442+
- uses: actions/setup-go@v5
443+
with:
444+
go-version-file: 'go.mod'
445+
- name: "Run dev/ci/presubmits/tests-e2e-samples-alloydb"
446+
run: |
447+
./dev/ci/presubmits/tests-e2e-samples-alloydb
448+
env:
449+
ARTIFACTS: /tmp/artifacts
450+
- name: "Upload artifacts"
451+
uses: actions/upload-artifact@v4
452+
with:
453+
name: artifacts-tests-e2e-samples-alloydb
454+
path: /tmp/artifacts/
455+
456+
457+
tests-e2e-samples-apigateway:
458+
runs-on: ubuntu-latest
459+
timeout-minutes: 60
460+
steps:
461+
- uses: actions/checkout@v4
462+
- uses: actions/setup-go@v5
463+
with:
464+
go-version-file: 'go.mod'
465+
- name: "Run dev/ci/presubmits/tests-e2e-samples-apigateway"
466+
run: |
467+
./dev/ci/presubmits/tests-e2e-samples-apigateway
468+
env:
469+
ARTIFACTS: /tmp/artifacts
470+
- name: "Upload artifacts"
471+
uses: actions/upload-artifact@v4
472+
with:
473+
name: artifacts-tests-e2e-samples-apigateway
474+
path: /tmp/artifacts/
475+
476+
477+
tests-e2e-samples-apigee:
478+
runs-on: ubuntu-latest
479+
timeout-minutes: 60
480+
steps:
481+
- uses: actions/checkout@v4
482+
- uses: actions/setup-go@v5
483+
with:
484+
go-version-file: 'go.mod'
485+
- name: "Run dev/ci/presubmits/tests-e2e-samples-apigee"
486+
run: |
487+
./dev/ci/presubmits/tests-e2e-samples-apigee
488+
env:
489+
ARTIFACTS: /tmp/artifacts
490+
- name: "Upload artifacts"
491+
uses: actions/upload-artifact@v4
492+
with:
493+
name: artifacts-tests-e2e-samples-apigee
494+
path: /tmp/artifacts/
495+
496+
497+
tests-e2e-samples-bigquery:
498+
runs-on: ubuntu-latest
499+
timeout-minutes: 60
500+
steps:
501+
- uses: actions/checkout@v4
502+
- uses: actions/setup-go@v5
503+
with:
504+
go-version-file: 'go.mod'
505+
- name: "Run dev/ci/presubmits/tests-e2e-samples-bigquery"
506+
run: |
507+
./dev/ci/presubmits/tests-e2e-samples-bigquery
508+
env:
509+
ARTIFACTS: /tmp/artifacts
510+
- name: "Upload artifacts"
511+
uses: actions/upload-artifact@v4
512+
with:
513+
name: artifacts-tests-e2e-samples-bigquery
514+
path: /tmp/artifacts/
515+
516+
517+
tests-e2e-samples-cloudbuild:
518+
runs-on: ubuntu-latest
519+
timeout-minutes: 60
520+
steps:
521+
- uses: actions/checkout@v4
522+
- uses: actions/setup-go@v5
523+
with:
524+
go-version-file: 'go.mod'
525+
- name: "Run dev/ci/presubmits/tests-e2e-samples-cloudbuild"
526+
run: |
527+
./dev/ci/presubmits/tests-e2e-samples-cloudbuild
528+
env:
529+
ARTIFACTS: /tmp/artifacts
530+
- name: "Upload artifacts"
531+
uses: actions/upload-artifact@v4
532+
with:
533+
name: artifacts-tests-e2e-samples-cloudbuild
534+
path: /tmp/artifacts/
535+
536+
537+
tests-e2e-samples-compute:
538+
runs-on: ubuntu-latest
539+
timeout-minutes: 60
540+
steps:
541+
- uses: actions/checkout@v4
542+
- uses: actions/setup-go@v5
543+
with:
544+
go-version-file: 'go.mod'
545+
- name: "Run dev/ci/presubmits/tests-e2e-samples-compute"
546+
run: |
547+
./dev/ci/presubmits/tests-e2e-samples-compute
548+
env:
549+
ARTIFACTS: /tmp/artifacts
550+
- name: "Upload artifacts"
551+
uses: actions/upload-artifact@v4
552+
with:
553+
name: artifacts-tests-e2e-samples-compute
554+
path: /tmp/artifacts/
555+
556+
557+
tests-e2e-samples-dataflow:
558+
runs-on: ubuntu-latest
559+
timeout-minutes: 60
560+
steps:
561+
- uses: actions/checkout@v4
562+
- uses: actions/setup-go@v5
563+
with:
564+
go-version-file: 'go.mod'
565+
- name: "Run dev/ci/presubmits/tests-e2e-samples-dataflow"
566+
run: |
567+
./dev/ci/presubmits/tests-e2e-samples-dataflow
568+
env:
569+
ARTIFACTS: /tmp/artifacts
570+
- name: "Upload artifacts"
571+
uses: actions/upload-artifact@v4
572+
with:
573+
name: artifacts-tests-e2e-samples-dataflow
574+
path: /tmp/artifacts/
575+
576+
577+
tests-e2e-samples-dataproc:
578+
runs-on: ubuntu-latest
579+
timeout-minutes: 60
580+
steps:
581+
- uses: actions/checkout@v4
582+
- uses: actions/setup-go@v5
583+
with:
584+
go-version-file: 'go.mod'
585+
- name: "Run dev/ci/presubmits/tests-e2e-samples-dataproc"
586+
run: |
587+
./dev/ci/presubmits/tests-e2e-samples-dataproc
588+
env:
589+
ARTIFACTS: /tmp/artifacts
590+
- name: "Upload artifacts"
591+
uses: actions/upload-artifact@v4
592+
with:
593+
name: artifacts-tests-e2e-samples-dataproc
594+
path: /tmp/artifacts/
595+
596+
597+
tests-e2e-samples-iam:
598+
runs-on: ubuntu-latest
599+
timeout-minutes: 60
600+
steps:
601+
- uses: actions/checkout@v4
602+
- uses: actions/setup-go@v5
603+
with:
604+
go-version-file: 'go.mod'
605+
- name: "Run dev/ci/presubmits/tests-e2e-samples-iam"
606+
run: |
607+
./dev/ci/presubmits/tests-e2e-samples-iam
608+
env:
609+
ARTIFACTS: /tmp/artifacts
610+
- name: "Upload artifacts"
611+
uses: actions/upload-artifact@v4
612+
with:
613+
name: artifacts-tests-e2e-samples-iam
614+
path: /tmp/artifacts/
615+
616+
617+
tests-e2e-samples-storage:
618+
runs-on: ubuntu-latest
619+
timeout-minutes: 60
620+
steps:
621+
- uses: actions/checkout@v4
622+
- uses: actions/setup-go@v5
623+
with:
624+
go-version-file: 'go.mod'
625+
- name: "Run dev/ci/presubmits/tests-e2e-samples-storage"
626+
run: |
627+
./dev/ci/presubmits/tests-e2e-samples-storage
628+
env:
629+
ARTIFACTS: /tmp/artifacts
630+
- name: "Upload artifacts"
631+
uses: actions/upload-artifact@v4
632+
with:
633+
name: artifacts-tests-e2e-samples-storage
634+
path: /tmp/artifacts/
635+
636+
637+
tracker-tests:
638+
runs-on: ubuntu-latest
639+
timeout-minutes: 60
640+
steps:
641+
- uses: actions/checkout@v4
642+
- uses: actions/setup-go@v5
643+
with:
644+
go-version-file: 'go.mod'
645+
- name: "Run dev/ci/presubmits/tracker-tests"
646+
run: |
647+
./dev/ci/presubmits/tracker-tests
648+
env:
649+
ARTIFACTS: /tmp/artifacts
650+
- name: "Upload artifacts"
651+
uses: actions/upload-artifact@v4
652+
with:
653+
name: artifacts-tracker-tests
654+
path: /tmp/artifacts/
655+
656+
657+
validate-generated-files:
658+
runs-on: ubuntu-latest
659+
timeout-minutes: 60
660+
steps:
661+
- uses: actions/checkout@v4
662+
- uses: actions/setup-go@v5
663+
with:
664+
go-version-file: 'go.mod'
665+
- name: "Run dev/ci/presubmits/validate-generated-files"
666+
run: |
667+
./dev/ci/presubmits/validate-generated-files
668+
env:
669+
ARTIFACTS: /tmp/artifacts
670+
- name: "Upload artifacts"
671+
uses: actions/upload-artifact@v4
672+
with:
673+
name: artifacts-validate-generated-files
674+
path: /tmp/artifacts/
675+
676+
519677
validate-generated-types:
520678
runs-on: ubuntu-latest
521679
timeout-minutes: 60

0 commit comments

Comments
 (0)