Skip to content

test(blackbox): skip a CloudCreate that reuses a tracked native id - #673

Merged
JeroenSoeters merged 1 commit into
mainfrom
fix/skip-unmanaged-recreate
Aug 22, 2026
Merged

test(blackbox): skip a CloudCreate that reuses a tracked native id#673
JeroenSoeters merged 1 commit into
mainfrom
fix/skip-unmanaged-recreate

Conversation

@JeroenSoeters

Copy link
Copy Markdown
Collaborator

Summary

Fixes the TestProperty_FullChaos failure observed on #668's CI: discovery did not ingest — expected unmanaged resources were not ingested after 3 attempts.

The generator draws out-of-band native ids from a small pool, so an id can repeat within a sequence. The failing shape: CloudCreate cloud-4 → discovery ingests it → CloudCreate cloud-4 again with freshly drawn properties. The repeated create overwrites the cloud entry and arms fresh CloudProperties expectations in the model — but discovery only ingests native ids inventory does not know, so it can never converge those expectations; the trigger exhausts its retries and fails the run. Re-creating a tracked entry is semantically an out-of-band modification, which is OpCloudModify's surface (absorbed by sync, with its own modeling); the repeated create is now skipped.

Also dumps the unconverged expectation violations when a discovery trigger gives up, so the next such failure names the offending rows instead of requiring log archaeology.

Harness-level regression test covers the shape (create → ingest → re-create skipped → discovery still converges). Fourth in the series of pre-existing seed-dependent gaps surfaced by the strict suite (#670, #672 before it); blocks #668's CI.

The generator draws out-of-band native ids from a small pool, so an id
can repeat within a sequence. Re-creating a cloud entry the model
already tracks as present is an out-of-band modification of that
resource, not a creation: discovery only ingests native ids inventory
does not know, so the fresh CloudProperties expectation armed by the
repeated create can never converge through the discovery path and the
trigger exhausts its retries. Out-of-band modification of unmanaged
resources is OpCloudModify's surface; the repeated create is skipped.

Also dump the unconverged expectation violations when a discovery
trigger gives up, so the next such failure names the offending rows.
@JeroenSoeters
JeroenSoeters merged commit 68f7ec1 into main Aug 22, 2026
32 checks passed
@JeroenSoeters
JeroenSoeters deleted the fix/skip-unmanaged-recreate branch August 22, 2026 19:32
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