Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add viewable cli process class #3358

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Add viewable cli process class #3358

merged 2 commits into from
Feb 27, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Feb 27, 2023

2/5 main <- #3356 <- this <- #3359 <- #3361 <- #3362

This PR adds a ViewableCliProcess class which groups together a process with a pseudoterminal instance. This will be used for things like showing logs for experiments running the queue and long-running processes like pull under certain circumstances.

@@ -62,7 +62,12 @@ const sanitizeProperties = (
if (value === undefined || value === null) {
continue
}
sanitizeProperty(eventName as string, sanitizedProperties, key, value)
Copy link
Member Author

Choose a reason for hiding this comment

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

[F] Not really sure why removing EventName.EXPERIMENTS_RUNNER_COMPLETED caused eslint to freak out here.

@mattseddon mattseddon changed the base branch from main to group-process February 27, 2023 02:32

if (!killed && exitCode && stderr) {
return sendErrorTelemetryEvent(
EventName.EXPERIMENTS_RUNNER_COMPLETED,
Copy link
Member Author

Choose a reason for hiding this comment

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

[F] This event has been removed. We don't do this for any other processes that we start.

@mattseddon mattseddon mentioned this pull request Feb 27, 2023
@mattseddon mattseddon marked this pull request as ready for review February 27, 2023 05:15
Base automatically changed from group-process to main February 27, 2023 21:55
@mattseddon mattseddon enabled auto-merge (squash) February 27, 2023 21:56
@codeclimate
Copy link

codeclimate bot commented Feb 27, 2023

Code Climate has analyzed commit 86d6d7c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.0% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 9149c01 into main Feb 27, 2023
@mattseddon mattseddon deleted the add-viewable-process branch February 27, 2023 22:17
@mattseddon
Copy link
Member Author

Related to #3178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants