Skip to content

Conversation

@ereslibre
Copy link
Collaborator

@ereslibre ereslibre commented Nov 12, 2025

Fixes: #289

Fixes an issue where telemetry was not being properly shut down when commands exit with errors, warnings, or success messages. This could lead to incomplete telemetry data or hanging processes.

Changes

  • Updated exitWithError, exitWithSuccess, and exitWithWarn utility functions to accept telemetry instance and shut it down before exiting
  • Added build-dev npm scripts to root and CLI packages for faster development builds without minification
  • Updated all command exit paths in delete, logs, merge, push, and iterate commands to pass telemetry instance
  • Modified all test files to expect telemetry in exit function calls

Notes

The telemetry shutdown is now consistently handled across all exit paths, ensuring proper cleanup regardless of command success or failure. The development build scripts improve the developer experience by reducing build times during development iterations.

@ereslibre ereslibre force-pushed the rover/task-26-FUMK4wnrDeGU branch from 7bb7b21 to 3b94974 Compare November 12, 2025 15:34
@ereslibre ereslibre force-pushed the rover/task-26-FUMK4wnrDeGU branch from 3b94974 to 8ae9cee Compare November 12, 2025 15:49
@ereslibre ereslibre marked this pull request as ready for review November 12, 2025 15:50
@ereslibre ereslibre added this to the v1.5 milestone Nov 12, 2025
@ereslibre ereslibre self-assigned this Nov 12, 2025
@Angelmmiguel Angelmmiguel removed this from the v1.5 milestone Nov 13, 2025
@ereslibre ereslibre added this to the v1.5.1 milestone Nov 13, 2025
Copy link
Contributor

@Angelmmiguel Angelmmiguel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just added a minor comment 😄

import { homedir } from 'os';
import { join } from 'path';
import { v4 as uuidv4 } from 'uuid';
import devConfig, { prodConfig } from './config.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would delete this entire file since it's no longer required.

Comment on lines +29 to +31
define: {
__BUILD_CONFIG__: JSON.stringify(selectedConfig),
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better 👍

@ereslibre ereslibre merged commit 61a0efc into main Nov 13, 2025
4 checks passed
@ereslibre ereslibre deleted the rover/task-26-FUMK4wnrDeGU branch November 13, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix telemetry data

3 participants