Testing Shuffle apps in a CI/CD pipeline

A release process for custom Shuffle apps covering test versions, API-driven workflow tests, result validation, image scanning and promotion to production.

On this page

How CI/CD testing for Shuffle apps keeps broken integrations out of production

A release pipeline for Shuffle apps tests each app version and the workflows that depend on it before anything is promoted to the environment where incidents run. A team usually reaches this point after building a custom app because the catalog lacks an integration, and then discovering that a small change to an action or its authentication silently breaks a playbook nobody has run since. The pipeline makes that failure visible during a release instead of during an alert. It typically checks four things: that the app version builds and loads, that test workflows run end to end through the Shuffle API, that the execution results match what the playbook expects, and that the container image passes a vulnerability scan before it is pulled into production.

You need this pipeline sooner than you might think. The trigger is rarely team size alone. It is any of these conditions: several people edit the same apps, a workflow depends on an app action that other workflows also call, or more than one Shuffle environment exists, such as a staging instance and a production instance that must behave the same way. Once two environments are in play, a manual test in one of them tells you little about the other, because app versions, stored credentials and runtime locations can differ between them. Before you design the pipeline, confirm which Shuffle version and deployment architecture each environment runs, since the Shuffle architecture documentation describes several options that change where tests can execute.

The point that most often gets missed is the execution result check. A workflow that finishes with a green status has not necessarily done its job, because an action can return an HTTP success with an empty or changed payload that later steps read as valid data. Write assertions against the output fields your playbook depends on, and keep test inputs in version control alongside the app. Decide early who owns a failed run, how long a promotion can be held, and whether a rollback means redeploying the previous image tag, since a pipeline that cannot roll back quickly tends to be bypassed under pressure. Confirm these choices with your own change process before writing the first test.

How a Shuffle app moves from commit to production

The release starts with a commit to the app's source repository, which triggers an image build tagged with a version. The image is deployed to a test Shuffle instance that is kept separate from production, where workflow tests run through the Shuffle API and their execution results are checked against expected outcomes. A vulnerability scan of the image is a second gate. Only when both gates pass does the same tagged image get promoted to production, so the reviewed artifact is the one that runs live.

Release gates between a commit and a production deployment of a custom Shuffle app.

Which test environment and gate fits each stage

This table compares three test environments for custom Shuffle apps and workflows: a throwaway instance per run, a long-lived staging instance, and a production canary workspace. Read each row against the stage it protects, the evidence it produces and the cost of keeping it running. The main takeaway is that no single environment covers every gate, so most teams combine them.

EnvironmentWhat it provesRun cost and key handlingWhen to choose it
Throwaway instance per pipeline runClean install loads the app version, actions validate against the API and workflows run from a known stateStarts fresh each run, so it carries no long-term state. Encryption keys and sample credentials should be generated per run and discarded, never copied from productionChoose it for every merge request to catch broken app definitions early, when the run can finish inside your pipeline time budget
Long-lived staging instanceUpgrades, hot-loaded app changes and multi-workflow behavior hold up over time, with data that resembles real useRuns continuously, so it recurs in infrastructure, storage and maintenance. Keep its SHUFFLE_ENCRYPTION_MODIFIER separate from production and store sample credentials in a secrets managerChoose it for release candidates and for testing upgrades to a new Shuffle version before production
Production canary workspaceReal credentials and real trigger traffic behave as expected on a small, controlled set of workflowsHighest risk and cost to protect, since it shares production infrastructure. Test executions on a paid instance count toward app runs; confirm with Shuffle how your tier counts themChoose it only after staging passes, for a narrow change that cannot be proven with sample data alone
Promotion gate between environmentsEach stage passes its tests, scans and approvals before the next stage receives the same app imageMostly pipeline time and reviewer effort, which recur with every release. Keep gate criteria in version control so they are auditableUse it on every promotion so production runs the exact tested image, not a rebuilt one
Image vulnerability scan gateKnown vulnerabilities in the app container are found before deployment, under your scanner's rulesScanner licensing and maintenance recur. Cost rises with the number of custom apps and images, so confirm scanner coverage with your vendorApply before any environment accepts a new app image, and block release on findings above your policy threshold
Validation checks on execution resultsWorkflow output matches expected fields, values and error handling, not only that the run finishedMostly one-time authoring of assertions, then ongoing upkeep as APIs change. Keep fixtures small so checks stay fastApply to every environment that runs workflows, since a completed execution can still contain wrong data

How to set up the Shuffle app release pipeline in order

This sequence takes a custom Shuffle app from a pinned test platform to a versioned, scanned and promoted release, with a check at each stage so that no build reaches production untested.

  1. Pin the Shuffle version for testing

    The platform engineer chooses the Shuffle version the pipeline will test against and records it in the pipeline configuration. Use the latest Docker tag for stable releases, as the Shuffle docs recommend, and reserve the nightly tag for experiments that are never promoted. Confirm the exact tag against the GitHub releases page before pinning, since the latest release changes over time. Done means the test environment and the production environment reference the same pinned tag, and the pipeline file shows that tag in one place that reviewers can see.

  2. Tag each app build with a version

    The developer assigns a version to each custom app build, such as a semantic version string, and sets it in the app definition and the container image tag. Each change to the app's actions, authentication or dependencies produces a new version rather than overwriting an existing one. Check that the version in the app metadata, the image tag and the source control tag match before the build proceeds. Done means every build can be traced to one commit and one image tag, and no two builds share a version.

  3. Deploy an isolated test instance

    The platform team deploys a separate Shuffle instance for testing, with its own SHUFFLE_ENCRYPTION_MODIFIER value and its own test credentials. Never reuse the production encryption modifier, because the docs warn that changing or losing it breaks saved app authentications. Store the modifier and test credentials in your secrets manager, not in the pipeline definition. Done means the test instance starts, the pinned version reports as running, and no production credential or data is reachable from it.

  4. Load the app version and run test workflows

    The pipeline loads the tagged app into the test instance and triggers test workflows through the Shuffle API. Each test workflow exercises the actions the app exposes, including at least one success path and one failure path, such as an invalid input or an error response from a stub or sandbox endpoint. Use test data that contains no real customer records. Done means every test workflow starts, completes or fails as designed, and the execution IDs are logged for the next step.

  5. Validate execution results

    The pipeline fetches each execution result through the API and checks it against expected outcomes: the workflow status, the output fields, the absence of unexpected errors and the expected number of action runs. Failing checks stop the pipeline and attach the execution ID to the report. Confirm that validation reads the result data rather than only the HTTP response code, because a workflow can return a successful call with a wrong payload. Done means every test workflow has a recorded pass or fail result that a reviewer can open.

  6. Scan the app container image

    The security engineer runs a vulnerability scan against the built container image for the app, and the pipeline blocks promotion if findings exceed the threshold your team has set in writing. Review the base image, the Python or other dependencies and any packages added for the app. Record the scan report against the version tag. Done means the scan report exists for that exact image digest, every blocking finding has a documented fix or accepted exception with an owner, and the scan result is attached to the build record.

  7. Promote the tested version to production

    The release owner promotes the exact image and app version that passed tests and scanning, by version tag, to the production Shuffle instance. Do not rebuild the image for production, since a rebuild can change its contents. Load the same version into production, run a smoke workflow using production-safe inputs and confirm the app appears with the expected version. Done means production runs the same image digest that passed every earlier check, and the promotion record lists the pinned Shuffle version, app version, test execution IDs and scan report.

Validation checks to automate on execution results

A passing test run only proves that a workflow finished without an exception. The checks below read the execution output and assert on what the workflow actually did, so a regression in a custom app is caught before promotion. Each check covers a different failure mode, and none of them replaces review of the app's logic.

Final workflow status

Assert that the execution finished with the status the test case expects, such as a finished result for a happy path or a stopped result for a deliberate failure. This catches the most basic regression: a workflow that silently aborts after an app update. It cannot show that the status was reached for the right reason, so pair it with the field checks below. Confirm in your own environment how your Shuffle version reports status values before you hard-code them.

Shuffle apps docs

Expected fields per action

For each action in the test workflow, assert that the result contains the fields downstream steps depend on, with the types and values the test fixture defines. A renamed key in an API response often causes no error in the app but breaks every later node that reads it. This check cannot prove the values are correct against the real vendor system, so keep a contract test or recorded response for that.

Error path notifications

Trigger a known failure, such as a bad credential or a 404 from a test endpoint, and assert that the error branch ran and the expected notification was sent. Teams often test only the success path, so a failure that never reaches the on-call channel goes unnoticed. The check confirms the branch fired, not that the message content is useful to the analyst.

Outputs match a schema

Validate the workflow's final output against a JSON Schema kept in the repository, so required keys, value types and enumerations are checked on every run. This is the check that catches silent drift in shared data formats that other workflows rely on. A schema proves structure only. It does not prove that a valid-looking value is the right one.

No secret values in output

Search execution results and collected logs for the test credential values and for patterns that look like tokens or keys, and fail the run on any match. Shuffle encrypts saved app authentication at rest, but a value can still leak into a result field or log line when an app echoes a request. This scan only finds the patterns you define, so it is a safety net and not a substitute for keeping secrets out of app code.

Run time within a team limit

Record the duration of each test execution and fail when it exceeds a limit the team sets for that workflow. A sudden slowdown often points to a retry loop, a missing timeout or a container that is slow to start. The limit is a team decision based on the workflow's purpose and your environment, and a generous threshold will not reveal gradual degradation. Confirm your target with the owners of the runtime hosts.

How testing differs for App Creator apps and Python apps

Apps built in the App Creator from an OpenAPI specification have no hand-written code to unit test. Their risk sits in the translation from the spec into actions, parameters and authentication, so testing focuses on whether the generated app does exactly what the specification says against a non-production instance of the vendor API. The build approach itself is covered on the sibling page about building a Shuffle app with the App Creator from an OpenAPI spec.

  • Spec diff review: Compare each generated action against the OpenAPI operation it came from, checking method, path, required parameters and response schema. Store the specification file in version control so every change is visible in review.
  • Authentication check: Confirm that the auth type generated (API key, bearer or OAuth2) matches what the vendor requires, and that the credential is stored in Shuffle rather than in the spec or a workflow.
  • Sandbox execution: Run each action against a sandbox or test tenant of the vendor API, recording the response shape. Ask the vendor whether a sandbox exists and what it does with write operations.
  • Write action guardrails: Test create, update and delete actions only against disposable test records, and confirm the test account lacks production scope.
  • Version tagging: Record the app version used in each test run so a later failure can be traced to a specific generated app.

Before promotion, confirm that every action used by production workflows has at least one passing run in the sandbox and that the spec, not the generated app, is the reviewed source of truth.

Promotion and rollback: what moves and what stays

Promotion moves a tested app image version and its workflow definitions, and nothing else. Saved app authentications, API keys, environment variables and the SHUFFLE_ENCRYPTION_MODIFIER value belong to each environment and are never copied from staging to production. Shuffle stores app credentials and API keys in OpenSearch encrypted with AES-256 using that modifier, so a credential created in staging cannot be decrypted in production and must be entered again there, ideally by the team that owns the production secret. Confirm with your own environment how the workflow export is handled, and check that the exported JSON contains no literal secrets before it goes into version control. Runtime settings such as the Orborus node assignment, registry location and execution limits also differ by environment and should be templated, not promoted.

Treat the encryption modifier as permanent for the life of the instance. The Shuffle configuration docs warn that losing or changing SHUFFLE_ENCRYPTION_MODIFIER breaks every saved app authentication, so a rotation plan has to re-enter credentials for every app and every workflow that uses them. Store the value in your secrets manager, restrict who can read it, and include it in your backup and disaster recovery records. Do not change it as part of an app release. If a rollback is needed, it should never require a change to this value, because a rollback that touches the modifier turns a small fix into a credential outage.

Rollback means pointing workflows back to the previous app version and the previous workflow definition, in that order of thinking. Keep the prior app image tag available in your registry, and keep the previous workflow export in version control so it can be re-imported through the API. Record, for every production workflow, which app name and version each action calls. Without that record, a team cannot tell after a bad release which workflows are affected, and a rollback becomes guesswork. Test the rollback path in staging before you need it, and confirm that the previous app version still runs against your current backend version, since a release note or upgrade may have changed behavior.

Security controls for the test and release pipeline

A CI/CD pipeline for Shuffle apps handles credentials, container images and workflow data that reach production. The controls below address the points where a test run or a promotion can leak secrets, ship a vulnerable image or grant more runtime access than the app needs.

Separate test and production credentials

Test workflows should authenticate to sandbox systems with their own credentials, stored in a Shuffle instance or secrets store that production cannot read. Shuffle encrypts saved app authentications, so a test instance needs its own authentication entries rather than copies of production ones. Check that a test run cannot reach production APIs by network path or by a reused token, and confirm this with a deliberate failed call from the test environment.

Scan images before promotion

Each custom app runs as a versioned Docker container, so the image is the artifact that reaches production. Scan the built image for known vulnerabilities in its base layers and Python dependencies before it is tagged for promotion, and block promotion on findings your security team has defined. Ask the team which scanner they use, how it is updated, and who can accept a documented exception.

Shuffle apps docs

Restrict who approves promotion

Promotion to production changes what runs against live security tooling, so the approval step needs its own access list separate from the people who write the code. Require a second reviewer for each promotion and record the approver's identity in the release log. Review the list whenever team members change roles, because a stale approver is a common path to unreviewed changes.

Keep the encryption modifier out of logs

The SHUFFLE_ENCRYPTION_MODIFIER secret protects every saved app credential in OpenSearch, and losing or changing it breaks those authentications. Pipeline logs, build artifacts and test reports must never print it, and it should be injected only into the deployment step that needs it. Confirm that log masking is on in the CI system and that test output excludes environment dumps.

Shuffle configuration docs

Limit Docker socket and runtime permissions

Shuffle's runtime starts app containers, and access to the Docker socket is effectively root on the host. Build and test runners should not mount the socket unless the build requires it, and app containers should run with the fewest capabilities and network routes they need. Ask whether the runner is ephemeral, which user runs the containers and what host paths are mounted.

Shuffle architecture docs

Retain test evidence

Keep the test version, the workflow execution IDs, the validation results, the scan report and the approver record for each release, linked to the image digest that was promoted. This evidence answers questions from change reviews and from auditors who ask how a release was tested. Confirm the retention period with your compliance team and store the evidence outside the Shuffle instance it describes.

What a Shuffle app CI/CD pipeline costs and what it needs from your team

What drives the cost of a Shuffle app CI/CD pipeline?

The main drivers are the number of custom apps, the number of workflows that call them, how many separate environments the pipeline needs, and how many scanning and approval gates sit between a commit and production. Each app adds its own test cases and image build. Each workflow adds test runs and result checks. Each environment adds infrastructure to provision and keep patched. Ask any quote to break the work down by these four items, so you can see which ones drive the price up or down in your case. Scope should also state which apps and workflows are covered and which are out of scope.

Which parts of a Shuffle app pipeline are one-time work?

The one-time work is the pipeline design, the first test suite for each app, and building the first test environment. Pipeline design covers the stages, promotion rules and approval points. The test suite covers the app test versions and the workflow test cases that run through the API. The first environment covers the test instance and its connection to your secrets and registry. Once these are built and accepted, most of the effort shifts to upkeep. Ask the quote to list each one-time deliverable separately so you can see what you own at handover.

What recurring work does a Shuffle app pipeline need after launch?

Recurring work includes updating test cases when apps or workflows change, rebuilding and scanning app images when base images or dependencies receive fixes, and testing each new Shuffle release before you move it to production. Shuffle publishes new versions regularly, and the configuration docs note that versions older than v2.1.1 are no longer supported after January 31, 2026, so staying current is part of the job. Ask whether a quote includes ongoing maintenance, and if so, what response times and upgrade testing it covers. A retainer is one way to structure this work.

What does my team need to provide for the work?

Expect to provide four things: a Shuffle test instance that is separate from production, test credentials for the systems your workflows call, a container image registry where the pipeline can push and scan app images, and named approvers who can sign off on promotions. Test credentials should be scoped to test data wherever possible. The approvers need to agree on the acceptance criteria before the first release. Confirm in writing who provides each item, when it is needed, and what happens if a dependency is late, because delays here move the schedule directly.

Can an internal team build and run this pipeline alone?

An internal team can build and run the pipeline alone if it already has the skills in container builds, CI tooling, Shuffle's API and the security scanning tools it chooses. The hard parts are usually not the tools themselves. They are writing meaningful validation checks on workflow results, keeping test data safe, and maintaining the pipeline after the original builder moves on. Before deciding, check whether two or more people can maintain the pipeline, whether someone owns Shuffle upgrades, and whether approvers have time for release reviews. A partner is most useful when the internal team needs the design and handover done quickly.

How long does it take to set up a Shuffle app CI/CD pipeline?

Duration depends on the same drivers as cost: the number of apps and workflows, how many environments you need, how quickly your team provides the test instance and credentials, and how many approval steps your release process requires. No duration is set for this work in advance. Ask any quote for a phased timeline with milestones, starting with pipeline design and the first app, and check which client dependencies each milestone assumes. A fixed-scope agreement should state the timeline in writing before work starts.

What should I confirm in a quote before approving the work?

