@catladder/pipeline 3.25.0 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/build/custom/testJob.js +1 -2
  2. package/dist/build/node/testJob.js +1 -2
  3. package/dist/build/node/yarn.js +3 -2
  4. package/dist/build/rails/test.js +1 -2
  5. package/dist/constants.js +1 -1
  6. package/dist/deploy/types/googleCloudRun.d.ts +1 -1
  7. package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
  8. package/dist/pipeline/agent/shared.d.ts +1 -1
  9. package/dist/pipeline/agent/shared.js +0 -1
  10. package/dist/pipeline/createMainPipeline.js +1 -0
  11. package/dist/pipeline/gitlab/cache.d.ts +9 -0
  12. package/dist/pipeline/gitlab/cache.js +47 -0
  13. package/dist/pipeline/gitlab/createGitlabJobs.js +7 -7
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/types/jobs.d.ts +2 -3
  16. package/examples/__snapshots__/automatic-releases.test.ts.snap +141 -31
  17. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +141 -31
  18. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +141 -31
  19. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +141 -31
  20. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +141 -31
  21. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +141 -31
  22. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +133 -27
  23. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +144 -32
  24. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +141 -31
  25. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +141 -31
  26. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +141 -31
  27. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +141 -31
  28. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +141 -31
  29. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +141 -31
  30. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +141 -31
  31. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +141 -31
  32. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +141 -31
  33. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +21 -11
  34. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +144 -32
  35. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +141 -31
  36. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +141 -31
  37. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +141 -31
  38. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +423 -93
  39. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +282 -62
  40. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +141 -31
  41. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +141 -31
  42. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +93 -22
  43. package/examples/__snapshots__/custom-deploy.test.ts.snap +141 -31
  44. package/examples/__snapshots__/custom-envs.test.ts.snap +328 -40
  45. package/examples/__snapshots__/custom-verify-job.test.ts.snap +144 -32
  46. package/examples/__snapshots__/git-submodule.test.ts.snap +141 -31
  47. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +141 -31
  48. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +141 -31
  49. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +282 -62
  50. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +141 -31
  51. package/examples/__snapshots__/local-dot-env.test.ts.snap +141 -31
  52. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +133 -27
  53. package/examples/__snapshots__/modify-generated-files.test.ts.snap +124 -20
  54. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +124 -20
  55. package/examples/__snapshots__/multiline-var.test.ts.snap +423 -93
  56. package/examples/__snapshots__/native-app.test.ts.snap +277 -57
  57. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +141 -31
  58. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +141 -31
  59. package/examples/__snapshots__/override-secrets.test.ts.snap +141 -31
  60. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +84 -22
  61. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +84 -22
  62. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +423 -93
  63. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +260 -52
  64. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +161 -43
  65. package/examples/__snapshots__/workspace-api-www.test.ts.snap +161 -43
  66. package/package.json +1 -1
  67. package/src/build/custom/testJob.ts +0 -1
  68. package/src/build/node/testJob.ts +0 -1
  69. package/src/build/node/yarn.ts +3 -2
  70. package/src/build/rails/test.ts +0 -1
  71. package/src/deploy/types/googleCloudRun.ts +1 -1
  72. package/src/pipeline/agent/createAgentReviewJob.ts +1 -0
  73. package/src/pipeline/agent/shared.ts +2 -2
  74. package/src/pipeline/createMainPipeline.ts +1 -0
  75. package/src/pipeline/gitlab/cache.ts +49 -0
  76. package/src/pipeline/gitlab/createGitlabJobs.ts +7 -9
  77. package/src/types/jobs.ts +2 -3
@@ -103,7 +103,7 @@ before_script:
103
103
  local section_title="\${1}"
104
104
  echo -e "section_end:\`date +%s\`:\${section_title}\\r\\e[0K"
105
105
  }
106
- db1 🛡 audit:
106
+ 'db1 🛡 audit | dev ':
107
107
  stage: test
108
108
  image: path/to/docker/jobs-default:the-version
109
109
  variables:
@@ -120,9 +120,6 @@ db1 🛡 audit:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
122
122
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
123
- - when: never
124
- if: $CI_PIPELINE_SOURCE == "trigger"
125
- - if: $CI_MERGE_REQUEST_ID
126
123
  needs: []
127
124
  retry: &a1
128
125
  max: 2
@@ -131,7 +128,7 @@ db1 🛡 audit:
131
128
  - stuck_or_timeout_failure
132
129
  interruptible: true
133
130
  allow_failure: true
134
- db1 👮 lint:
131
+ 'db1 👮 lint | dev ':
135
132
  stage: test
136
133
  image: path/to/docker/jobs-default:the-version
137
134
  variables:
@@ -152,7 +149,7 @@ db1 👮 lint:
152
149
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
153
150
  - collapseable_section_end "nodeinstall"
154
151
  - collapseable_section_start "yarninstall" "Yarn install"
155
- - yarn install --immutable
152
+ - yarn install --immutable --inline-builds
156
153
  - collapseable_section_end "yarninstall"
157
154
  - yarn lint
158
155
  cache:
@@ -168,13 +165,10 @@ db1 👮 lint:
168
165
  - when: never
169
166
  if: $CI_PIPELINE_SOURCE == "trigger"
170
167
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
171
- - when: never
172
- if: $CI_PIPELINE_SOURCE == "trigger"
173
- - if: $CI_MERGE_REQUEST_ID
174
168
  needs: []
175
169
  retry: *a1
176
170
  interruptible: true
177
- db1 🧪 test:
171
+ 'db1 🧪 test | dev ':
178
172
  stage: test
179
173
  image: path/to/docker/jobs-testing-chrome:the-version
180
174
  variables:
@@ -195,7 +189,7 @@ db1 🧪 test:
195
189
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
196
190
  - collapseable_section_end "nodeinstall"
197
191
  - collapseable_section_start "yarninstall" "Yarn install"
198
- - yarn install --immutable
192
+ - yarn install --immutable --inline-builds
199
193
  - collapseable_section_end "yarninstall"
200
194
  - yarn test
201
195
  cache:
@@ -211,9 +205,6 @@ db1 🧪 test:
211
205
  - when: never
212
206
  if: $CI_PIPELINE_SOURCE == "trigger"
213
207
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
214
- - when: never
215
- if: $CI_PIPELINE_SOURCE == "trigger"
216
- - if: $CI_MERGE_REQUEST_ID
217
208
  needs: []
218
209
  retry: *a1
219
210
  interruptible: true
@@ -284,7 +275,7 @@ db1 🧪 test:
284
275
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
285
276
  - collapseable_section_end "nodeinstall"
286
277
  - collapseable_section_start "yarninstall" "Yarn install"
287
- - yarn install --immutable
278
+ - yarn install --immutable --inline-builds
288
279
  - collapseable_section_end "yarninstall"
289
280
  - yarn build
290
281
  cache:
@@ -339,7 +330,8 @@ db1 🧪 test:
339
330
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db1"
340
331
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
341
332
  - |-
342
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
333
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
334
+ COPY --chown=node:node $APP_DIR .
343
335
  RUN yarn plugin import workspace-tools
344
336
  RUN yarn workspaces focus --production && yarn rebuild"
345
337
  - |-
@@ -527,17 +519,17 @@ db1 🧪 test:
527
519
  - when: on_success
528
520
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
529
521
  needs:
530
- - job: db1 👮 lint
522
+ - job: 'db1 👮 lint | dev '
531
523
  artifacts: false
532
524
  - job: 'db1 🔨 app | dev '
533
525
  artifacts: false
534
526
  - job: 'db1 🔨 docker | dev '
535
527
  artifacts: false
536
- - job: db1 🧪 test
528
+ - job: 'db1 🧪 test | dev '
537
529
  artifacts: false
538
530
  - job: 'db1 🧾 sbom | dev '
539
531
  artifacts: true
540
- - job: db1 🛡 audit
532
+ - job: 'db1 🛡 audit | dev '
541
533
  artifacts: false
542
534
  retry: *a1
543
535
  interruptible: true
@@ -577,6 +569,115 @@ db1 🧪 test:
577
569
  retry: *a1
578
570
  interruptible: true
579
571
  allow_failure: true
572
+ 'db1 🛡 audit | review ':
573
+ stage: test
574
+ image: path/to/docker/jobs-default:the-version
575
+ variables:
576
+ KUBERNETES_CPU_REQUEST: '0.45'
577
+ KUBERNETES_MEMORY_REQUEST: 1Gi
578
+ KUBERNETES_MEMORY_LIMIT: 4Gi
579
+ script:
580
+ - collapseable_section_start "injectvars" "Injecting variables"
581
+ - export APP_PATH="packages/db1"
582
+ - collapseable_section_end "injectvars"
583
+ - cd packages/db1
584
+ - yarn npm audit --environment production
585
+ rules:
586
+ - when: never
587
+ if: $CI_PIPELINE_SOURCE == "trigger"
588
+ - if: $CI_MERGE_REQUEST_ID
589
+ needs: []
590
+ retry: *a1
591
+ interruptible: true
592
+ allow_failure: true
593
+ 'db1 👮 lint | review ':
594
+ stage: test
595
+ image: path/to/docker/jobs-default:the-version
596
+ variables:
597
+ KUBERNETES_CPU_REQUEST: '0.45'
598
+ KUBERNETES_MEMORY_REQUEST: 1Gi
599
+ KUBERNETES_MEMORY_LIMIT: 4Gi
600
+ script:
601
+ - collapseable_section_start "injectvars" "Injecting variables"
602
+ - export APP_PATH="packages/db1"
603
+ - collapseable_section_end "injectvars"
604
+ - collapseable_section_start "nodeinstall" "Ensure node version"
605
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
606
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
607
+ - collapseable_section_end "nodeinstall"
608
+ - cd packages/db1
609
+ - collapseable_section_start "nodeinstall" "Ensure node version"
610
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
611
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
612
+ - collapseable_section_end "nodeinstall"
613
+ - collapseable_section_start "yarninstall" "Yarn install"
614
+ - yarn install --immutable --inline-builds
615
+ - collapseable_section_end "yarninstall"
616
+ - yarn lint
617
+ cache:
618
+ - key: packagesdb1-yarn-mr$CI_MERGE_REQUEST_IID
619
+ policy: pull-push
620
+ paths:
621
+ - packages/db1/.yarn
622
+ fallback_keys:
623
+ - packagesdb1-yarn
624
+ - key: packagesdb1-node-modules-mr$CI_MERGE_REQUEST_IID
625
+ policy: pull-push
626
+ paths:
627
+ - packages/db1/node_modules
628
+ fallback_keys:
629
+ - packagesdb1-node-modules
630
+ rules:
631
+ - when: never
632
+ if: $CI_PIPELINE_SOURCE == "trigger"
633
+ - if: $CI_MERGE_REQUEST_ID
634
+ needs: []
635
+ retry: *a1
636
+ interruptible: true
637
+ 'db1 🧪 test | review ':
638
+ stage: test
639
+ image: path/to/docker/jobs-testing-chrome:the-version
640
+ variables:
641
+ KUBERNETES_CPU_REQUEST: '0.45'
642
+ KUBERNETES_MEMORY_REQUEST: 1Gi
643
+ KUBERNETES_MEMORY_LIMIT: 4Gi
644
+ script:
645
+ - collapseable_section_start "injectvars" "Injecting variables"
646
+ - export APP_PATH="packages/db1"
647
+ - collapseable_section_end "injectvars"
648
+ - collapseable_section_start "nodeinstall" "Ensure node version"
649
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
650
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
651
+ - collapseable_section_end "nodeinstall"
652
+ - cd packages/db1
653
+ - collapseable_section_start "nodeinstall" "Ensure node version"
654
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
655
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
656
+ - collapseable_section_end "nodeinstall"
657
+ - collapseable_section_start "yarninstall" "Yarn install"
658
+ - yarn install --immutable --inline-builds
659
+ - collapseable_section_end "yarninstall"
660
+ - yarn test
661
+ cache:
662
+ - key: packagesdb1-yarn-mr$CI_MERGE_REQUEST_IID
663
+ policy: pull-push
664
+ paths:
665
+ - packages/db1/.yarn
666
+ fallback_keys:
667
+ - packagesdb1-yarn
668
+ - key: packagesdb1-node-modules-mr$CI_MERGE_REQUEST_IID
669
+ policy: pull-push
670
+ paths:
671
+ - packages/db1/node_modules
672
+ fallback_keys:
673
+ - packagesdb1-node-modules
674
+ rules:
675
+ - when: never
676
+ if: $CI_PIPELINE_SOURCE == "trigger"
677
+ - if: $CI_MERGE_REQUEST_ID
678
+ needs: []
679
+ retry: *a1
680
+ interruptible: true
580
681
  'db1 🔨 app | review ':
581
682
  stage: build
582
683
  image: path/to/docker/jobs-default:the-version
@@ -644,18 +745,22 @@ db1 🧪 test:
644
745
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
645
746
  - collapseable_section_end "nodeinstall"
646
747
  - collapseable_section_start "yarninstall" "Yarn install"
647
- - yarn install --immutable
748
+ - yarn install --immutable --inline-builds
648
749
  - collapseable_section_end "yarninstall"
649
750
  - yarn build
650
751
  cache:
651
- - key: packagesdb1-yarn
752
+ - key: packagesdb1-yarn-mr$CI_MERGE_REQUEST_IID
652
753
  policy: pull-push
653
754
  paths:
654
755
  - packages/db1/.yarn
655
- - key: packagesdb1-node-modules
756
+ fallback_keys:
757
+ - packagesdb1-yarn
758
+ - key: packagesdb1-node-modules-mr$CI_MERGE_REQUEST_IID
656
759
  policy: pull-push
657
760
  paths:
658
761
  - packages/db1/node_modules
762
+ fallback_keys:
763
+ - packagesdb1-node-modules
659
764
  artifacts:
660
765
  paths:
661
766
  - packages/db1/__build_info.json
@@ -699,7 +804,8 @@ db1 🧪 test:
699
804
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db1"
700
805
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
701
806
  - |-
702
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
807
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
808
+ COPY --chown=node:node $APP_DIR .
703
809
  RUN yarn plugin import workspace-tools
704
810
  RUN yarn workspaces focus --production && yarn rebuild"
705
811
  - |-
@@ -722,10 +828,12 @@ db1 🧪 test:
722
828
  - docker push $DOCKER_CACHE_IMAGE
723
829
  - collapseable_section_end "docker-push"
724
830
  cache:
725
- - key: packagesdb1-yarn
831
+ - key: packagesdb1-yarn-mr$CI_MERGE_REQUEST_IID
726
832
  policy: pull
727
833
  paths:
728
834
  - packages/db1/.yarn
835
+ fallback_keys:
836
+ - packagesdb1-yarn
729
837
  rules:
730
838
  - when: never
731
839
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -890,17 +998,17 @@ db1 🧪 test:
890
998
  - when: on_success
891
999
  if: $CI_MERGE_REQUEST_ID
892
1000
  needs:
893
- - job: db1 👮 lint
1001
+ - job: 'db1 👮 lint | review '
894
1002
  artifacts: false
895
1003
  - job: 'db1 🔨 app | review '
896
1004
  artifacts: false
897
1005
  - job: 'db1 🔨 docker | review '
898
1006
  artifacts: false
899
- - job: db1 🧪 test
1007
+ - job: 'db1 🧪 test | review '
900
1008
  artifacts: false
901
1009
  - job: 'db1 🧾 sbom | review '
902
1010
  artifacts: true
903
- - job: db1 🛡 audit
1011
+ - job: 'db1 🛡 audit | review '
904
1012
  artifacts: false
905
1013
  retry: *a1
906
1014
  interruptible: true
@@ -1013,7 +1121,7 @@ db1 🧪 test:
1013
1121
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1014
1122
  - collapseable_section_end "nodeinstall"
1015
1123
  - collapseable_section_start "yarninstall" "Yarn install"
1016
- - yarn install --immutable
1124
+ - yarn install --immutable --inline-builds
1017
1125
  - collapseable_section_end "yarninstall"
1018
1126
  - yarn build
1019
1127
  cache:
@@ -1068,7 +1176,8 @@ db1 🧪 test:
1068
1176
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db1"
1069
1177
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1070
1178
  - |-
1071
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1179
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1180
+ COPY --chown=node:node $APP_DIR .
1072
1181
  RUN yarn plugin import workspace-tools
1073
1182
  RUN yarn workspaces focus --production && yarn rebuild"
1074
1183
  - |-
@@ -1366,7 +1475,7 @@ db1 🧪 test:
1366
1475
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1367
1476
  - collapseable_section_end "nodeinstall"
1368
1477
  - collapseable_section_start "yarninstall" "Yarn install"
1369
- - yarn install --immutable
1478
+ - yarn install --immutable --inline-builds
1370
1479
  - collapseable_section_end "yarninstall"
1371
1480
  - yarn build
1372
1481
  cache:
@@ -1421,7 +1530,8 @@ db1 🧪 test:
1421
1530
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db1"
1422
1531
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1423
1532
  - |-
1424
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1533
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1534
+ COPY --chown=node:node $APP_DIR .
1425
1535
  RUN yarn plugin import workspace-tools
1426
1536
  RUN yarn workspaces focus --production && yarn rebuild"
1427
1537
  - |-
@@ -1652,7 +1762,7 @@ db1 🧪 test:
1652
1762
  retry: *a1
1653
1763
  interruptible: true
1654
1764
  allow_failure: true
1655
- db2 🛡 audit:
1765
+ 'db2 🛡 audit | dev ':
1656
1766
  stage: test
1657
1767
  image: path/to/docker/jobs-default:the-version
1658
1768
  variables:
@@ -1669,14 +1779,11 @@ db2 🛡 audit:
1669
1779
  - when: never
1670
1780
  if: $CI_PIPELINE_SOURCE == "trigger"
1671
1781
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1672
- - when: never
1673
- if: $CI_PIPELINE_SOURCE == "trigger"
1674
- - if: $CI_MERGE_REQUEST_ID
1675
1782
  needs: []
1676
1783
  retry: *a1
1677
1784
  interruptible: true
1678
1785
  allow_failure: true
1679
- db2 👮 lint:
1786
+ 'db2 👮 lint | dev ':
1680
1787
  stage: test
1681
1788
  image: path/to/docker/jobs-default:the-version
1682
1789
  variables:
@@ -1697,7 +1804,7 @@ db2 👮 lint:
1697
1804
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1698
1805
  - collapseable_section_end "nodeinstall"
1699
1806
  - collapseable_section_start "yarninstall" "Yarn install"
1700
- - yarn install --immutable
1807
+ - yarn install --immutable --inline-builds
1701
1808
  - collapseable_section_end "yarninstall"
1702
1809
  - yarn lint
1703
1810
  cache:
@@ -1713,13 +1820,10 @@ db2 👮 lint:
1713
1820
  - when: never
1714
1821
  if: $CI_PIPELINE_SOURCE == "trigger"
1715
1822
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1716
- - when: never
1717
- if: $CI_PIPELINE_SOURCE == "trigger"
1718
- - if: $CI_MERGE_REQUEST_ID
1719
1823
  needs: []
1720
1824
  retry: *a1
1721
1825
  interruptible: true
1722
- db2 🧪 test:
1826
+ 'db2 🧪 test | dev ':
1723
1827
  stage: test
1724
1828
  image: path/to/docker/jobs-testing-chrome:the-version
1725
1829
  variables:
@@ -1740,7 +1844,7 @@ db2 🧪 test:
1740
1844
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1741
1845
  - collapseable_section_end "nodeinstall"
1742
1846
  - collapseable_section_start "yarninstall" "Yarn install"
1743
- - yarn install --immutable
1847
+ - yarn install --immutable --inline-builds
1744
1848
  - collapseable_section_end "yarninstall"
1745
1849
  - yarn test
1746
1850
  cache:
@@ -1756,9 +1860,6 @@ db2 🧪 test:
1756
1860
  - when: never
1757
1861
  if: $CI_PIPELINE_SOURCE == "trigger"
1758
1862
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1759
- - when: never
1760
- if: $CI_PIPELINE_SOURCE == "trigger"
1761
- - if: $CI_MERGE_REQUEST_ID
1762
1863
  needs: []
1763
1864
  retry: *a1
1764
1865
  interruptible: true
@@ -1829,7 +1930,7 @@ db2 🧪 test:
1829
1930
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1830
1931
  - collapseable_section_end "nodeinstall"
1831
1932
  - collapseable_section_start "yarninstall" "Yarn install"
1832
- - yarn install --immutable
1933
+ - yarn install --immutable --inline-builds
1833
1934
  - collapseable_section_end "yarninstall"
1834
1935
  - yarn build
1835
1936
  cache:
@@ -1884,7 +1985,8 @@ db2 🧪 test:
1884
1985
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db2"
1885
1986
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1886
1987
  - |-
1887
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1988
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1989
+ COPY --chown=node:node $APP_DIR .
1888
1990
  RUN yarn plugin import workspace-tools
1889
1991
  RUN yarn workspaces focus --production && yarn rebuild"
1890
1992
  - |-
@@ -2072,17 +2174,17 @@ db2 🧪 test:
2072
2174
  - when: on_success
2073
2175
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
2074
2176
  needs:
2075
- - job: db2 👮 lint
2177
+ - job: 'db2 👮 lint | dev '
2076
2178
  artifacts: false
2077
2179
  - job: 'db2 🔨 app | dev '
2078
2180
  artifacts: false
2079
2181
  - job: 'db2 🔨 docker | dev '
2080
2182
  artifacts: false
2081
- - job: db2 🧪 test
2183
+ - job: 'db2 🧪 test | dev '
2082
2184
  artifacts: false
2083
2185
  - job: 'db2 🧾 sbom | dev '
2084
2186
  artifacts: true
2085
- - job: db2 🛡 audit
2187
+ - job: 'db2 🛡 audit | dev '
2086
2188
  artifacts: false
2087
2189
  retry: *a1
2088
2190
  interruptible: true
@@ -2122,6 +2224,115 @@ db2 🧪 test:
2122
2224
  retry: *a1
2123
2225
  interruptible: true
2124
2226
  allow_failure: true
2227
+ 'db2 🛡 audit | review ':
2228
+ stage: test
2229
+ image: path/to/docker/jobs-default:the-version
2230
+ variables:
2231
+ KUBERNETES_CPU_REQUEST: '0.45'
2232
+ KUBERNETES_MEMORY_REQUEST: 1Gi
2233
+ KUBERNETES_MEMORY_LIMIT: 4Gi
2234
+ script:
2235
+ - collapseable_section_start "injectvars" "Injecting variables"
2236
+ - export APP_PATH="packages/db2"
2237
+ - collapseable_section_end "injectvars"
2238
+ - cd packages/db2
2239
+ - yarn npm audit --environment production
2240
+ rules:
2241
+ - when: never
2242
+ if: $CI_PIPELINE_SOURCE == "trigger"
2243
+ - if: $CI_MERGE_REQUEST_ID
2244
+ needs: []
2245
+ retry: *a1
2246
+ interruptible: true
2247
+ allow_failure: true
2248
+ 'db2 👮 lint | review ':
2249
+ stage: test
2250
+ image: path/to/docker/jobs-default:the-version
2251
+ variables:
2252
+ KUBERNETES_CPU_REQUEST: '0.45'
2253
+ KUBERNETES_MEMORY_REQUEST: 1Gi
2254
+ KUBERNETES_MEMORY_LIMIT: 4Gi
2255
+ script:
2256
+ - collapseable_section_start "injectvars" "Injecting variables"
2257
+ - export APP_PATH="packages/db2"
2258
+ - collapseable_section_end "injectvars"
2259
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2260
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2261
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2262
+ - collapseable_section_end "nodeinstall"
2263
+ - cd packages/db2
2264
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2265
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2266
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2267
+ - collapseable_section_end "nodeinstall"
2268
+ - collapseable_section_start "yarninstall" "Yarn install"
2269
+ - yarn install --immutable --inline-builds
2270
+ - collapseable_section_end "yarninstall"
2271
+ - yarn lint
2272
+ cache:
2273
+ - key: packagesdb2-yarn-mr$CI_MERGE_REQUEST_IID
2274
+ policy: pull-push
2275
+ paths:
2276
+ - packages/db2/.yarn
2277
+ fallback_keys:
2278
+ - packagesdb2-yarn
2279
+ - key: packagesdb2-node-modules-mr$CI_MERGE_REQUEST_IID
2280
+ policy: pull-push
2281
+ paths:
2282
+ - packages/db2/node_modules
2283
+ fallback_keys:
2284
+ - packagesdb2-node-modules
2285
+ rules:
2286
+ - when: never
2287
+ if: $CI_PIPELINE_SOURCE == "trigger"
2288
+ - if: $CI_MERGE_REQUEST_ID
2289
+ needs: []
2290
+ retry: *a1
2291
+ interruptible: true
2292
+ 'db2 🧪 test | review ':
2293
+ stage: test
2294
+ image: path/to/docker/jobs-testing-chrome:the-version
2295
+ variables:
2296
+ KUBERNETES_CPU_REQUEST: '0.45'
2297
+ KUBERNETES_MEMORY_REQUEST: 1Gi
2298
+ KUBERNETES_MEMORY_LIMIT: 4Gi
2299
+ script:
2300
+ - collapseable_section_start "injectvars" "Injecting variables"
2301
+ - export APP_PATH="packages/db2"
2302
+ - collapseable_section_end "injectvars"
2303
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2304
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2305
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2306
+ - collapseable_section_end "nodeinstall"
2307
+ - cd packages/db2
2308
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2309
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2310
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2311
+ - collapseable_section_end "nodeinstall"
2312
+ - collapseable_section_start "yarninstall" "Yarn install"
2313
+ - yarn install --immutable --inline-builds
2314
+ - collapseable_section_end "yarninstall"
2315
+ - yarn test
2316
+ cache:
2317
+ - key: packagesdb2-yarn-mr$CI_MERGE_REQUEST_IID
2318
+ policy: pull-push
2319
+ paths:
2320
+ - packages/db2/.yarn
2321
+ fallback_keys:
2322
+ - packagesdb2-yarn
2323
+ - key: packagesdb2-node-modules-mr$CI_MERGE_REQUEST_IID
2324
+ policy: pull-push
2325
+ paths:
2326
+ - packages/db2/node_modules
2327
+ fallback_keys:
2328
+ - packagesdb2-node-modules
2329
+ rules:
2330
+ - when: never
2331
+ if: $CI_PIPELINE_SOURCE == "trigger"
2332
+ - if: $CI_MERGE_REQUEST_ID
2333
+ needs: []
2334
+ retry: *a1
2335
+ interruptible: true
2125
2336
  'db2 🔨 app | review ':
2126
2337
  stage: build
2127
2338
  image: path/to/docker/jobs-default:the-version
@@ -2189,18 +2400,22 @@ db2 🧪 test:
2189
2400
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2190
2401
  - collapseable_section_end "nodeinstall"
2191
2402
  - collapseable_section_start "yarninstall" "Yarn install"
2192
- - yarn install --immutable
2403
+ - yarn install --immutable --inline-builds
2193
2404
  - collapseable_section_end "yarninstall"
2194
2405
  - yarn build
2195
2406
  cache:
2196
- - key: packagesdb2-yarn
2407
+ - key: packagesdb2-yarn-mr$CI_MERGE_REQUEST_IID
2197
2408
  policy: pull-push
2198
2409
  paths:
2199
2410
  - packages/db2/.yarn
2200
- - key: packagesdb2-node-modules
2411
+ fallback_keys:
2412
+ - packagesdb2-yarn
2413
+ - key: packagesdb2-node-modules-mr$CI_MERGE_REQUEST_IID
2201
2414
  policy: pull-push
2202
2415
  paths:
2203
2416
  - packages/db2/node_modules
2417
+ fallback_keys:
2418
+ - packagesdb2-node-modules
2204
2419
  artifacts:
2205
2420
  paths:
2206
2421
  - packages/db2/__build_info.json
@@ -2244,7 +2459,8 @@ db2 🧪 test:
2244
2459
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db2"
2245
2460
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2246
2461
  - |-
2247
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2462
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2463
+ COPY --chown=node:node $APP_DIR .
2248
2464
  RUN yarn plugin import workspace-tools
2249
2465
  RUN yarn workspaces focus --production && yarn rebuild"
2250
2466
  - |-
@@ -2267,10 +2483,12 @@ db2 🧪 test:
2267
2483
  - docker push $DOCKER_CACHE_IMAGE
2268
2484
  - collapseable_section_end "docker-push"
2269
2485
  cache:
2270
- - key: packagesdb2-yarn
2486
+ - key: packagesdb2-yarn-mr$CI_MERGE_REQUEST_IID
2271
2487
  policy: pull
2272
2488
  paths:
2273
2489
  - packages/db2/.yarn
2490
+ fallback_keys:
2491
+ - packagesdb2-yarn
2274
2492
  rules:
2275
2493
  - when: never
2276
2494
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -2435,17 +2653,17 @@ db2 🧪 test:
2435
2653
  - when: on_success
2436
2654
  if: $CI_MERGE_REQUEST_ID
2437
2655
  needs:
2438
- - job: db2 👮 lint
2656
+ - job: 'db2 👮 lint | review '
2439
2657
  artifacts: false
2440
2658
  - job: 'db2 🔨 app | review '
2441
2659
  artifacts: false
2442
2660
  - job: 'db2 🔨 docker | review '
2443
2661
  artifacts: false
2444
- - job: db2 🧪 test
2662
+ - job: 'db2 🧪 test | review '
2445
2663
  artifacts: false
2446
2664
  - job: 'db2 🧾 sbom | review '
2447
2665
  artifacts: true
2448
- - job: db2 🛡 audit
2666
+ - job: 'db2 🛡 audit | review '
2449
2667
  artifacts: false
2450
2668
  retry: *a1
2451
2669
  interruptible: true
@@ -2558,7 +2776,7 @@ db2 🧪 test:
2558
2776
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2559
2777
  - collapseable_section_end "nodeinstall"
2560
2778
  - collapseable_section_start "yarninstall" "Yarn install"
2561
- - yarn install --immutable
2779
+ - yarn install --immutable --inline-builds
2562
2780
  - collapseable_section_end "yarninstall"
2563
2781
  - yarn build
2564
2782
  cache:
@@ -2613,7 +2831,8 @@ db2 🧪 test:
2613
2831
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db2"
2614
2832
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2615
2833
  - |-
2616
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2834
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2835
+ COPY --chown=node:node $APP_DIR .
2617
2836
  RUN yarn plugin import workspace-tools
2618
2837
  RUN yarn workspaces focus --production && yarn rebuild"
2619
2838
  - |-
@@ -2911,7 +3130,7 @@ db2 🧪 test:
2911
3130
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2912
3131
  - collapseable_section_end "nodeinstall"
2913
3132
  - collapseable_section_start "yarninstall" "Yarn install"
2914
- - yarn install --immutable
3133
+ - yarn install --immutable --inline-builds
2915
3134
  - collapseable_section_end "yarninstall"
2916
3135
  - yarn build
2917
3136
  cache:
@@ -2966,7 +3185,8 @@ db2 🧪 test:
2966
3185
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/db2"
2967
3186
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2968
3187
  - |-
2969
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
3188
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
3189
+ COPY --chown=node:node $APP_DIR .
2970
3190
  RUN yarn plugin import workspace-tools
2971
3191
  RUN yarn workspaces focus --production && yarn rebuild"
2972
3192
  - |-
@@ -3197,7 +3417,7 @@ db2 🧪 test:
3197
3417
  retry: *a1
3198
3418
  interruptible: true
3199
3419
  allow_failure: true
3200
- api 🛡 audit:
3420
+ 'api 🛡 audit | dev ':
3201
3421
  stage: test
3202
3422
  image: path/to/docker/jobs-default:the-version
3203
3423
  variables:
@@ -3214,14 +3434,11 @@ api 🛡 audit:
3214
3434
  - when: never
3215
3435
  if: $CI_PIPELINE_SOURCE == "trigger"
3216
3436
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
3217
- - when: never
3218
- if: $CI_PIPELINE_SOURCE == "trigger"
3219
- - if: $CI_MERGE_REQUEST_ID
3220
3437
  needs: []
3221
3438
  retry: *a1
3222
3439
  interruptible: true
3223
3440
  allow_failure: true
3224
- api 👮 lint:
3441
+ 'api 👮 lint | dev ':
3225
3442
  stage: test
3226
3443
  image: path/to/docker/jobs-default:the-version
3227
3444
  variables:
@@ -3242,7 +3459,7 @@ api 👮 lint:
3242
3459
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3243
3460
  - collapseable_section_end "nodeinstall"
3244
3461
  - collapseable_section_start "yarninstall" "Yarn install"
3245
- - yarn install --immutable
3462
+ - yarn install --immutable --inline-builds
3246
3463
  - collapseable_section_end "yarninstall"
3247
3464
  - yarn lint
3248
3465
  cache:
@@ -3258,13 +3475,10 @@ api 👮 lint:
3258
3475
  - when: never
3259
3476
  if: $CI_PIPELINE_SOURCE == "trigger"
3260
3477
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
3261
- - when: never
3262
- if: $CI_PIPELINE_SOURCE == "trigger"
3263
- - if: $CI_MERGE_REQUEST_ID
3264
3478
  needs: []
3265
3479
  retry: *a1
3266
3480
  interruptible: true
3267
- api 🧪 test:
3481
+ 'api 🧪 test | dev ':
3268
3482
  stage: test
3269
3483
  image: path/to/docker/jobs-testing-chrome:the-version
3270
3484
  variables:
@@ -3285,7 +3499,7 @@ api 🧪 test:
3285
3499
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3286
3500
  - collapseable_section_end "nodeinstall"
3287
3501
  - collapseable_section_start "yarninstall" "Yarn install"
3288
- - yarn install --immutable
3502
+ - yarn install --immutable --inline-builds
3289
3503
  - collapseable_section_end "yarninstall"
3290
3504
  - yarn test
3291
3505
  cache:
@@ -3301,9 +3515,6 @@ api 🧪 test:
3301
3515
  - when: never
3302
3516
  if: $CI_PIPELINE_SOURCE == "trigger"
3303
3517
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
3304
- - when: never
3305
- if: $CI_PIPELINE_SOURCE == "trigger"
3306
- - if: $CI_MERGE_REQUEST_ID
3307
3518
  needs: []
3308
3519
  retry: *a1
3309
3520
  interruptible: true
@@ -3374,7 +3585,7 @@ api 🧪 test:
3374
3585
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3375
3586
  - collapseable_section_end "nodeinstall"
3376
3587
  - collapseable_section_start "yarninstall" "Yarn install"
3377
- - yarn install --immutable
3588
+ - yarn install --immutable --inline-builds
3378
3589
  - collapseable_section_end "yarninstall"
3379
3590
  - yarn build:worker
3380
3591
  cache:
@@ -3429,7 +3640,8 @@ api 🧪 test:
3429
3640
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
3430
3641
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
3431
3642
  - |-
3432
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
3643
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
3644
+ COPY --chown=node:node $APP_DIR .
3433
3645
  RUN yarn plugin import workspace-tools
3434
3646
  RUN yarn workspaces focus --production && yarn rebuild"
3435
3647
  - |-
@@ -3607,17 +3819,17 @@ api 🧪 test:
3607
3819
  - when: on_success
3608
3820
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
3609
3821
  needs:
3610
- - job: api 👮 lint
3822
+ - job: 'api 👮 lint | dev '
3611
3823
  artifacts: false
3612
3824
  - job: 'api 🔨 app | dev '
3613
3825
  artifacts: false
3614
3826
  - job: 'api 🔨 docker | dev '
3615
3827
  artifacts: false
3616
- - job: api 🧪 test
3828
+ - job: 'api 🧪 test | dev '
3617
3829
  artifacts: false
3618
3830
  - job: 'api 🧾 sbom | dev '
3619
3831
  artifacts: true
3620
- - job: api 🛡 audit
3832
+ - job: 'api 🛡 audit | dev '
3621
3833
  artifacts: false
3622
3834
  retry: *a1
3623
3835
  interruptible: true
@@ -3656,6 +3868,115 @@ api 🧪 test:
3656
3868
  retry: *a1
3657
3869
  interruptible: true
3658
3870
  allow_failure: true
3871
+ 'api 🛡 audit | review ':
3872
+ stage: test
3873
+ image: path/to/docker/jobs-default:the-version
3874
+ variables:
3875
+ KUBERNETES_CPU_REQUEST: '0.45'
3876
+ KUBERNETES_MEMORY_REQUEST: 1Gi
3877
+ KUBERNETES_MEMORY_LIMIT: 4Gi
3878
+ script:
3879
+ - collapseable_section_start "injectvars" "Injecting variables"
3880
+ - export APP_PATH="api"
3881
+ - collapseable_section_end "injectvars"
3882
+ - cd api
3883
+ - yarn npm audit --environment production
3884
+ rules:
3885
+ - when: never
3886
+ if: $CI_PIPELINE_SOURCE == "trigger"
3887
+ - if: $CI_MERGE_REQUEST_ID
3888
+ needs: []
3889
+ retry: *a1
3890
+ interruptible: true
3891
+ allow_failure: true
3892
+ 'api 👮 lint | review ':
3893
+ stage: test
3894
+ image: path/to/docker/jobs-default:the-version
3895
+ variables:
3896
+ KUBERNETES_CPU_REQUEST: '0.45'
3897
+ KUBERNETES_MEMORY_REQUEST: 1Gi
3898
+ KUBERNETES_MEMORY_LIMIT: 4Gi
3899
+ script:
3900
+ - collapseable_section_start "injectvars" "Injecting variables"
3901
+ - export APP_PATH="api"
3902
+ - collapseable_section_end "injectvars"
3903
+ - collapseable_section_start "nodeinstall" "Ensure node version"
3904
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
3905
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3906
+ - collapseable_section_end "nodeinstall"
3907
+ - cd api
3908
+ - collapseable_section_start "nodeinstall" "Ensure node version"
3909
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
3910
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3911
+ - collapseable_section_end "nodeinstall"
3912
+ - collapseable_section_start "yarninstall" "Yarn install"
3913
+ - yarn install --immutable --inline-builds
3914
+ - collapseable_section_end "yarninstall"
3915
+ - yarn lint
3916
+ cache:
3917
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
3918
+ policy: pull-push
3919
+ paths:
3920
+ - api/.yarn
3921
+ fallback_keys:
3922
+ - api-yarn
3923
+ - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
3924
+ policy: pull-push
3925
+ paths:
3926
+ - api/node_modules
3927
+ fallback_keys:
3928
+ - api-node-modules
3929
+ rules:
3930
+ - when: never
3931
+ if: $CI_PIPELINE_SOURCE == "trigger"
3932
+ - if: $CI_MERGE_REQUEST_ID
3933
+ needs: []
3934
+ retry: *a1
3935
+ interruptible: true
3936
+ 'api 🧪 test | review ':
3937
+ stage: test
3938
+ image: path/to/docker/jobs-testing-chrome:the-version
3939
+ variables:
3940
+ KUBERNETES_CPU_REQUEST: '0.45'
3941
+ KUBERNETES_MEMORY_REQUEST: 1Gi
3942
+ KUBERNETES_MEMORY_LIMIT: 4Gi
3943
+ script:
3944
+ - collapseable_section_start "injectvars" "Injecting variables"
3945
+ - export APP_PATH="api"
3946
+ - collapseable_section_end "injectvars"
3947
+ - collapseable_section_start "nodeinstall" "Ensure node version"
3948
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
3949
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3950
+ - collapseable_section_end "nodeinstall"
3951
+ - cd api
3952
+ - collapseable_section_start "nodeinstall" "Ensure node version"
3953
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
3954
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3955
+ - collapseable_section_end "nodeinstall"
3956
+ - collapseable_section_start "yarninstall" "Yarn install"
3957
+ - yarn install --immutable --inline-builds
3958
+ - collapseable_section_end "yarninstall"
3959
+ - yarn test
3960
+ cache:
3961
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
3962
+ policy: pull-push
3963
+ paths:
3964
+ - api/.yarn
3965
+ fallback_keys:
3966
+ - api-yarn
3967
+ - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
3968
+ policy: pull-push
3969
+ paths:
3970
+ - api/node_modules
3971
+ fallback_keys:
3972
+ - api-node-modules
3973
+ rules:
3974
+ - when: never
3975
+ if: $CI_PIPELINE_SOURCE == "trigger"
3976
+ - if: $CI_MERGE_REQUEST_ID
3977
+ needs: []
3978
+ retry: *a1
3979
+ interruptible: true
3659
3980
  'api 🔨 app | review ':
3660
3981
  stage: build
3661
3982
  image: path/to/docker/jobs-default:the-version
@@ -3723,18 +4044,22 @@ api 🧪 test:
3723
4044
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3724
4045
  - collapseable_section_end "nodeinstall"
3725
4046
  - collapseable_section_start "yarninstall" "Yarn install"
3726
- - yarn install --immutable
4047
+ - yarn install --immutable --inline-builds
3727
4048
  - collapseable_section_end "yarninstall"
3728
4049
  - yarn build:worker
3729
4050
  cache:
3730
- - key: api-yarn
4051
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
3731
4052
  policy: pull-push
3732
4053
  paths:
3733
4054
  - api/.yarn
3734
- - key: api-node-modules
4055
+ fallback_keys:
4056
+ - api-yarn
4057
+ - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
3735
4058
  policy: pull-push
3736
4059
  paths:
3737
4060
  - api/node_modules
4061
+ fallback_keys:
4062
+ - api-node-modules
3738
4063
  artifacts:
3739
4064
  paths:
3740
4065
  - api/__build_info.json
@@ -3778,7 +4103,8 @@ api 🧪 test:
3778
4103
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
3779
4104
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
3780
4105
  - |-
3781
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
4106
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
4107
+ COPY --chown=node:node $APP_DIR .
3782
4108
  RUN yarn plugin import workspace-tools
3783
4109
  RUN yarn workspaces focus --production && yarn rebuild"
3784
4110
  - |-
@@ -3801,10 +4127,12 @@ api 🧪 test:
3801
4127
  - docker push $DOCKER_CACHE_IMAGE
3802
4128
  - collapseable_section_end "docker-push"
3803
4129
  cache:
3804
- - key: api-yarn
4130
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
3805
4131
  policy: pull
3806
4132
  paths:
3807
4133
  - api/.yarn
4134
+ fallback_keys:
4135
+ - api-yarn
3808
4136
  rules:
3809
4137
  - when: never
3810
4138
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -3959,17 +4287,17 @@ api 🧪 test:
3959
4287
  - when: on_success
3960
4288
  if: $CI_MERGE_REQUEST_ID
3961
4289
  needs:
3962
- - job: api 👮 lint
4290
+ - job: 'api 👮 lint | review '
3963
4291
  artifacts: false
3964
4292
  - job: 'api 🔨 app | review '
3965
4293
  artifacts: false
3966
4294
  - job: 'api 🔨 docker | review '
3967
4295
  artifacts: false
3968
- - job: api 🧪 test
4296
+ - job: 'api 🧪 test | review '
3969
4297
  artifacts: false
3970
4298
  - job: 'api 🧾 sbom | review '
3971
4299
  artifacts: true
3972
- - job: api 🛡 audit
4300
+ - job: 'api 🛡 audit | review '
3973
4301
  artifacts: false
3974
4302
  retry: *a1
3975
4303
  interruptible: true
@@ -4081,7 +4409,7 @@ api 🧪 test:
4081
4409
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
4082
4410
  - collapseable_section_end "nodeinstall"
4083
4411
  - collapseable_section_start "yarninstall" "Yarn install"
4084
- - yarn install --immutable
4412
+ - yarn install --immutable --inline-builds
4085
4413
  - collapseable_section_end "yarninstall"
4086
4414
  - yarn build:worker
4087
4415
  cache:
@@ -4136,7 +4464,8 @@ api 🧪 test:
4136
4464
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
4137
4465
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
4138
4466
  - |-
4139
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
4467
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
4468
+ COPY --chown=node:node $APP_DIR .
4140
4469
  RUN yarn plugin import workspace-tools
4141
4470
  RUN yarn workspaces focus --production && yarn rebuild"
4142
4471
  - |-
@@ -4423,7 +4752,7 @@ api 🧪 test:
4423
4752
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
4424
4753
  - collapseable_section_end "nodeinstall"
4425
4754
  - collapseable_section_start "yarninstall" "Yarn install"
4426
- - yarn install --immutable
4755
+ - yarn install --immutable --inline-builds
4427
4756
  - collapseable_section_end "yarninstall"
4428
4757
  - yarn build:worker
4429
4758
  cache:
@@ -4478,7 +4807,8 @@ api 🧪 test:
4478
4807
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
4479
4808
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
4480
4809
  - |-
4481
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
4810
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
4811
+ COPY --chown=node:node $APP_DIR .
4482
4812
  RUN yarn plugin import workspace-tools
4483
4813
  RUN yarn workspaces focus --production && yarn rebuild"
4484
4814
  - |-