@catladder/cli 0.0.0-remove-sbom-9fc7b43f → 0.0.0-remove-sbom-a1bd384a

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.
@@ -1776,7 +1776,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
1776
1776
  KUBERNETES_MEMORY_LIMIT: "4Gi",
1777
1777
  };
1778
1778
  const createCustomTestJobs = (context) => {
1779
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1779
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
1780
1780
  // don't run tests after release
1781
1781
  // TODO: this will be replaced by using rules
1782
1782
  if (context.trigger === "taggedRelease") {
@@ -1807,8 +1807,8 @@ const createCustomTestJobs = (context) => {
1807
1807
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
1808
1808
  cache: undefined,
1809
1809
  script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
1810
- allow_failure: true,
1811
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifactsReports, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifacts),
1810
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
1811
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
1812
1812
  }
1813
1813
  : null;
1814
1814
  const lintJob = buildConfig.lint
@@ -1817,11 +1817,12 @@ const createCustomTestJobs = (context) => {
1817
1817
  ...base,
1818
1818
  runnerVariables: {
1819
1819
  ...RUNNER_CUSTOM_TEST_VARIABLES,
1820
- ...((_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.runnerVariables) !== null && _j !== void 0 ? _j : {}),
1820
+ ...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
1821
1821
  },
1822
- image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : buildConfig.jobImage,
1823
- script: [...(0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)],
1824
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts),
1822
+ image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
1823
+ script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
1824
+ allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
1825
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
1825
1826
  }
1826
1827
  : null;
1827
1828
  const testJob = buildConfig.test
@@ -1830,11 +1831,12 @@ const createCustomTestJobs = (context) => {
1830
1831
  ...base,
1831
1832
  runnerVariables: {
1832
1833
  ...RUNNER_CUSTOM_TEST_VARIABLES,
1833
- ...((_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.runnerVariables) !== null && _r !== void 0 ? _r : {}),
1834
+ ...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
1834
1835
  },
1835
- image: (_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.jobImage) !== null && _t !== void 0 ? _t : buildConfig.jobImage,
1836
- script: [...(0, utils_1.ensureArray)((_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.command)],
1837
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts),
1836
+ image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
1837
+ script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
1838
+ allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
1839
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
1838
1840
  }
1839
1841
  : null;
1840
1842
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -2373,7 +2375,7 @@ const constants_1 = __nccwpck_require__(5497);
2373
2375
  const yarn_1 = __nccwpck_require__(8897);
2374
2376
  const createJobCache_1 = __nccwpck_require__(5644);
2375
2377
  const createNodeTestJobs = (context) => {
2376
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
2378
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
2377
2379
  // don't run tests after release
2378
2380
  // TODO: this will be replaced by using rules
2379
2381
  if (context.trigger === "taggedRelease") {
@@ -2413,12 +2415,12 @@ const createNodeTestJobs = (context) => {
2413
2415
  `cd ${context.build.dir}`,
2414
2416
  ...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
2415
2417
  context.packageManagerInfo.isClassic
2416
- ? "yarn audit"
2417
- : "yarn npm audit --environment production", // yarn 2
2418
+ ? "yarn audit --level critical"
2419
+ : "yarn npm audit --environment production --level critical", // yarn 2
2418
2420
  ]),
2419
2421
  ],
2420
- allow_failure: true,
2421
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts),
2422
+ allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
2423
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
2422
2424
  }
2423
2425
  : null;
2424
2426
  const lintJob = buildConfig.lint !== false
@@ -2427,17 +2429,18 @@ const createNodeTestJobs = (context) => {
2427
2429
  ...base,
2428
2430
  runnerVariables: {
2429
2431
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
2430
- ...((_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.runnerVariables) !== null && _k !== void 0 ? _k : {}),
2432
+ ...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
2431
2433
  },
2432
- image: (_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : defaultImage,
2434
+ image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
2433
2435
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
2434
2436
  script: [
2435
2437
  ...(0, yarn_1.ensureNodeVersion)(context),
2436
2438
  `cd ${context.build.dir}`,
2437
2439
  ...yarnInstall,
2438
- ...((_p = (0, utils_1.ensureArrayOrNull)((_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : ["yarn lint"]),
2440
+ ...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
2439
2441
  ],
2440
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifactsReports, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifacts),
2442
+ allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
2443
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
2441
2444
  }
2442
2445
  : null;
2443
2446
  const testJob = buildConfig.test !== false
@@ -2446,17 +2449,18 @@ const createNodeTestJobs = (context) => {
2446
2449
  ...base,
2447
2450
  runnerVariables: {
2448
2451
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
2449
- ...((_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.runnerVariables) !== null && _t !== void 0 ? _t : {}),
2452
+ ...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
2450
2453
  },
2451
- image: (_v = (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.jobImage) !== null && _v !== void 0 ? _v : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
2454
+ image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
2452
2455
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
2453
2456
  script: [
2454
2457
  ...(0, yarn_1.ensureNodeVersion)(context),
2455
2458
  `cd ${context.build.dir}`,
2456
2459
  ...yarnInstall,
2457
- ...((_x = (0, utils_1.ensureArrayOrNull)((_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.command)) !== null && _x !== void 0 ? _x : ["yarn test"]),
2460
+ ...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
2458
2461
  ],
2459
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.artifactsReports, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifacts),
2462
+ allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
2463
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
2460
2464
  }
2461
2465
  : null;
2462
2466
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -2596,6 +2600,7 @@ const createRailsBuildJobs = (context) => {
2596
2600
  `chmod +x /usr/local/bin/pack`,
2597
2601
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
2598
2602
  `sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock`,
2603
+ `pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io`,
2599
2604
  `pack build "$DOCKER_IMAGE:$DOCKER_IMAGE_TAG" --builder '${cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image}' --publish --cache-image "$DOCKER_CACHE_IMAGE" ${packEnvArgs} ${(_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : ""}`,
2600
2605
  ],
2601
2606
  },
@@ -2633,7 +2638,7 @@ exports.createRailsTestJobs = void 0;
2633
2638
  const __1 = __nccwpck_require__(241);
2634
2639
  const utils_1 = __nccwpck_require__(595);
2635
2640
  const createRailsTestJobs = (context) => {
2636
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
2641
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
2637
2642
  // don't run tests after release
2638
2643
  // TODO: this will be replaced by using rules
2639
2644
  if (context.trigger === "taggedRelease") {
@@ -2677,7 +2682,7 @@ const createRailsTestJobs = (context) => {
2677
2682
  "bundle audit check",
2678
2683
  ]),
2679
2684
  ],
2680
- allow_failure: true,
2685
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
2681
2686
  }
2682
2687
  : null;
2683
2688
  const lintJob = buildConfig.lint !== false
@@ -2685,14 +2690,15 @@ const createRailsTestJobs = (context) => {
2685
2690
  name: "👮 lint",
2686
2691
  ...base,
2687
2692
  cache: bundlerCache,
2688
- image: (_h = (_g = (_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.jobImage) !== null && _g !== void 0 ? _g : buildConfig.jobImage) !== null && _h !== void 0 ? _h : defaultImage,
2693
+ image: (_k = (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage) !== null && _k !== void 0 ? _k : defaultImage,
2689
2694
  script: [
2690
2695
  `cd ${context.build.dir}`,
2691
2696
  ...bundlerInstall,
2692
- ...((_k = (0, utils_1.ensureArrayOrNull)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : [
2697
+ ...((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : [
2693
2698
  "bundle exec rubocop",
2694
2699
  ]),
2695
2700
  ],
2701
+ allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure,
2696
2702
  }
2697
2703
  : null;
2698
2704
  const testJob = buildConfig.test !== false
@@ -2700,16 +2706,17 @@ const createRailsTestJobs = (context) => {
2700
2706
  name: "🧪 test",
2701
2707
  ...base,
2702
2708
  cache: bundlerCache,
2703
- image: (_o = (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage) !== null && _o !== void 0 ? _o : defaultImage,
2709
+ image: (_r = (_q = (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.jobImage) !== null && _q !== void 0 ? _q : buildConfig.jobImage) !== null && _r !== void 0 ? _r : defaultImage,
2704
2710
  script: [
2705
2711
  `cd ${context.build.dir}`,
2706
2712
  ...bundlerInstall,
2707
- ...((_q = (0, utils_1.ensureArrayOrNull)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : [
2713
+ ...((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : [
2708
2714
  "bundle exec rake db:test:prepare",
2709
2715
  "bundle exec rake assets:precompile assets:clean",
2710
2716
  "bundle exec rspec",
2711
2717
  ]),
2712
2718
  ],
2719
+ allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
2713
2720
  runnerVariables: {
2714
2721
  RAILS_ENV: "test",
2715
2722
  DATABASE_URL: "postgresql://postgres@database",
@@ -2717,7 +2724,7 @@ const createRailsTestJobs = (context) => {
2717
2724
  services: [
2718
2725
  {
2719
2726
  name: buildConfig.test && "databaseImage" in buildConfig.test
2720
- ? ((_s = (_r = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _r === void 0 ? void 0 : _r.databaseImage) !== null && _s !== void 0 ? _s : "docker.io/postgres:latest")
2727
+ ? ((_w = (_v = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _v === void 0 ? void 0 : _v.databaseImage) !== null && _w !== void 0 ? _w : "docker.io/postgres:latest")
2721
2728
  : "docker.io/postgres:latest",
2722
2729
  alias: "database",
2723
2730
  variables: {
@@ -5042,7 +5042,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
5042
5042
  KUBERNETES_MEMORY_LIMIT: "4Gi",
5043
5043
  };
5044
5044
  const createCustomTestJobs = (context) => {
5045
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
5045
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
5046
5046
  // don't run tests after release
5047
5047
  // TODO: this will be replaced by using rules
5048
5048
  if (context.trigger === "taggedRelease") {
@@ -5073,8 +5073,8 @@ const createCustomTestJobs = (context) => {
5073
5073
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
5074
5074
  cache: undefined,
5075
5075
  script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
5076
- allow_failure: true,
5077
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifactsReports, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifacts),
5076
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
5077
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
5078
5078
  }
5079
5079
  : null;
5080
5080
  const lintJob = buildConfig.lint
@@ -5083,11 +5083,12 @@ const createCustomTestJobs = (context) => {
5083
5083
  ...base,
5084
5084
  runnerVariables: {
5085
5085
  ...RUNNER_CUSTOM_TEST_VARIABLES,
5086
- ...((_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.runnerVariables) !== null && _j !== void 0 ? _j : {}),
5086
+ ...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
5087
5087
  },
5088
- image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : buildConfig.jobImage,
5089
- script: [...(0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)],
5090
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts),
5088
+ image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
5089
+ script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
5090
+ allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
5091
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
5091
5092
  }
5092
5093
  : null;
5093
5094
  const testJob = buildConfig.test
@@ -5096,11 +5097,12 @@ const createCustomTestJobs = (context) => {
5096
5097
  ...base,
5097
5098
  runnerVariables: {
5098
5099
  ...RUNNER_CUSTOM_TEST_VARIABLES,
5099
- ...((_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.runnerVariables) !== null && _r !== void 0 ? _r : {}),
5100
+ ...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
5100
5101
  },
5101
- image: (_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.jobImage) !== null && _t !== void 0 ? _t : buildConfig.jobImage,
5102
- script: [...(0, utils_1.ensureArray)((_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.command)],
5103
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts),
5102
+ image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
5103
+ script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
5104
+ allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
5105
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
5104
5106
  }
5105
5107
  : null;
5106
5108
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -5639,7 +5641,7 @@ const constants_1 = __nccwpck_require__(37878);
5639
5641
  const yarn_1 = __nccwpck_require__(78897);
5640
5642
  const createJobCache_1 = __nccwpck_require__(65644);
5641
5643
  const createNodeTestJobs = (context) => {
5642
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
5644
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
5643
5645
  // don't run tests after release
5644
5646
  // TODO: this will be replaced by using rules
5645
5647
  if (context.trigger === "taggedRelease") {
@@ -5679,12 +5681,12 @@ const createNodeTestJobs = (context) => {
5679
5681
  `cd ${context.build.dir}`,
5680
5682
  ...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
5681
5683
  context.packageManagerInfo.isClassic
5682
- ? "yarn audit"
5683
- : "yarn npm audit --environment production", // yarn 2
5684
+ ? "yarn audit --level critical"
5685
+ : "yarn npm audit --environment production --level critical", // yarn 2
5684
5686
  ]),
5685
5687
  ],
5686
- allow_failure: true,
5687
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts),
5688
+ allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
5689
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
5688
5690
  }
5689
5691
  : null;
5690
5692
  const lintJob = buildConfig.lint !== false
@@ -5693,17 +5695,18 @@ const createNodeTestJobs = (context) => {
5693
5695
  ...base,
5694
5696
  runnerVariables: {
5695
5697
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
5696
- ...((_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.runnerVariables) !== null && _k !== void 0 ? _k : {}),
5698
+ ...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
5697
5699
  },
5698
- image: (_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : defaultImage,
5700
+ image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
5699
5701
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
5700
5702
  script: [
5701
5703
  ...(0, yarn_1.ensureNodeVersion)(context),
5702
5704
  `cd ${context.build.dir}`,
5703
5705
  ...yarnInstall,
5704
- ...((_p = (0, utils_1.ensureArrayOrNull)((_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : ["yarn lint"]),
5706
+ ...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
5705
5707
  ],
5706
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifactsReports, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifacts),
5708
+ allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
5709
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
5707
5710
  }
5708
5711
  : null;
5709
5712
  const testJob = buildConfig.test !== false
@@ -5712,17 +5715,18 @@ const createNodeTestJobs = (context) => {
5712
5715
  ...base,
5713
5716
  runnerVariables: {
5714
5717
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
5715
- ...((_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.runnerVariables) !== null && _t !== void 0 ? _t : {}),
5718
+ ...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
5716
5719
  },
5717
- image: (_v = (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.jobImage) !== null && _v !== void 0 ? _v : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
5720
+ image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
5718
5721
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
5719
5722
  script: [
5720
5723
  ...(0, yarn_1.ensureNodeVersion)(context),
5721
5724
  `cd ${context.build.dir}`,
5722
5725
  ...yarnInstall,
5723
- ...((_x = (0, utils_1.ensureArrayOrNull)((_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.command)) !== null && _x !== void 0 ? _x : ["yarn test"]),
5726
+ ...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
5724
5727
  ],
5725
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.artifactsReports, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifacts),
5728
+ allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
5729
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
5726
5730
  }
5727
5731
  : null;
5728
5732
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -5862,6 +5866,7 @@ const createRailsBuildJobs = (context) => {
5862
5866
  `chmod +x /usr/local/bin/pack`,
5863
5867
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
5864
5868
  `sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock`,
5869
+ `pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io`,
5865
5870
  `pack build "$DOCKER_IMAGE:$DOCKER_IMAGE_TAG" --builder '${cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image}' --publish --cache-image "$DOCKER_CACHE_IMAGE" ${packEnvArgs} ${(_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : ""}`,
5866
5871
  ],
5867
5872
  },
@@ -5899,7 +5904,7 @@ exports.createRailsTestJobs = void 0;
5899
5904
  const __1 = __nccwpck_require__(60241);
5900
5905
  const utils_1 = __nccwpck_require__(20595);
5901
5906
  const createRailsTestJobs = (context) => {
5902
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
5907
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
5903
5908
  // don't run tests after release
5904
5909
  // TODO: this will be replaced by using rules
5905
5910
  if (context.trigger === "taggedRelease") {
@@ -5943,7 +5948,7 @@ const createRailsTestJobs = (context) => {
5943
5948
  "bundle audit check",
5944
5949
  ]),
5945
5950
  ],
5946
- allow_failure: true,
5951
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
5947
5952
  }
5948
5953
  : null;
5949
5954
  const lintJob = buildConfig.lint !== false
@@ -5951,14 +5956,15 @@ const createRailsTestJobs = (context) => {
5951
5956
  name: "👮 lint",
5952
5957
  ...base,
5953
5958
  cache: bundlerCache,
5954
- image: (_h = (_g = (_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.jobImage) !== null && _g !== void 0 ? _g : buildConfig.jobImage) !== null && _h !== void 0 ? _h : defaultImage,
5959
+ image: (_k = (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage) !== null && _k !== void 0 ? _k : defaultImage,
5955
5960
  script: [
5956
5961
  `cd ${context.build.dir}`,
5957
5962
  ...bundlerInstall,
5958
- ...((_k = (0, utils_1.ensureArrayOrNull)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : [
5963
+ ...((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : [
5959
5964
  "bundle exec rubocop",
5960
5965
  ]),
5961
5966
  ],
5967
+ allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure,
5962
5968
  }
5963
5969
  : null;
5964
5970
  const testJob = buildConfig.test !== false
@@ -5966,16 +5972,17 @@ const createRailsTestJobs = (context) => {
5966
5972
  name: "🧪 test",
5967
5973
  ...base,
5968
5974
  cache: bundlerCache,
5969
- image: (_o = (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage) !== null && _o !== void 0 ? _o : defaultImage,
5975
+ image: (_r = (_q = (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.jobImage) !== null && _q !== void 0 ? _q : buildConfig.jobImage) !== null && _r !== void 0 ? _r : defaultImage,
5970
5976
  script: [
5971
5977
  `cd ${context.build.dir}`,
5972
5978
  ...bundlerInstall,
5973
- ...((_q = (0, utils_1.ensureArrayOrNull)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : [
5979
+ ...((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : [
5974
5980
  "bundle exec rake db:test:prepare",
5975
5981
  "bundle exec rake assets:precompile assets:clean",
5976
5982
  "bundle exec rspec",
5977
5983
  ]),
5978
5984
  ],
5985
+ allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
5979
5986
  runnerVariables: {
5980
5987
  RAILS_ENV: "test",
5981
5988
  DATABASE_URL: "postgresql://postgres@database",
@@ -5983,7 +5990,7 @@ const createRailsTestJobs = (context) => {
5983
5990
  services: [
5984
5991
  {
5985
5992
  name: buildConfig.test && "databaseImage" in buildConfig.test
5986
- ? ((_s = (_r = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _r === void 0 ? void 0 : _r.databaseImage) !== null && _s !== void 0 ? _s : "docker.io/postgres:latest")
5993
+ ? ((_w = (_v = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _v === void 0 ? void 0 : _v.databaseImage) !== null && _w !== void 0 ? _w : "docker.io/postgres:latest")
5987
5994
  : "docker.io/postgres:latest",
5988
5995
  alias: "database",
5989
5996
  variables: {
@@ -11,7 +11,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
11
11
  KUBERNETES_MEMORY_LIMIT: "4Gi",
12
12
  };
13
13
  const createCustomTestJobs = (context) => {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
15
15
  // don't run tests after release
16
16
  // TODO: this will be replaced by using rules
17
17
  if (context.trigger === "taggedRelease") {
@@ -42,8 +42,8 @@ const createCustomTestJobs = (context) => {
42
42
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
43
43
  cache: undefined,
44
44
  script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
45
- allow_failure: true,
46
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifactsReports, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifacts),
45
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
46
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
47
47
  }
48
48
  : null;
49
49
  const lintJob = buildConfig.lint
@@ -52,11 +52,12 @@ const createCustomTestJobs = (context) => {
52
52
  ...base,
53
53
  runnerVariables: {
54
54
  ...RUNNER_CUSTOM_TEST_VARIABLES,
55
- ...((_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.runnerVariables) !== null && _j !== void 0 ? _j : {}),
55
+ ...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
56
56
  },
57
- image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : buildConfig.jobImage,
58
- script: [...(0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)],
59
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts),
57
+ image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
58
+ script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
59
+ allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
60
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
60
61
  }
61
62
  : null;
62
63
  const testJob = buildConfig.test
@@ -65,11 +66,12 @@ const createCustomTestJobs = (context) => {
65
66
  ...base,
66
67
  runnerVariables: {
67
68
  ...RUNNER_CUSTOM_TEST_VARIABLES,
68
- ...((_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.runnerVariables) !== null && _r !== void 0 ? _r : {}),
69
+ ...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
69
70
  },
70
- image: (_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.jobImage) !== null && _t !== void 0 ? _t : buildConfig.jobImage,
71
- script: [...(0, utils_1.ensureArray)((_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.command)],
72
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts),
71
+ image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
72
+ script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
73
+ allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
74
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
73
75
  }
74
76
  : null;
75
77
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -1 +1 @@
1
- {"version":3,"file":"testJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/custom/testJob.ts"],"names":[],"mappings":";;;AAGA,uCAAkD;AAClD,yEAAsE;AACtE,4DAAmE;AACnE,oCAAyC;AAEzC,MAAM,4BAA4B,GAAG;IACnC,sBAAsB,EAAE,MAAM;IAC9B,yBAAyB,EAAE,KAAK;IAChC,uBAAuB,EAAE,KAAK;CAC/B,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,OAAkC,EAClB,EAAE;;IAClB,gCAAgC;IAChC,6CAA6C;IAC7C,IAAI,OAAO,CAAC,OAAO,KAAK,eAAe,EAAE,CAAC;QACxC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IAEzC,IAAI,CAAC,IAAA,qBAAa,EAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,GAA0C;QAClD,SAAS,EAAE;YACT,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG;YAC3B,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;SACjD;QACD,QAAQ,EAAE,WAAW,CAAC,WAAW;QACjC,KAAK,EAAE,IAAA,yCAAwB,EAAC,OAAO,EAAE,WAAW,CAAC;QACrD,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,EAAE;KACV,CAAC;IACF,MAAM,QAAQ,GAAwB,WAAW,CAAC,KAAK;QACrD,CAAC,CAAC;YACE,IAAI,EAAE,UAAU;YAChB,GAAG,IAAI;YACP,eAAe,EAAE;gBACf,GAAG,4BAA4B;gBAC/B,GAAG,CAAC,MAAA,MAAA,WAAW,CAAC,KAAK,0CAAE,eAAe,mCAAI,EAAE,CAAC;aAC9C;YACD,K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7 @@ const constants_1 = require("./constants");
10
10
  const yarn_1 = require("./yarn");
11
11
  const createJobCache_1 = require("../cache/createJobCache");
12
12
  const createNodeTestJobs = (context) => {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
13
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
14
14
  // don't run tests after release
15
15
  // TODO: this will be replaced by using rules
16
16
  if (context.trigger === "taggedRelease") {
@@ -50,12 +50,12 @@ const createNodeTestJobs = (context) => {
50
50
  `cd ${context.build.dir}`,
51
51
  ...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
52
52
  context.packageManagerInfo.isClassic
53
- ? "yarn audit"
54
- : "yarn npm audit --environment production", // yarn 2
53
+ ? "yarn audit --level critical"
54
+ : "yarn npm audit --environment production --level critical", // yarn 2
55
55
  ]),
56
56
  ],
57
- allow_failure: true,
58
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts),
57
+ allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
58
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
59
59
  }
60
60
  : null;
61
61
  const lintJob = buildConfig.lint !== false
@@ -64,17 +64,18 @@ const createNodeTestJobs = (context) => {
64
64
  ...base,
65
65
  runnerVariables: {
66
66
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
67
- ...((_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.runnerVariables) !== null && _k !== void 0 ? _k : {}),
67
+ ...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
68
68
  },
69
- image: (_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : defaultImage,
69
+ image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
70
70
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
71
71
  script: [
72
72
  ...(0, yarn_1.ensureNodeVersion)(context),
73
73
  `cd ${context.build.dir}`,
74
74
  ...yarnInstall,
75
- ...((_p = (0, utils_1.ensureArrayOrNull)((_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : ["yarn lint"]),
75
+ ...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
76
76
  ],
77
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifactsReports, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifacts),
77
+ allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
78
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
78
79
  }
79
80
  : null;
80
81
  const testJob = buildConfig.test !== false
@@ -83,17 +84,18 @@ const createNodeTestJobs = (context) => {
83
84
  ...base,
84
85
  runnerVariables: {
85
86
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
86
- ...((_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.runnerVariables) !== null && _t !== void 0 ? _t : {}),
87
+ ...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
87
88
  },
88
- image: (_v = (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.jobImage) !== null && _v !== void 0 ? _v : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
89
+ image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
89
90
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
90
91
  script: [
91
92
  ...(0, yarn_1.ensureNodeVersion)(context),
92
93
  `cd ${context.build.dir}`,
93
94
  ...yarnInstall,
94
- ...((_x = (0, utils_1.ensureArrayOrNull)((_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.command)) !== null && _x !== void 0 ? _x : ["yarn test"]),
95
+ ...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
95
96
  ],
96
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.artifactsReports, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifacts),
97
+ allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
98
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
97
99
  }
98
100
  : null;
99
101
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -1 +1 @@
1
- {"version":3,"file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GAAG,EACjB,MAAA,WAAW,CAAC,IAAI,0CAAE,gBAAgB,EAClC,MAAA,WAAW,CAAC,IAAI,0CAAE,SAAS,CAC5B;SACF;QACH,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,cAAM,CAAC,CAAC;AACrD,CAAC,CAAC;AAhHW,QAAA,kBAAkB,sBAgH7B"}
@@ -43,6 +43,7 @@ const createRailsBuildJobs = (context) => {
43
43
  `chmod +x /usr/local/bin/pack`,
44
44
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
45
45
  `sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock`,
46
+ `pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io`,
46
47
  `pack build "$DOCKER_IMAGE:$DOCKER_IMAGE_TAG" --builder '${cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image}' --publish --cache-image "$DOCKER_CACHE_IMAGE" ${packEnvArgs} ${(_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : ""}`,
47
48
  ],
48
49
  },
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/rails/build.ts"],"names":[],"mappings":";;;AACA,6BAA0D;AAE1D,kCAAmD;AACnD,sCAImB;AACnB,oCAAyC;AAElC,MAAM,oBAAoB,GAAG,CAClC,OAAkC,EAClB,EAAE;;IAClB,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IACzC,IAAI,CAAC,IAAA,qBAAa,EAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC;QACzC,oBAAoB;QACpB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,4DAA4D;IAC5D,IAAI,CAAC,IAAA,qCA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CAAE,KACX,mDAAmD,WAAW,IAC5D,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EACvC,EAAE;aACH;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAnDW,QAAA,oBAAoB,wBAmD/B"}
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/rails/build.ts"],"names":[],"mappings":";;;AACA,6BAA0D;AAE1D,kCAAmD;AACnD,sCAImB;AACnB,oCAAyC;AAElC,MAAM,oBAAoB,GAAG,CAClC,OAAkC,EAClB,EAAE;;IAClB,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IACzC,IAAI,CAAC,IAAA,qBAAa,EAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC;QACzC,oBAAoB;QACpB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,4DAA4D;IAC5D,IAAI,CAAC,IAAA,qCAAiC,EAAC,OAAO,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,IAAA,sBAAa,EAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,OAAO,IAAA,+BAAwB,EAAC,OAAO,EAAE;YACvC,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE;gBACX,MAAM,EAAE,IAAA,oCAA2B,EAAC,OAAO,CAAC;gBAC5C,SAAS,EAAE,EAAE;aACd;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC;IAEvC,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,EAAE,CAAC;SACzD,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EA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