Confirm the list of apps and workflows in scope, the environments the pipeline will cover, which scanning and approval steps are included, and who builds and maintains each stage. Also confirm the handover package, including pipeline configuration, test suites, runbooks and access records, and whether maintenance, image updates and Shuffle upgrade testing are priced separately. Ask how license use is handled in test environments, since Shuffle's pricing counts app runs that execute in a workflow. A written scope with these items makes the quote comparable with an internal estimate.

Limits to confirm before you rely on this pipeline

A CI/CD pipeline for Shuffle apps is only as reliable as the assumptions behind it. The items below are the points where a test run can pass in a lab and still mislead you about production, so confirm each one against your own Shuffle version, tier and network before you treat pipeline results as release evidence.

Hot loading behavior during test runs

Confirm how your chosen Shuffle version loads custom apps from the shuffle-apps folder and whether the hot load setting picks up a changed app without a restart. A pipeline that deploys a new app build and runs tests immediately can test the previous version if the reload step does not complete. Check that the test run reports the app version it actually executed, and record that version with the test results.

Shuffle apps docs

API calls matching the backend version

The pipeline triggers test workflows through the Shuffle backend API, so the request shape and endpoints used by your test scripts must match the backend version under test. Pin the backend image tag in the pipeline, run a single smoke call against it before the full suite, and fail fast when the API response differs from what the scripts expect. Do not assume a nightly tag behaves like the last stable release.

Shuffle configuration docs

App runs counted on your tier

Shuffle licensing is measured in app runs, meaning actions that actually execute in a workflow. Test workflows that call real actions consume that allowance, while triggers and skipped actions do not count. Ask your vendor or partner how the pipeline's test executions will be counted on your edition, and decide whether tests run against a dedicated non-production instance so they do not draw down production capacity.

Shuffle pricing article

Support status of the tested version

Shuffle stopped supporting versions older than v2.1.1 after January 31, 2026. Before you certify a release, confirm that both the pipeline's test environment and the production version are on a supported release line, and that the version you promote is one your vendor or partner will support. A green pipeline on an unsupported build gives you test evidence but no path to a fix.

Vulnerability scanner the policy accepts

Your security policy determines which image scanner the pipeline may use and how findings are gated. Confirm with your security team which scanner is approved, whether its vulnerability database can be updated inside your network, and what severity threshold blocks promotion. Verify that the scanner covers the custom app images you build and the base images Shuffle publishes, and record the scan result alongside each release.

Air-gapped and proxied networks

Pipelines on restricted networks often cannot pull base images, scanner databases or packages from public registries. Confirm how your runners reach the container registry, package indexes and scanner feeds, whether they must go through an HTTP proxy, and how Shuffle's own images are mirrored into your registry. Plan the pipeline so a blocked dependency fails the build with a clear message rather than producing a false pass.

How DeployOpen scopes and delivers Shuffle app release pipelines

DeployOpen plans and builds release pipelines for custom Shuffle apps inside infrastructure you control, from test versions and workflow tests to image scanning and promotion. Every engagement starts with a written scope that names the apps, environments, checks and handover items before any pipeline work begins.

How we scope

  • Inventory the custom Shuffle apps, their actions and the workflows that depend on them before any pipeline is designed.
  • Agree in writing which test versions, test workflows, result checks and image scans the pipeline will run.
  • Confirm the self-hosted environments, registries and credential stores the pipeline may touch, including the encryption secret handling.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts. Ongoing support is available as a retainer.

How we build

  • Build the pipeline stages for test, staging and production so each app version is tested before it reaches a live Shuffle instance.
  • Write workflow tests that call the Shuffle API, submit known inputs and check the execution results against expected outputs.
  • Add validation checks on execution results, so a run that finishes without errors but returns wrong data still fails the pipeline.
  • Wire vulnerability scanning of app container images into the build, with findings recorded and blocking thresholds agreed with your team.

How we hand over

  • Document each pipeline stage, its inputs, its pass and fail criteria, and the steps to promote a version to production.
  • Walk your engineers through rollback, including how to restore the previous app version and rerun the affected workflow tests.
  • Provide runbooks for rotating the Shuffle encryption secret and registry credentials without breaking saved app authentications.
  • Deliver the pipeline configuration in your own version control so your team owns, reviews and changes it after handover.

How we support

  • Review pipeline results and failed promotions with your team during the agreed support period.
  • Update test workflows and checks when custom apps change, or when Shuffle releases alter the API or app behavior.
  • Retest the pipeline after upgrades to the Shuffle version, the app SDK or the base images used for app containers.
  • Offer ongoing support, upgrades and continuous testing as a retainer, with the scope of each retainer agreed in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.