Skip to content

test(runtime): workflow --json problem test pins pre-#2517 exit 0 #2634

Description

@ScriptedAlchemy

runtime_acceptance_suite::runtime_surface_acceptance::workflow_json_preserves_a_typed_application_problem_envelope fails on origin/master at 474d5c9:

panicked at crates/tracedecay/tests/runtime_acceptance_suite/runtime_surface_acceptance.rs:2207:5:
typed application problems are successful CLI transport responses: Error: workflow handoff-redeem refused the request (invalid_workflow_request): The Workflow request does not match its operation contract

Reproduce (the CI root-journeys selection):

cargo build -p tracedecay -p tracedecay-cli -p tracedecay-search-eval --test runtime_acceptance_suite --bins --example tracedecay-host-cli-fixture --features tracedecay/test-helpers,tracedecay/search-eval
cargo test -p tracedecay -p tracedecay-cli -p tracedecay-search-eval --test runtime_acceptance_suite --features tracedecay/test-helpers,tracedecay/search-eval -- runtime_surface_acceptance::workflow_json_preserves_a_typed_application_problem_envelope

Cause: this is a stale pin. #2517 (a0b5987) intentionally changed Work/Workflow --json refusals: they still print the envelope, then exit 1 through the typed refusal. From its body: "--json printed the problem and exited 0. Both modes now exit 1 through the same typed refusal". The built binary does exactly that:

$ tracedecay workflow handoff-redeem --request-file req.json --project . --json
exit=1
{"contract":{"schema_id":"schema.workflow.handoff_redeem.result","schema_revision":1},...,"problem":{...,"kind":"invalid_request","code":"invalid_workflow_request",...}}
Error: workflow handoff-redeem refused the request (invalid_workflow_request): The Workflow request does not match its operation contract

The test still asserts status.success().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions