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

[win32] Remove run_check #3448

Merged
merged 2 commits into from
Aug 18, 2017
Merged

[win32] Remove run_check #3448

merged 2 commits into from
Aug 18, 2017

Conversation

olivielpeau
Copy link
Member

What does this PR do?

Removes the run_check method.

Motivation

run_check dates back from pre-5.12 windows agents, when we weren't
shipping a full python interpreter and needed this specific method
to allow users to run custom checks from shell.exe.

This doesn't make sense anymore now that we ship a full python
interpreter that the agent processes use. That interpreter has the
necessary modules to run checks. The correct way to run checks
(shipped by default or custom) is now similar to Linux/macOS, i.e.:

# From the `<install_dir>\agent` directory
> ..\embedded\python.exe agent.py check <check_name>

shell.exe should only be used to troubleshoot the python environment
that the windows service and the windows GUI use.

`run_check` dates back from pre-5.12 windows agents, when we weren't
shipping a full python interpreter and needed this specific method
to allow users to run custom checks from `shell.exe`.

This doesn't make sense anymore now that we ship a full python
interpreter that the agent processes use. That interpreter has the
necessary modules to run checks. The correct way to run checks
(shipped by default or custom) is now similar to Linux/macOS, i.e.:

```
From the `<install_dir>\agent` directory
> ..\embedded\python.exe agent.py check <check_name>
```

`shell.exe` should only be used to troubleshoot the python environment
that the windows service and the windows GUI use.
@olivielpeau olivielpeau added this to the 5.16 milestone Jul 21, 2017
@nmuesch
Copy link
Contributor

nmuesch commented Jul 21, 2017

👍 LGTM

@truthbk truthbk modified the milestones: 5.17, 5.16 Jul 25, 2017
@olivielpeau olivielpeau merged commit ba9d8eb into master Aug 18, 2017
@olivielpeau olivielpeau deleted the olivielpeau/remove-run-check branch August 18, 2017 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants