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

Range based gets #2224

Merged
merged 36 commits into from
Oct 16, 2024
Merged

Range based gets #2224

merged 36 commits into from
Oct 16, 2024

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Oct 11, 2024

This pull request includes several changes to the .github/workflows/merge.yml file and the sn_client module to improve functionality and error handling. The most important changes include updating job steps in the GitHub Actions workflow, adding new methods and parameters in the sn_client API, and refining error handling in the sn_client module.

GitHub Actions Workflow Improvements:

  • Renamed a job step to "Start a client to upload cost estimate" and adjusted the corresponding command in .github/workflows/merge.yml.
  • Updated the log file prefix for stopping nodes to safe_test_logs_data_location_routing_table in .github/workflows/merge.yml.
  • Added commented-out steps for sleeping, checking faucet funding, and verifying directory contents in .github/workflows/merge.yml [1] [2].

sn_client API Enhancements:

  • Added KBucketDistance to the imports and introduced the get_range method in sn_client/src/api.rs [1] [2].
  • Modified the get_signed_register_from_network method to include is_verifying parameter and adjusted related methods to use this parameter for quorum and retry strategy [1] [2] [3].

Error Handling Improvements:

  • Added new error variants FaucetDisbursement and NoCashNoteFound in sn_client/src/error.rs [1] [2].
  • Removed the CouldNotVerifyTransfer error variant and replaced its usage with more specific errors [1] [2].

Miscellaneous:

  • Implemented retry logic for loading cash notes in sn_client/src/faucet.rs.
  • Increased the retry count for loading the faucet wallet in sn_client/src/test_utils.rs.

Copy link
Member

@maqi maqi left a comment

Choose a reason for hiding this comment

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

sn_client crate is obsoleted
most of the work in the sn_client shall be shifted into the autonomi crate.

Copy link
Member

@grumbach grumbach left a comment

Choose a reason for hiding this comment

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

LGTM

@joshuef joshuef enabled auto-merge October 15, 2024 03:48
timeout-minutes: 1
# get the counts, then the specific line, and then the digit count only
# then check we have an expected level of restarts
# TODO: make this use an env var, or relate to testnet size

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
timeout-minutes: 1
# get the counts, then the specific line, and then the digit count only
# then check we have an expected level of restarts
# TODO: make this use an env var, or relate to testnet size

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
.github/workflows/merge.yml Fixed Show fixed Hide fixed
.github/workflows/merge.yml Fixed Show fixed Hide fixed
@joshuef joshuef force-pushed the RangeBasedGets branch 3 times, most recently from 0414408 to 2105881 Compare October 15, 2024 12:21
@joshuef joshuef added this pull request to the merge queue Oct 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 16, 2024
@joshuef joshuef enabled auto-merge October 16, 2024 03:30
@joshuef joshuef added this pull request to the merge queue Oct 16, 2024
Merged via the queue into maidsafe:main with commit 1d14196 Oct 16, 2024
24 checks passed
@joshuef joshuef deleted the RangeBasedGets branch October 16, 2024 05:16
jacderida added a commit that referenced this pull request Oct 18, 2024
This reverts commit 1d14196, reversing
changes made to 567200e.
joshuef added a commit to joshuef/safe_network that referenced this pull request Oct 21, 2024
jacderida added a commit that referenced this pull request Oct 21, 2024
This reverts commit 1d14196, reversing
changes made to 567200e.
maqi added a commit to maqi/autonomi that referenced this pull request Oct 23, 2024
maqi added a commit to maqi/autonomi that referenced this pull request Oct 23, 2024
maqi added a commit to maqi/autonomi that referenced this pull request Oct 31, 2024
jacderida added a commit that referenced this pull request Nov 2, 2024
Revert "Revert "Revert "Merge pull request #2224 from joshuef/RangeBasedGets"""
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.

3 participants