Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: simplify method to generate a random valid blob #5946

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

kevaundray
Copy link
Contributor

Issue Addressed

The previous method was indexing the blob_bytes on i * BYTES_PER_FIELD_ELEMENT -- this method iterates the blob_bytes directly and skips to every BYTES_PER_FIELD_ELEMENT so we can avoid the failure modes:

  • Index out of bounds is no longer possible since the iterator will just stop iterating at that point
  • Checked mul can also be avoided

Proposed Changes

Please list or describe the changes introduced by this PR.

Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.

@jimmygchen jimmygchen added test improvement Improve tests ready-for-merge This PR is ready to merge. labels Jun 18, 2024
@jimmygchen
Copy link
Member

@mergify queue

Copy link

mergify bot commented Jun 18, 2024

queue

🛑 The pull request has been removed from the queue default

The queue conditions cannot be satisfied due to failing checks.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@jimmygchen
Copy link
Member

@mergify requeue

Copy link

mergify bot commented Jun 19, 2024

requeue

✅ This pull request will be re-embarked automatically

The followup queue command will be automatically executed to re-embark the pull request

Copy link

mergify bot commented Jun 19, 2024

queue

🛑 The pull request has been removed from the queue default

Pull request #5946 has been dequeued by a dequeue command.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@jimmygchen
Copy link
Member

@mergify requeue

Copy link

mergify bot commented Jun 19, 2024

requeue

☑️ This pull request is already queued

@jimmygchen
Copy link
Member

@mergify unqueue

Copy link

mergify bot commented Jun 19, 2024

unqueue

✅ The pull request has been removed from the queue default

@jimmygchen
Copy link
Member

@mergify requeue

Copy link

mergify bot commented Jun 19, 2024

requeue

✅ This pull request will be re-embarked automatically

The followup queue command will be automatically executed to re-embark the pull request

Copy link

mergify bot commented Jun 19, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 806c3ce

mergify bot added a commit that referenced this pull request Jun 19, 2024
@mergify mergify bot merged commit 806c3ce into sigp:unstable Jun 19, 2024
27 of 28 checks passed
@kevaundray kevaundray deleted the kw/simplify-random-valid-blob branch June 27, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. test improvement Improve tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants