-
Notifications
You must be signed in to change notification settings - Fork 29
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 show logs to context menu of experiments running in the queue #3347
Conversation
extension/src/cli/dvc/viewer.ts
Outdated
return this.config.getCliPath() | ||
} | ||
|
||
private createProcess({ cwd, args }: { cwd: string; args: Args }): Process { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
extension/src/cli/dvc/viewer.ts
Outdated
private currentProcess: Process | undefined | ||
private readonly config: Config | ||
|
||
constructor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
extension/src/cli/dvc/viewer.ts
Outdated
return this.run(cwd, Command.QUEUE, QueueSubCommand.LOGS, expName, '-f') | ||
} | ||
|
||
public stop() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
extension/src/cli/dvc/viewer.ts
Outdated
this.sendTelemetryEvent({ command, duration, exitCode, killed, stderr }) | ||
} | ||
|
||
private sendTelemetryEvent({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
extension/src/cli/dvc/viewer.ts
Outdated
) | ||
} | ||
|
||
private notifyCompleted({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
@mattseddon Will it work for failed/successful experiments that were run by the queue also? |
|
||
private isActive = false | ||
|
||
constructor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
} | ||
|
||
protected createInstance() { | ||
return new Promise<void>(resolve => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
) | ||
} | ||
|
||
private notifyActiveStatus() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
}) | ||
} | ||
|
||
private deleteReferenceOnClose() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical blocks of code found in 2 locations. Consider refactoring.
import { StopWatch } from '../../util/time' | ||
|
||
export class SingleUsePseudoTerminal extends BasePseudoTerminal { | ||
constructor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function constructor
has 42 lines of code (exceeds 30 allowed). Consider refactoring.
Code Climate has analyzed commit 63b13de and detected 13 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 66.1% (85% is the threshold). This pull request will bring the total coverage in the repository to 95.4% (-0.5% change). View more on Code Climate. |
It can. Not sure if all of the required data is actually in
Yep, was getting there. |
Need to refactor before I can get this in. |
Part of #3178
WIP.
Lots of duplication in the PR that
canwill be removed. Need to think more about how to set this out so that it can be used under certain circumstances for things likedvc pull
. Thinking maybeDemo
Screen.Recording.2023-02-24.at.3.48.00.pm.mov