Skip to content

fix(ci): tolerate fabricx auto-verify race in e2e#30

Merged
dviejokfs merged 1 commit into
mainfrom
fix/ci-fabricx-verify-status
May 6, 2026
Merged

fix(ci): tolerate fabricx auto-verify race in e2e#30
dviejokfs merged 1 commit into
mainfrom
fix/ci-fabricx-verify-status

Conversation

@dviejokfs

Copy link
Copy Markdown
Contributor

Summary

The new FabricX background verifier (introduced in #29) races the orderer router becoming reachable in CI. By the time the e2e "Verify FabricX network is queryable via API" step runs, the network is already in `verification_failed` even though the prior `Create namespace via API and verify finality` step proved the network is functional.

Fix

When the status is `verification_failed`, POST `/networks/fabricx/{id}/verify` to run verification synchronously, then accept either `running` or `genesis_block_created`.

This is a CI-only change — no runtime behavior changes.

Repro

Failing run on main:

```
06:45:18.082 Namespace 'e2etest' committed (attempt 1)
06:45:18.246 FabricX network status: verification_failed
06:45:18.246 Expected status genesis_block_created, got verification_failed
```

Test plan

  • CI passes on this branch

The deployer kicks off background verification once every node joins
(VerifyNetwork, see fabricx.go:57-67). In CI it can race the orderer
router becoming reachable, so the network may already be in
verification_failed by the time the e2e checks the status — even though
the prior namespace-create step proved the network actually works.

When that happens, the test now POSTs /networks/fabricx/{id}/verify to
run verification synchronously, then accepts running OR
genesis_block_created.

Signed-off-by: David Viejo <dviejo@kungfusoftware.es>
@dviejokfs
dviejokfs merged commit 5128001 into main May 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant