Skip to content

test: drop the now-stale unguarded-predicate exemption (unbreaks main) - #572

Merged
yinlianghui merged 1 commit into
mainfrom
fix/stale-unguarded-exemption
Jul 31, 2026
Merged

test: drop the now-stale unguarded-predicate exemption (unbreaks main)#572
yinlianghui merged 1 commit into
mainfrom
fix/stale-unguarded-exemption

Conversation

@yinlianghui

Copy link
Copy Markdown
Collaborator

Description

main is red. test/object-validation-predicates.test.tskeeps no stale entries in the known-unguarded list fails:

AssertionError: expected [ Array(1) ] to deeply equal []
+ [ "crm_opportunity_line_item.unit_price_positive" ]

Nothing is broken — the guard fired exactly as designed.

What happened

#571 could not fix crm_opportunity_line_item.unit_price_positive (it belongs to a different object family than that PR's scope), so it recorded the rule as a documented exemption and paired it with a staleness check, precisely so the exemption could not quietly outlive its fix.

#570, running in parallel, added the guard to that very rule.

Both PRs were green on their own branch. The collision exists only on main, where the exemption is now stale — which is the exact condition #571's check was written to detect. Emptying the map is the fix it was asking for.

This is the third instance today of "individually green, red after merge" (the others: #547's dangling crm_competitor grants, #439's stale StackBlitz lockfile). Worth noting that this one is the only one a test caught automatically — the other two had to be found by hand.

Changes

  • KNOWN_UNGUARDED is now empty, with a comment recording why the entry existed and how it died, so the next reader understands the mechanism rather than just seeing an empty object.

Verification

pnpm verify on a clean checkout:

  • exit code 0, 0 errors
  • 436 passed | 2 skipped (24 files) — the 2 skips are the version-gated @objectstack 17+ bucket assertions
  • 4 warnings, all pre-existing and benign

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • pnpm verify passes
  • Changeset added (empty frontmatter — releases nothing)

Refs #514.

main is red: test/object-validation-predicates.test.ts > 'keeps no stale entries
in the known-unguarded list' fails with
["crm_opportunity_line_item.unit_price_positive"].

Nothing is broken — the guard fired exactly as designed. #571 carved that rule
out as a documented exemption because it belongs to a different object family,
and paired the exemption with a staleness check so it could not rot. #570, run
in parallel, added the guard to that very rule. Both PRs were green on their own
branch; the collision only exists on main, where the exemption is now stale.

Emptying the map is the fix the check was written to force.

verify: exit 0, 0 errors, 436 passed | 2 skipped, 24 files.

Refs #514.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
hotcrm Ignored Ignored Jul 31, 2026 9:53am

Request Review

@github-actions github-actions Bot added the ci/cd label Jul 31, 2026
@yinlianghui yinlianghui added the bug Something isn't working label Jul 31, 2026
@yinlianghui
yinlianghui merged commit 86842e7 into main Jul 31, 2026
11 checks passed
@yinlianghui yinlianghui self-assigned this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci/cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant