• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kintyre / ksconf
87%
master: 90%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: master
Repo Added 22 Apr 2018 01:02AM UTC
Files 76
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH v0.8-beta3
branch: v0.8-beta3
CHANGE BRANCH
x
Reset
  • v0.8-beta3
  • 0.6.2rc1
  • 134e16c57
  • appveyor
  • britt_docs
  • britt_docs-lca01
  • bug-precommit
  • bug77
  • build-stuff
  • combine-refactor
  • devel
  • devel-stateful-deploy
  • doc-typos
  • docker
  • entrypoint-to-importlib-metadata
  • feat-build-support
  • feat-cli-entrypoints
  • feat-cmd-snapshot
  • feat-combine-dotd
  • feat-docs2.0
  • feat-filter
  • feat-minimize-allow-missing
  • feat-namespace-packaging
  • feat-package-manifest
  • feat-promote-stanza-filter
  • feat-rest-publish-CORE
  • feat-rest-publish-final
  • feat-rest-publish-splunksdk
  • feat-restexport
  • feat-shift-to-plugins
  • feat-splunk-app
  • feat-splunkbase-api-poc
  • feat-xmlformat
  • fix-18-diff-backwards
  • fix-git-missing
  • fix-win-glob-support
  • import-six
  • install-docs
  • jenn-docs
  • master
  • python3
  • python3-forever
  • python3-forever-r1
  • python3-forever-r2
  • python3-forever-r3
  • python3-merge
  • read-the-docs
  • refactor-modules
  • release-0.12
  • release-0.3
  • release-0.4
  • release-0.5
  • release-0.9
  • travis-build-fixes
  • untagged-c434f41ae59c73bb38de
  • untagged-e60fbc52fb2e4d71aee7
  • v0.10.0-alpha5
  • v0.10.0-beta6
  • v0.10.0-beta9
  • v0.11.1
  • v0.11.3-beta3
  • v0.11.3-rc2
  • v0.13.8
  • v0.3.2
  • v0.4.0
  • v0.4.1
  • v0.4.1-beta1
  • v0.4.1-beta2
  • v0.4.10
  • v0.4.2
  • v0.4.3
  • v0.4.4
  • v0.4.5
  • v0.4.6
  • v0.4.7
  • v0.4.8
  • v0.4.9
  • v0.5.0
  • v0.5.0-dev1
  • v0.5.0rc1
  • v0.5.0rc11
  • v0.5.0rc12
  • v0.5.0rc13
  • v0.5.0rc14
  • v0.5.0rc15
  • v0.5.0rc16
  • v0.5.0rc17
  • v0.5.0rc3
  • v0.5.0rc4
  • v0.5.0rc6
  • v0.5.0rc7
  • v0.5.0rc8
  • v0.5.0rc9
  • v0.5.1
  • v0.5.1rc2
  • v0.5.2
  • v0.5.3
  • v0.5.4
  • v0.5.4rc1
  • v0.5.4rc2
  • v0.5.4rc3
  • v0.5.4rc4
  • v0.5.5
  • v0.5.5rc1
  • v0.5.5rc2
  • v0.5.6
  • v0.6.0
  • v0.6.0rc1
  • v0.6.0rc2
  • v0.6.0rc3
  • v0.6.0rc4
  • v0.6.0rc5
  • v0.6.1
  • v0.6.2
  • v0.6.2rc1
  • v0.6.2rc2
  • v0.6.3rc2
  • v0.6.3rc3
  • v0.7.0
  • v0.7.0rc1
  • v0.7.0rc2
  • v0.7.0rc3
  • v0.7.0rc4
  • v0.7.1
  • v0.7.10
  • v0.7.1rc1
  • v0.7.1rc2
  • v0.7.2
  • v0.7.3
  • v0.7.3rc1
  • v0.7.3rc2
  • v0.7.3rc3
  • v0.7.4
  • v0.7.4rc1
  • v0.7.5
  • v0.7.5rc1
  • v0.7.6
  • v0.7.6rc1
  • v0.7.6rc2
  • v0.7.7
  • v0.7.7rc1
  • v0.7.7rc2
  • v0.7.7rc3
  • v0.7.7rc4
  • v0.7.7rc5
  • v0.7.7rc6
  • v0.7.8
  • v0.7.8rc1
  • v0.7.9
  • v0.7.9rc1
  • v0.8-beta1
  • v0.8-beta2
  • v0.8-beta4
  • v0.8-beta5
  • v0.8-beta6
  • v0.8.0
  • v0.8.0rc2
  • v0.8.1
  • v0.8.1rc1
  • v0.8.1rc2
  • v0.8.2
  • v0.8.3
  • v0.8.4
  • v0.8.4rc1
  • v0.8.5
  • v0.8.5rc1
  • v0.8.6
  • v0.8.7
  • v0.8.8rc2
  • v0.8.8rc3
  • v0.8.8rc4
  • v0.9.0
  • vagrant_py349
  • windows-doc-fixes
  • xmlfeat-win-bug

pending completion
526

push

travis-ci

lowell80
Make Splunk Packaging Great Again!

Created a context manager for conf file editing. Now you can write something
like this, and reading/update is handled automatically:

    with update_conf(path) as conf:
        conf["stanza"]["disabled"] = "true"

Many enhancements to the 'ksconf package' command:

- Implement blacklisting.  Added support for blacklist files (like .gitignore)
- Setting of app version and build.
- Overwrite app folder name, helpful when the source is '.'
- Implement 2 (out of 3) local handling options.  (Merge, the default is still
  not implemented, and no existing merge/combine logic will work here, because
  the destination is also a source.)
- Advanced build options:  (1) Creation of a "release" file which is written
  with the path to the created tarball, and (2) hook script/command integration
  for things like running "pip install" to download required 3rd party library
  during the build.
- Added some "magic" variable outputs for the app name.  So you can include
  the latest git HEAD ref, or extract the app.conf version, or name of the
  latest git tag, ... (Fully undocumented at the moment, but eventually it will
  be self describing).

It's becoming more obvious that I need a "SplunkApp" abstraction of some kind
to handle simple Splunk-like access to conf files collected within an app,
where reading things from default/local can be merged automatically upon read.
This could also include stanza updates, local->default merging, and some other
features I've added to package.py but should really be refactored elsewhere,
but I wanted to start by saving off a working version :=)  Ideally this
abstraction could be applied to tarball files too (allow for some reuse between
here and 'unarchive', for example.)

TL;DR:  'ksconf package' is less embarrassing now

208 of 208 new or added lines in 3 files covered. (100.0%)

4262 of 4906 relevant lines covered (86.87%)

7.74 hits per line

Relevant lines Covered
Build:
Build:
4906 RELEVANT LINES 4262 COVERED LINES
7.74 HITS PER LINE
Source Files on v0.8-beta3
  • Tree
  • List 56
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
526 v0.8-beta3 Make Splunk Packaging Great Again! Created a context manager for conf file editing. Now you can write something like this, and reading/update is handled automatically: with update_conf(path) as conf: conf["stanza"]["disabled"] = "tru... push 13 Jun 2020 03:03AM UTC lowell80 travis-ci pending completion  
See All Builds (1341)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc