Splunk Platform Automator is an Ansible/Terraform framework. A release is a semver git tag plus a GitHub Release whose notes come from CHANGELOG.md. The Release also attaches the operator framework tarball and install.sh. There is no PyPI package or container image.
| Location | Purpose |
|---|---|
VERSION |
Canonical semver (X.Y.Z) |
CHANGELOG.md |
Keep a Changelog notes ([Unreleased] is promoted on bump) |
docs/commands.md |
Regenerated on bump (spa --no-agent agent schema --markdown) |
docs/config.md |
Regenerated on bump (spa --no-agent config schema --markdown) |
Git tag vX.Y.Z |
What users check out |
| GitHub Release | Release page + install.sh + spa-framework-X.Y.Z.tar.gz (plus GitHub’s automatic source zip/tar). Operators curl https://github.com/splunk/splunk-platform-automator/releases/latest/download/install.sh. |
cat VERSION- MAJOR — breaking config or playbook changes
- MINOR — new features (typical for a filled
[Unreleased]bucket) - PATCH — bug fixes and small improvements
-
Land changes on
master. -
Fill
## [Unreleased]inCHANGELOG.mdwith what this version ships.docs/commands.mdanddocs/config.mdare regenerated in the bump commit (do not hand-edit them). -
Optionally run local tests (also what CI runs on the tag):
./scripts/release.sh --check
-
Cut the release (must be on
master; this does not re-run the test suite):./scripts/release.sh minor # local commit + tag only ./scripts/release.sh minor --push # push master + tag; wait for CI ./scripts/release.sh minor --push --yes
Also:
patch,major. Flags can appear in any order. -
If you skipped
--push:./scripts/release.sh minor --push # or: git push origin master && git push origin vX.Y.Z
--push only pushes master and vX.Y.Z. The GitHub Release is created by .github/workflows/release.yml after local tests pass on that tag. Notes come from CHANGELOG.md plus a Full changelog link to that tag (same footer as v2.4.0). If the tag workflow fails, you get a tag but no Release page. Do not run gh release create until that workflow is green (or you are intentionally publishing a known-good tag).
Pull-request CI is the merge gate. The same workflow on push to master is background insurance (default-branch badge, admin-override, runner drift), not a promotion wait. A new push to a pull request cancels the previous PR run (concurrency.cancel-in-progress).
On every pull request, and on every push to a branch listed under on.push.branches in .github/workflows/ci.yml, that workflow runs:
Syntax:bash -nonbin/*.sh,tests/run_*.sh,scripts/*.sh, andpython -m compileallSemgrep:semgrep scan --config p/python --config p/security-audit --severity ERROR --error --metrics=off(pinnedsemgrep/semgrepimage, parallel withSyntax, SARIF uploaded). Same command locally.CLI help:SPA_CLI_MARKEXPR='local and cli and not cli_runtime' ./tests/run_cli_tests.sh -n auto --durations=25CLI runtime:SPA_CLI_MARKEXPR='local and cli and cli_runtime' ./tests/run_cli_tests.sh -n auto --durations=25Unit tests:./tests/run_unit_tests.sh -n auto --durations=25(pytest -m "local and not cli and not ansible")Ansible app-scope:SPA_ANSIBLE_MARKEXPR='local and ansible and app_scope and not app_scope_b' ./tests/run_ansible_tests.sh -n auto --durations=25Ansible app-scope B:SPA_ANSIBLE_MARKEXPR='local and ansible and app_scope_b' ./tests/run_ansible_tests.sh -n auto --durations=25Ansible env-scaffold:SPA_ANSIBLE_MARKEXPR='local and ansible and env_scaffold' ./tests/run_ansible_tests.sh -n auto --durations=25Ansible remaining:SPA_ANSIBLE_MARKEXPR='local and ansible and not app_scope and not app_scope_b and not env_scaffold' ./tests/run_ansible_tests.sh -n auto --durations=25Ansible app-scope (3.15),Ansible app-scope B (3.15),Ansible env-scaffold (3.15),Ansible remaining (3.15): the same fourSPA_ANSIBLE_MARKEXPRvalues on Python 3.15, with a 3.13 fallback whenactions/setup-pythoncannot install 3.15
Local ./tests/run_cli_tests.sh still runs both CLI tracks (pytest -m "local and cli"). Local ./tests/run_ansible_tests.sh still runs the full ansible track (pytest -m "local and ansible").
CI does not provision AWS, download Splunkbase apps, or read config/splunk_config.yml.
master is protected by the repository ruleset master (Settings → Rules → Rulesets, target: default branch), not classic branch protection. It requires a pull request, blocks deletion and force-push, and requires the status checks Syntax, Semgrep, CLI help, CLI runtime, Unit tests, Ansible app-scope, Ansible app-scope B, Ansible env-scaffold, Ansible remaining, Ansible app-scope (3.15), Ansible app-scope B (3.15), Ansible env-scaffold (3.15), and Ansible remaining (3.15) (shown as CI / Syntax and so on). Rename a CI job and you must update the ruleset in the same merge to master, or every PR into master waits for a check that never reports.
Merged PR head branches are deleted automatically (delete_branch_on_merge on the GitHub repo). This is a repository setting, not an in-tree file: Settings → General → Pull Requests → Automatically delete head branches.
Run these when the delta warrants it (app routing, ITSI, Terraform), not for every patch. See tests/README.md.
ansible-playbook ansible/splunk_apps_deploy.yml -v
ansible-playbook ansible/verification/verify_app_deployment.yml -e fail_on_mismatch=true
# Full AWS pipeline (installers in ../Software/):
./tests/run_deployment_tests.sh- No moving
latesttag - No PyPI package or container image
- No AWS or Splunkbase in GitHub Actions
release.sh --checkis optional local validation;patch|minor|majorand--pushdo not re-run tests (the tag workflow does)
| Task | Command |
|---|---|
| Show version | cat VERSION |
| Local tests | ./tests/run_local_tests.sh |
| Pre-release check | ./scripts/release.sh --check |
| Cut release | ./scripts/release.sh patch|minor|major |
| Cut + push tag | ./scripts/release.sh minor --push --yes (Release after tag CI) |