Skip to content

test: source-mode assertions after failure gate do not fail CI #344

Description

@chubes4

Problem

tests/source-mode.sh checks FAILED and exits at lines 477-480, but continues adding assertions afterward. Failures in the later source-mode migration and manifest assertions increment FAILED without another final failure gate, so the script exits 0.

Observed while running the full suite for #341 on current main:

FAIL recorded 'managed' resolves to owned on upgrade
     got:  workspace
     want: owned
FAIL record_mode does not rewrite an already-migrated install
     got:  option update wp_coding_agents_source_mode workspace
     want:

The script then continued and returned success.

Expected

Move or repeat the FAILED exit gate after all assertions so any late failure makes the CI job fail. Investigate the two currently exposed source-mode regressions separately from the harness fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions