Skip to content

fix: hb_store_gateway:remote_hyperbeam_node_ans104_test flaky test#736

Open
speeddragon wants to merge 1 commit intoedgefrom
test/fix_flaky_graphql
Open

fix: hb_store_gateway:remote_hyperbeam_node_ans104_test flaky test#736
speeddragon wants to merge 1 commit intoedgefrom
test/fix_flaky_graphql

Conversation

@speeddragon
Copy link
Collaborator

@speeddragon speeddragon commented Mar 6, 2026

Running the following test command can generate a flaky test when in the list of commitments, the order is different from ans104, httpsig.

HB_PRINT=hb_gateway_client,dev_query_graphql,http_client_short,http_server_short,warning rebar3 eunit --test hb_store_gateway:remote_hyperbeam_node_ans104_test

Since we match on the first commitment of the list, if httpsig is the first item will return the HMAC signature.

hb_util:ok_or_throw(TX,
will throw because the signature will be 32 bytes (eDAf0cyPL8svRojdP8HyCaBpvxG5ae_33xM3gfLRw9k) and not a valid ar_bundles signature.

I've applied the same logic of the owner field below, to ensure that we select the commitment with a commiter (httpsig commitment doesn't have commiter field).

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.

1 participant