@checkstack/healthcheck-jenkins-backend 0.3.9 → 0.3.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @checkstack/healthcheck-jenkins-backend
2
2
 
3
+ ## 0.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - aa2b3aa: fix: remove arbitrary hardcoded assertions in jenkins collectors (queue-info, node-health, job-status) to prevent silent fallback assertion failures, instead properly threading transport execution errors directly to the SingleRunChartGrid UI display widget via a new `_collectorError` result payload property.
8
+
3
9
  ## 0.3.9
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-jenkins-backend",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -199,14 +199,8 @@ export class JobStatusCollector implements CollectorStrategy<
199
199
  }
200
200
  }
201
201
 
202
- // Determine if there's an error based on build result
203
- const isFailure =
204
- result.lastBuildResult === "FAILURE" ||
205
- result.lastBuildResult === "ABORTED";
206
-
207
202
  return {
208
203
  result,
209
- error: isFailure ? `Last build: ${result.lastBuildResult}` : undefined,
210
204
  };
211
205
  }
212
206
 
@@ -207,9 +207,6 @@ export class NodeHealthCollector implements CollectorStrategy<
207
207
 
208
208
  return {
209
209
  result,
210
- error: isOffline
211
- ? `Node offline: ${data.offlineCauseReason || "Unknown reason"}`
212
- : undefined,
213
210
  };
214
211
  }
215
212
 
@@ -179,16 +179,8 @@ export class QueueInfoCollector implements CollectorStrategy<
179
179
  avgWaitingMs,
180
180
  };
181
181
 
182
- // Warn if queue is backing up
183
- const hasIssue = stuckCount > 0 || items.length > 10;
184
-
185
182
  return {
186
183
  result,
187
- error: hasIssue
188
- ? `Queue has ${items.length} items${
189
- stuckCount > 0 ? `, ${stuckCount} stuck` : ""
190
- }`
191
- : undefined,
192
184
  };
193
185
  }
194
186