Skip to content

Fix api test app in CI#84

Merged
swethasukumarr merged 2 commits into
developfrom
fixCI
Jun 29, 2026
Merged

Fix api test app in CI#84
swethasukumarr merged 2 commits into
developfrom
fixCI

Conversation

@swethasukumarr

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 29, 2026 14:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the api-test-app used in CI so it can run deterministically in non-interactive environments and report failures via a non-zero exit code.

Changes:

  • Added per-demo failure tracking so API call errors can be aggregated.
  • Updated --auto execution to iterate all interfaces/methods, then exit 1 if any method returned an error.
  • Reordered runtime-mode selection so --auto takes precedence even when stdin is non-TTY (common in CI).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/api_test_app/utils.h Track method failures in DemoBase::succeed() and expose failureCount() for aggregation.
test/api_test_app/main.cpp Make --auto mode run in CI (even with non-TTY stdin) and fail the process when errors occurred.

Comment thread test/api_test_app/main.cpp
Comment thread test/api_test_app/main.cpp
@swethasukumarr swethasukumarr merged commit 8a2874a into develop Jun 29, 2026
16 checks passed
@swethasukumarr swethasukumarr deleted the fixCI branch June 29, 2026 19:32
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants