Skip to content

test(inspection): assert lookup associations independently of row order - #563

Merged
DevSkyLex merged 1 commit into
developfrom
test/inspection-lookup-map-assertion
Oct 8, 2026
Merged

DevSkyLex merged 1 commit into
developfrom
test/inspection-lookup-map-assertion

Conversation

@DevSkyLex

Copy link
Copy Markdown
Owner

The integrated develop CI failed when PostgreSQL returned the two correct inspection-to-equipment associations in the opposite order. The repository port promises a keyed lookup, and its sole production consumer accesses those values by key; the query does not promise row order.

Assert the exact entry count and each strict UUID association independently. Missing or extra keys, incorrect associations and wrong types still fail. Production queries and behavior are unchanged.

Validation: the actual PostgreSQL repository suite passes (6 tests, 18 assertions), scoped formatting and diff checks pass, and an independent read-only review confirms the assertions preserve the full map contract. The previous PR and develop commits have identical Git trees and ran the same 2,451-test integration suite; only the unsupported order assertion failed on develop.

Companion delivery: #562 and DevSkyLex/fireguard-web#310. This correction must pass fresh PR CI, then integrated develop CI and the unchanged Sonar gate before development deployment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T20:28:36.897118Z c41f666 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area:tests Test-only changes size:xs Small PR: under 50 changed lines state:ready Ready for review labels Oct 8, 2026
@DevSkyLex
DevSkyLex merged commit 4551109 into develop Oct 8, 2026
18 checks passed
@DevSkyLex
DevSkyLex deleted the test/inspection-lookup-map-assertion branch October 9, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests Test-only changes size:xs Small PR: under 50 changed lines state:ready Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant