@cloudbeat/atlas-cli 0.4.1 → 0.4.2

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.
@@ -114,6 +114,16 @@ function registerResults(program) {
114
114
  const res = await api.stop(testId);
115
115
  if (opts.json)
116
116
  (0, ui_1.json)({ testId, ...res });
117
+ // A run that had already ended is not a failed stop. Without this, every
118
+ // naturally-finished run answers with its (powered-off) servers listed as
119
+ // unreachable, which reads like the test is still out there running.
120
+ if (res.alreadyFinished) {
121
+ if (!opts.json) {
122
+ const when = res.finishedAt ? new Date(res.finishedAt).toLocaleString() : 'earlier';
123
+ ui_1.log.ok(`${testId} had already finished (${when}) — nothing to stop.`);
124
+ }
125
+ return;
126
+ }
117
127
  if (res.unreachable?.length || res.stillRunning?.length) {
118
128
  // The API only marks a server stopped once it confirms the process is
119
129
  // gone; anything else must be surfaced, not rounded up to success.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbeat/atlas-cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Atlas CLI — run JMeter load tests from CI and record scenarios",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {