Skip to content

fix: k6 integration test picks up wildcard sentinel from list_actions#255

Merged
GTC6244 merged 1 commit intonextfrom
GTC6244/check-ci-failure
Apr 1, 2026
Merged

fix: k6 integration test picks up wildcard sentinel from list_actions#255
GTC6244 merged 1 commit intonextfrom
GTC6244/check-ci-failure

Conversation

@GTC6244
Copy link
Copy Markdown
Contributor

@GTC6244 GTC6244 commented Apr 1, 2026

Summary

  • The list_actions API returns a wildcard sentinel entry with id: "n/a" (representing U256::zero() — "Any action") alongside real actions
  • The k6 integration test blindly grabbed listActionsBody[0]?.id, which picked up this sentinel
  • When "n/a" was passed to updateActionMetadata as hashed_cid, the server parsed it as 0x0 and rejected it with "Cannot update action with hash 0x0"
  • Fix: find the specific action by name ("hello-world") instead of taking the first array element

Test plan

  • Verify the k6-correctness / correctness job passes in CI on this branch

🤖 Generated with Claude Code

…test

The list_actions API returns a wildcard sentinel entry (id: "n/a") for
U256::zero(), which was being picked up by listActionsBody[0]?.id.
This caused updateActionMetadata to reject the request with
"Cannot update action with hash 0x0". Find by name instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@GTC6244 GTC6244 requested review from a team and Copilot April 1, 2026 02:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 fixes a k6 correctness integration test failure caused by the /list_actions API including a wildcard sentinel entry (id: "n/a") alongside real actions, which the test previously (and incorrectly) selected as the target action ID.

Changes:

  • Update the k6 integration test to select the action by a specific name ("hello-world") rather than taking the first list_actions array element.
  • Extend the parsed list_actions item shape to include name so the test can search for the intended action.

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

Comment thread k6/correctness/integration.spec.ts
@GTC6244 GTC6244 merged commit 78b4711 into next Apr 1, 2026
17 checks passed
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