Skip to content

fix(k6): make integration test resolve action hash from account-level list - #593

Open
GTC6244 wants to merge 4 commits into
mainfrom
fix-chipotle-ci-job
Open

fix(k6): make integration test resolve action hash from account-level list#593
GTC6244 wants to merge 4 commits into
mainfrom
fix-chipotle-ci-job

Conversation

@GTC6244

@GTC6244 GTC6244 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The k6-correctness / correctness integration test was failing in Deploy Staging with updateActionMetadata | 400 | Cannot update action with hash 0x0. The test derived the action hash from the in-group list_actions response, which depends on add_action_to_group membership being visible on-chain; when that read lagged the write, the action was absent and hashedCid resolved to "", which the server parses to U256::ZERO and rejects. This sources the hash from the account-level list instead (already verified to contain the action, and independent of group-membership propagation) and adds a guard that fails clearly on an empty/0x0 hash. The two prior main failures were a separate transient newAccount 500 NoAccountAccess issue, not addressed here.

🤖 Generated with Claude Code

The correctness integration test derived the action hash from the
in-group list_actions response, which depends on add_action_to_group
membership propagation. When that on-chain read lagged the write, the
action was absent, hashedCid resolved to "", and the server rejected
update_action_metadata with "Cannot update action with hash 0x0".

Source the hash from the account-level list (already verified to
contain the action) and guard against an empty/0x0 hash.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@GTC6244
GTC6244 requested review from a team and Copilot July 22, 2026 00:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR stabilizes the k6-correctness / correctness integration test by resolving the Lit Action hash from the account-level /list_actions response rather than the in-group listing, avoiding flakiness caused by on-chain group-membership propagation lag.

Changes:

  • Source hashedCid from the account-level listActionsAccountRes response instead of the in-group listActionsRes.
  • Add a guard check to fail clearly before calling updateActionMetadata when the resolved action hash is missing/invalid.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread k6/correctness/integration.spec.ts Outdated
GTC6244 and others added 3 commits July 21, 2026 21:23
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