Skip to content

Rest_Deploy ignores errors #3938

@yippie

Description

@yippie

Describe the bug

If an error happens deploying metadata using the deploy task and rest_deploy option, the task prints the error but then reports success and the flow (and metadeploy plan) happily continue.

This is because the Rest_Deploy.py class that handles it never throws errors for any reason, it catches and prints the error, but then returns success.

Reproduction steps

  1. Have a deploy task with rest_deploy: True
  2. Deploy source that will fail to deploy for any reason
  3. EXPECTED: task to fail and return with an error code
  4. ACTUAL: task reports success despite printing the error and flow or script will continue thinking it succeeded.

Your CumulusCI and Python versions

CumulusCI version: 4.6.0 (/usr/local/bin/cci)
Python version: 3.13.5 (/opt/pipx/venvs/cumulusci/bin/python)

Operating System

macOS 26.2

Windows environment

No response

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions