-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine bug fix, improve exception & file handling
- combine: Force sort order for combine source files (don't rely on directory sort order from a os.walk() command, which is OS or filesytem dependent) This issue abruptly showed up via TravisCI (on a minor doc change commit). Travis runs on Ubuntu (ext4). Not an issue on files systems that internally sort read_dir() output, however this should NOT be relied upon. Adding an explicit sort is the right thing to do for all OSes. - combine: Add a proper try/finally block around the conf merge handler. Previously still seeing an "unclosed file" resource warning periodically during unit tests. - Added missing exit code checks to one of the 'combine' unit tests failing for Travis. (Unable to reproduce locally; on a Mac) - combine: Use the word 'directory' vs 'folder' uniformly in user output. - Bump pre-commit-hooks to latest 1.x release (skipping 2.0 for now) - Add issue templates for GitHub (first pass)
- Loading branch information
Showing
5 changed files
with
100 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
name: Bug report | ||
about: Report an issue or problem | ||
|
||
--- | ||
|
||
# The problem | ||
|
||
Briefly describe the issue you are experiencing. Tell us what you were trying to do and what happened instead. If you have a question, discard this template and please use the "question" label. | ||
|
||
## Environment | ||
|
||
* Ksconf version: (Grab the first 2 text lines of output after running `ksconf --version`) | ||
* OS & version used: | ||
* Python version: | ||
* Installed via: (pip, git, standalone zip, Splunk's embedded python) | ||
|
||
## Details | ||
|
||
Describe the problem you have been experiencing in more detail. Please include the command line arguments and output text. Stacktraces are especially useful. Any steps you've take to troubleshoot or hints about what's wrong in the code can be very informative. | ||
|
||
|
||
Wrap CLI output in triple backticks, like so: | ||
|
||
``` | ||
$ ksconf --version | ||
_ ___ | ||
| | / __) | ||
| | _ ___ ____ ___ ____ _| |__ | ||
| |_/ )/___)/ ___) _ \| _ (_ __) | ||
| _ (|___ ( (__| |_| | | | || | | ||
|_| \_|___/ \____)___/|_| |_||_| | ||
ksconf 0.5.1.dev0+dirty (Build None) | ||
Git SHA1 17f6d94b committed on 2018-06-28 | ||
Written by Lowell Alleman <lowell@kintyre.co>. | ||
Copyright (c) 2018 Kintyre Solutions, Inc. | ||
Licensed under Apache Public License v2 | ||
``` | ||
|
||
|
||
## Steps To Reproduce Issue [ Good To Have ] | ||
|
||
Please remember that sample configs often make problems easier to reproduce making it faster to fix the bug. | ||
|
||
1. Step 1 | ||
2. Step 2 | ||
3. Step 3 | ||
|
This file contains 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest features or changes to ksconf | ||
|
||
--- | ||
|
||
## Is your feature request related to a problem? Please describe. | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
## Describe the solution you'd like | ||
|
||
A clear and concise description of the analytics or functionality you'd like to see in in ksconf. | ||
|
||
## Describe alternatives you've considered | ||
|
||
A clear and concise description of any alternative solutions or features you've considered. Is there another way to solve or detect the same problem? | ||
|
||
## How serious are you about this change? [ For not-trivial changes ] | ||
|
||
Is this a nice-to-have or showstopper for your use case? Are you will and able to contibute code, time, or resources to make this change happen? | ||
|
||
## Additional information | ||
|
||
Add any other context, screenshots, diagrams, mock-ups, and so on should be placed here. |
This file contains 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 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 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