@leverege/build-tools 2.69.1 → 2.69.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.69.1",
3
+ "version": "2.69.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -20,7 +20,7 @@ import {
20
20
 
21
21
  import docker from './Docker.mjs'
22
22
 
23
- const minimumBuildToolsVersion = '2.69.0'
23
+ const minimumBuildToolsVersion = '2.68.0'
24
24
 
25
25
  // refresh-npm-token does not throw so no need to try, but it emits in debug
26
26
  const refreshErr = await shellCmd( 'refresh-npm-token' )
@@ -93,7 +93,8 @@ const repoDescr = await analyzeRepository( giveGuidance )
93
93
  debug( { repoDescr }, '<==The Repo Description' )
94
94
 
95
95
  if ( semver.lt( semver.coerce( repoDescr.buildToolsVersion ), minimumBuildToolsVersion ) ) {
96
- warning( `package.json @leverege/build-tools preferred minimum version is ^${minimumBuildToolsVersion}\n` )
96
+ const warningPrefix = repoDescr.isNodeJsProject ? 'check the package.json devDependencies - ' : ''
97
+ warning( `${warningPrefix}@leverege/build-tools recommended minimum version is ^${minimumBuildToolsVersion}\n` )
97
98
  await proceed()
98
99
  }
99
100
 
@@ -43,7 +43,7 @@ fs.mkdirSync( 'docs/md', { recursive : true } )
43
43
  try {
44
44
  await shellCmd( `npx --yes jsdoc -c ${jsdocConfig} -t ${jsdocTemplate} -R README.md -d docs src` )
45
45
  await shellCmd(
46
- `npx --yes --package=jsdoc-to-markdown jsdoc2md --files src/*.js --configure ${jsdocConfig}`,
46
+ `npx --yes --package=jsdoc-to-markdown jsdoc2md --files 'src/*.js' --configure ${jsdocConfig}`,
47
47
  { stdout : { file : 'docs/md/API.md' } }
48
48
  )
49
49
  } catch ( error ) {
@@ -101,8 +101,8 @@ spec:
101
101
  description: "Postgresql restarted\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
102
102
 
103
103
  - alert: PostgresqlHighRollbackRate
104
- expr: sum by (namespace,datname) ((rate(cnpg_pg_stat_database_xact_rollback{datname!~"template.*|postgres",datid!="0"}[3m])) / ((rate(cnpg_pg_stat_database_xact_rollback{datname!~"template.*|postgres",datid!="0"}[3m])) + (rate(cnpg_pg_stat_database_xact_commit{datname!~"template.*|postgres",datid!="0"}[3m])))) > 0.02
105
- for: 0m
104
+ expr: sum by (namespace,datname) ((rate(cnpg_pg_stat_database_xact_rollback{datname!~"template.*|postgres",datid!="0"}[5m])) / ((rate(cnpg_pg_stat_database_xact_rollback{datname!~"template.*|postgres",datid!="0"}[5m])) + (rate(cnpg_pg_stat_database_xact_commit{datname!~"template.*|postgres",datid!="0"}[5m])))) > 0.04
105
+ for: 5m
106
106
  labels:
107
107
  severity: warning
108
108
  annotations:
@@ -165,7 +165,7 @@ spec:
165
165
  LABELS = {{ $labels }}
166
166
  - alert: KubernetesHpaScaleInability
167
167
  expr: (kube_horizontalpodautoscaler_spec_max_replicas - kube_horizontalpodautoscaler_status_desired_replicas) * on (horizontalpodautoscaler,namespace) (kube_horizontalpodautoscaler_status_condition{condition="ScalingLimited", status="true"} == 1) == 0
168
- for: 2m
168
+ for: 5m # awesome was => 2m
169
169
  labels:
170
170
  severity: warning
171
171
  annotations:
@@ -176,7 +176,7 @@ spec:
176
176
  # LABELS = {{ $labels }}
177
177
  - alert: KubernetesHpaMetricsUnavailability
178
178
  expr: kube_horizontalpodautoscaler_status_condition{status="false", condition="ScalingActive"} == 1
179
- for: 3m # awesome was => 0m
179
+ for: 5m # awesome was => 0m
180
180
  labels:
181
181
  severity: warning
182
182
  annotations:
@@ -240,7 +240,7 @@ spec:
240
240
  LABELS = {{ $labels }}
241
241
  - alert: KubernetesDeploymentReplicasMismatch
242
242
  expr: kube_deployment_spec_replicas != kube_deployment_status_replicas_available
243
- for: 10m
243
+ for: 20m # awesome was => 10m
244
244
  labels:
245
245
  severity: warning
246
246
  annotations:
@@ -251,7 +251,7 @@ spec:
251
251
  LABELS = {{ $labels }}
252
252
  - alert: KubernetesStatefulsetReplicasMismatch
253
253
  expr: kube_statefulset_status_replicas_ready != kube_statefulset_status_replicas
254
- for: 10m
254
+ for: 20m # awesome was => 10m
255
255
  labels:
256
256
  severity: warning
257
257
  annotations: