-
-
Notifications
You must be signed in to change notification settings - Fork 777
Refactor FileWatchSensor to remove logshipper #5096
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
Draft
blag
wants to merge
44
commits into
master
Choose a base branch
from
remove-logshipper
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
6a8dc6d
Refactor FileWatchSensor to use watchdog instead of our logshipper fork
blag 0a2f6ae
Remove logshipper and pyinotify from requirements files
blag 2f71b2f
Import eventlet since we use it
blag 3f0abb2
Use self.logger instead of self._logger
blag d175507
Use self.trigger instead of self._trigger
blag ce6e8ef
Merge branch 'master' into remove-logshipper
blag 6657a25
Merge branch 'master' into remove-logshipper
blag 8add2cc
Refactor for testability and test coverage
blag 169cc5a
Add tests for FileWatchSensor components
blag fa68bef
Linting
blag 1493656
Merge branch 'master' into remove-logshipper
blag e932ffe
Add class docstrings
blag 5a22c27
Add logging
blag 490595d
No need for eventlet.sleep() when time.sleep() should do just fine
blag 05603f6
Refactor TailManageer.run() to use time.sleep()
blag 8a05c36
Refactor calculating parent_dir
blag 847d830
Refactor SingleFileTail.close() to keep parent watch open
blag 914b3f5
Refactor follow logic
blag 5caa459
Refactor TailManager.start() to make it idempotent
blag e6d3911
Refactor FileWatchSensor.run() to use TailManager.run()
blag 456daba
Break out tests into multiple modules
blag a19eac6
Merge branch 'master' into remove-logshipper
blag 4279986
Add .vagrant/ to .gitignore
blag d915752
Merge branch 'master' into remove-logshipper
blag 5601743
Ignore a few more virtualenv directories
blag 0c10559
Make pylint happy
blag f8a3056
Run all tests when run directly
blag 5f3cf9a
Make black happy
blag 1e5e389
Make flake8 happy
blag 5e0b7e6
Make pylint happy
blag d90be9c
Make black happy
blag 87d32aa
Don't use threading.Thread() after all
blag e64e547
Do whatever it takes to make all of the linters happy
blag ec856da
Merge branch 'master' into remove-logshipper
cognifloyd dca3e4f
Merge branch 'master' into remove-logshipper
cognifloyd 3055413
add changelog entry
cognifloyd 9631524
Merge branch 'master' into remove-logshipper
cognifloyd 83fa1ec
Fix borked merge
cognifloyd bab2952
pin transitive dep in test-requirements.txt
cognifloyd f8d1f50
Merge branch 'master' into remove-logshipper
cognifloyd 5b38106
regen st2 lockfile to switch logshipper -> watchdog
cognifloyd ed32348
linux pack: Drop out-of-date README notes about pack config
cognifloyd 465a8f4
update the linux pack README to explain how to use FileWatchSensor
cognifloyd 36bacae
linux pack: add LinuxFileWatchSensor.update_trigger
cognifloyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| # used by file watcher sensor | ||
| pyinotify>=0.9.5,<=0.10 | ||
| -e git+https://github.com/StackStorm/logshipper.git@stackstorm_patched#egg=logshipper | ||
| watchdog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,6 @@ cryptography==3.2 | |
| dnspython<2.0.0,>=1.16.0 | ||
| eventlet==0.25.1 | ||
| flex==6.14.0 | ||
| git+https://github.com/StackStorm/logshipper.git@stackstorm_patched#egg=logshipper | ||
| git+https://github.com/StackStorm/[email protected]#egg=orquesta | ||
| git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master#egg=st2-auth-backend-flat-file | ||
| git+https://github.com/StackStorm/st2-auth-ldap.git@master#egg=st2-auth-ldap | ||
|
|
@@ -43,7 +42,6 @@ passlib==1.7.1 | |
| prettytable | ||
| prompt-toolkit==1.0.15 | ||
| psutil==5.6.6 | ||
| pyinotify==0.9.6 ; platform_system == "Linux" | ||
| pymongo==3.10.0 | ||
| pyrabbit | ||
| python-dateutil==2.8.0 | ||
|
|
@@ -66,6 +64,7 @@ stevedore==1.30.1 | |
| tooz==1.66.1 | ||
| ujson==1.35 | ||
| unittest2 | ||
| watchdog | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably pin it infixed-requirements.txt, right? |
||
| webob==1.8.5 | ||
| webtest | ||
| zake==0.2.2 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.