Skip to content

add chia dev data sync-time for doing datalayer sync time tests #19437

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

altendky
Copy link
Contributor

@altendky altendky commented Mar 26, 2025

Purpose:

Usage: chia dev data sync-time [OPTIONS]

  An empty temporary database is created and then the specified store is
  synced to it. If local delta files are available in the specified directory
  then they will be used. This allows both testing of total time including
  downloading as well as just the insert time. The DataLayer work is done
  within the test process. Separate daemon and wallet service processes are
  started and stopped.

Options:
  -f, --fingerprint INTEGER       Fingerprint of the wallet to use
  -wp, --wallet-rpc_port INTEGER  Set the port where the Wallet is hosting the
                                  RPC interface. See the rpc_port under wallet
                                  in config.yaml.
  --restart-all / --no-restart-all
                                  [default: no-restart-all]
  --profile-tasks / --no-profile-tasks
                                  [default: no-profile-tasks]
  --store-id HEXSTRING32          [required]
  --generation-limit INTEGER      [required]
  -h, --help                      Show this message and exit.

Current Behavior:

New Behavior:

Testing Notes:

Draft For:

@altendky altendky added Added Required label for PR that categorizes merge commit message as "Added" for changelog Exclude_Notes Use this label if the changes in the PR should be excluded from the release notes labels Mar 26, 2025
@altendky altendky marked this pull request as ready for review April 3, 2025 17:02
@altendky altendky requested a review from a team as a code owner April 3, 2025 17:02
@altendky altendky requested a review from emlowe April 3, 2025 17:02
Copy link

coveralls-official bot commented Apr 3, 2025

Pull Request Test Coverage Report for Build 14332667392

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 55 of 162 (33.95%) changed or added relevant lines in 3 files are covered.
  • 936 unchanged lines in 44 files lost coverage.
  • Overall coverage decreased (-0.06%) to 91.212%

Changes Missing Coverage Covered Lines Changed/Added Lines %
chia/cmds/dev/data.py 49 156 31.41%
Files with Coverage Reduction New Missed Lines %
chia/consensus/full_block_to_block_record.py 1 98.68%
chia/_tests/core/full_node/test_transactions.py 1 99.12%
chia/_tests/core/mempool/test_mempool_manager.py 1 99.93%
chia/_tests/core/util/test_file_keyring_synchronization.py 1 96.88%
chia/_tests/util/test_full_block_utils.py 1 99.35%
chia/_tests/wallet/cat_wallet/test_cat_wallet.py 1 99.55%
chia/_tests/wallet/test_notifications.py 1 99.32%
chia/_tests/wallet/test_wallet_retry.py 1 98.57%
chia/wallet/vc_wallet/cr_cat_wallet.py 1 97.49%
chia/simulator/full_node_simulator.py 2 98.0%
Totals Coverage Status
Change from base Build 14245677303: -0.06%
Covered Lines: 101455
Relevant Lines: 111088

💛 - Coveralls

fchirica
fchirica previously approved these changes Apr 4, 2025
@altendky altendky marked this pull request as draft April 7, 2025 14:30
@altendky altendky marked this pull request as ready for review April 7, 2025 23:08
Copy link
Contributor

github-actions bot commented Apr 8, 2025

File Coverage Missing Lines
chia/cmds/dev/data.py 31.4% lines 35-36, 48, 52-53, 57, 80-81, 87-88, 90-93, 95-98, 100, 102, 104-105, 107, 109-110, 112, 118, 120, 122-123, 125-128, 130, 132, 134, 150-156, 158-162, 164, 170-171, 173-175, 177-180, 182-184, 186-190, 192-200, 202-204, 207-209, 214-217, 219-220, 223-228, 230, 238-240, 242-244, 246-250, 252
Total Missing Coverage
162 lines 107 lines 33%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added Required label for PR that categorizes merge commit message as "Added" for changelog coverage-diff Exclude_Notes Use this label if the changes in the PR should be excluded from the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants