Skip to content

Build package before AppInspect so it inspects a tarball - #1

Merged
pbujna-apius merged 1 commit into
mainfrom
fix-appinspect-package
Jul 20, 2026
Merged

Build package before AppInspect so it inspects a tarball#1
pbujna-apius merged 1 commit into
mainfrom
fix-appinspect-package

Conversation

@pbujna-apius

Copy link
Copy Markdown
Contributor

Problem

The AppInspect step passed app_path: ${{ inputs.app_id }} (the app source directory). The splunk/appinspect-cli-action@v2.13.0 entrypoint globs app_path/* and takes the first entry, expecting a .tar.gz. Given the source dir it grabbed the first subdirectory (e.g. appserver) and aborted with "Unable to locate package ... aborting".

Fix

Before AppInspect:

  1. Checkout the packaging tooling into .splunk-app-ci (this repo is public, no token needed).
  2. Build a throwaway package into dist/ with PYTHONPATH=.splunk-app-ci python -m splunk_app_ci package --app-dir <app_id> --version 0.0.0 --dest dist. Version 0.0.0 is a non-release placeholder; the tarball exists only for inspection.
  3. Point the AppInspect step at app_path: dist so the action globs the single tarball. excluded_tags: manual, result_file, and the artifact upload are unchanged.

All other steps (ruff lint/format, tests) are unchanged. YAML validated with yaml.safe_load. Package build verified locally against the apius_lang_entropy app dir, producing a single apius_lang_entropy-0.0.0.tar.gz.

The appinspect-cli-action globs app_path/* and expects the first entry to
be a .tar.gz package. Passing the app source directory made it grab the
first subdirectory and abort with 'Unable to locate package'. Fetch the
packaging tooling, build a placeholder (0.0.0) package into dist/, and
point AppInspect at dist/ so it inspects the tarball.
@pbujna-apius
pbujna-apius merged commit a6ad8c7 into main Jul 20, 2026
1 check passed
@pbujna-apius
pbujna-apius deleted the fix-appinspect-package branch July 20, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant