Skip to content

Make AppInspect actually fail on error#782

Open
Ickerday wants to merge 2 commits into
developfrom
cicd/add-ci-flag-to-appinspect-stage
Open

Make AppInspect actually fail on error#782
Ickerday wants to merge 2 commits into
developfrom
cicd/add-ci-flag-to-appinspect-stage

Conversation

@Ickerday

Copy link
Copy Markdown
Collaborator

No description provided.

@Ickerday Ickerday force-pushed the cicd/add-ci-flag-to-appinspect-stage branch from 3a43eb7 to c4d002d Compare May 13, 2026 15:18
@Ickerday Ickerday force-pushed the cicd/add-ci-flag-to-appinspect-stage branch from c4d002d to e0ad3bb Compare May 20, 2026 16:02
@mateusz834 mateusz834 force-pushed the cicd/add-ci-flag-to-appinspect-stage branch from e0ad3bb to 56680ee Compare May 26, 2026 09:20
@Ickerday Ickerday mentioned this pull request Jun 18, 2026
@Ickerday Ickerday force-pushed the cicd/add-ci-flag-to-appinspect-stage branch from 56680ee to 3bce54e Compare June 18, 2026 13:31
@Ickerday Ickerday changed the title Adjust splunk-appinspect to run with --ci flag Make AppInspect actually fail on error Jun 18, 2026
uvx splunk-appinspect inspect \
./tests/system/test_apps/generating_app/mock_app.tgz \
--included-tags cloud --ci || exit_code=$?
[ "${exit_code:-0}" -ne 101 ] || exit 1

@szykol szykol Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious whether we should handle the generic exit code = 1 as well here. Unless appinspect never returns it - just so the job doesn't fail quietly

uvx splunk-appinspect inspect \
./tests/system/test_apps/generating_app/mock_app.tgz \
--included-tags cloud --ci || exit_code=$?
[ "${exit_code:-0}" -ne 101 ] || exit 1

@mateusz834 mateusz834 Jun 19, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a hard time understanding what this even does.
I would like to know what error coudes would cause the CI to fail and which not.

run: uvx splunk-appinspect inspect ./tests/system/test_apps/generating_app/mock_app.tgz --included-tags cloud
run: |
# AppInspect doesn't follow UNIX conventions so we swallow all non-zero
# exit codes unless its 101, the de facto error code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When 101 is returned?

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.

3 participants