Skip to content

ci: scope profile agent-identity read count to kind 0 reads - #243

Closed
kalvinnchau wants to merge 1 commit into
mainfrom
fix/profile-agent-identity-test-read-count
Closed

kalvinnchau wants to merge 1 commit into
mainfrom
fix/profile-agent-identity-test-read-count

Conversation

@kalvinnchau

@kalvinnchau kalvinnchau commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

CI on main was red: ProfileAgentIdentity.test.tsx > adds no agent section or reads for a profile without an agent hint expected the panel's relay query mock to be called once, but got twice.

ProfilePanel also issues its own kind 30315 status read (pre-existing, #219) for every target, so counting all reads can never be 1. The assertion now counts only kind 0 profile reads — the reads this contract owns.

The no-agent-hint case asserted the panel issued exactly one relay read in
total, but ProfilePanel also reads its own self-published status (kind 30315,
feature #219) for every target. That assertion was born failing: the CI run
for #232 was cancelled before Vitest executed. Count only kind 0 profile
reads, which are the reads this contract owns.

Signed-off-by: Kalvin Chau <kalvin@block.xyz>
@kalvinnchau
kalvinnchau requested review from a team, comp615 and wesbillman as code owners September 24, 2026 21:45
@kalvinnchau kalvinnchau changed the title fix CI: scope profile agent-identity read count to kind 0 reads ci: scope profile agent-identity read count to kind 0 reads Sep 24, 2026
@kalvinnchau

Copy link
Copy Markdown
Contributor Author

Closing: main already fixed this in #234 (same scoping via the existing agentReads helper). Our branch is redundant.

@kalvinnchau
kalvinnchau deleted the fix/profile-agent-identity-test-read-count branch September 24, 2026 21:57
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.

2 participants