Commit Graph
14659 Commits
Author SHA1 Message Date
Mariano SorgenteandGitHub 02bf8489d2 Ms.parallel pool t (#10966)
* Try parallel pool tests

* Also change workflow files

* Run less combinations

* Todo for bad test

* Try lower n
2022-03-31 08:23:34 -07:00
Kyle Altendorf b477516503 Merge branch 'atari' into atari-merge_main_bf2976a2a9dfdd1b71db48030ef79a4a571feae0 2022-03-30 20:17:41 -04:00
Kyle AltendorfandGitHub 84597c0e69 Merge pull request #10963 from Chia-Network/atari-merge_datalayer_sim_7d294466da002aa129ef8467f84f5a8bd72745ce 2022-03-30 20:16:48 -04:00
Kyle AltendorfandGitHub 45ffeb0227 Merge pull request #10956 from Chia-Network/atari-maybe_remove 2022-03-30 14:51:44 -04:00
Kyle Altendorf aa23ea5860 bt.root_path 2022-03-30 14:50:13 -04:00
Florin Chirica 3f2d15f8f0 Checkpoint code rewrite. 2022-03-30 21:18:48 +03:00
Kyle Altendorf 331feec94c Merge branch 'datalayer-sim' into atari-merge_datalayer_sim_7d294466da002aa129ef8467f84f5a8bd72745ce 2022-03-30 14:12:44 -04:00
Arvid NorbergandGitHub 40f2d42c73 bump timing threashold for mempool performance test (#10953) 2022-03-30 10:01:23 -07:00
JeffandGitHub 53d8e2c519 Quick fix for improper v2 DB initialization when targeting testnet (#10952) 2022-03-30 09:16:51 -07:00
Kyle Altendorf d173e607e7 Merge branch 'atari' into atari-merge_main_bf2976a2a9dfdd1b71db48030ef79a4a571feae0 2022-03-30 12:13:52 -04:00
Kyle AltendorfandGitHub a29b660535 Merge pull request #10946 from Chia-Network/atari-add_interested_puzzle_hashes_again 2022-03-30 12:02:26 -04:00
Kyle AltendorfandGitHub def9d54d47 Update data_layer_wallet.py 2022-03-30 12:01:59 -04:00
Kyle Altendorf 3b46c9b2ba remote some code... 2022-03-29 20:25:12 -04:00
Kyle Altendorf cd86034b8c Merge branch 'atari' into atari-merge_main_bf2976a2a9dfdd1b71db48030ef79a4a571feae0 2022-03-29 20:18:29 -04:00
Kyle AltendorfandGitHub 78b54cde49 Merge pull request #10945 from Chia-Network/atari-more_in_transaction
atari - more in_transaction handling
2022-03-29 17:32:44 -04:00
Adam KellyandGitHub c5426068aa Consolidate test fixtures (#10778)
* Rename confusing fixtures, especially ones with the same name but different implementation

* revert premature fixture rename: two_wallet_nodes_start_height_1

* Consolidate test fixtures
2022-03-29 13:25:30 -07:00
JeffandGitHub 92897ffc39 Fix trailing bytes shown in CAT asset ID row when using chia wallet show (#10924)
* Truncate CAT asset_id output to 32 bytes. A wallet RPC change is needed
to properly separate out the asset ID from the TAIL program returned by
`get_all_wallet_info_entries()`

* Move the truncation to the assignment location
2022-03-29 13:24:55 -07:00
Earle LoweandKyle Altendorf cb928e2303 Some in_transaction cleanup 2022-03-29 15:33:45 -04:00
Kyle Altendorf 61093e11cb use .add_interested_puzzle_hashes() in DLOWallet 2022-03-29 15:03:43 -04:00
Kyle AltendorfandGitHub 777df09288 Merge pull request #10944 from Chia-Network/atari-fixup_black 2022-03-29 14:50:50 -04:00
Kyle Altendorf 51a7da9b05 more in_transaction handling 2022-03-29 14:43:22 -04:00
Kyle Altendorf 00a8b47eed restrict click to < 8.1 for black (#10923)
https://github.com/pallets/click/issues/2225

Doing this instead of updating since updating black will change several
files due to some formatting change.  I would like to take that on
separately from unbreaking CI.
2022-03-29 13:58:21 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Gene Hoffman
817ebe7d6d Bump actions/cache from 2.1.6 to 3 (#10846)
* Bump actions/cache from 2.1.6 to 3

Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update actions in templates also

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2022-03-29 10:35:06 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
81c60993f6 Bump actions/setup-node from 2.4.1 to 3 (#10506)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.1 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.4.1...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-29 10:34:48 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Chris Marslender
9a0d4775ae Bump actions/github-script from 4 to 6 (#10246)
* Bump actions/github-script from 4 to 6

Bumps [actions/github-script](https://github.com/actions/github-script) from 4 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update to github.rest.* for calls to API for compat w/ github-script@v5+

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
2022-03-29 10:34:12 -07:00
Adam KellyandGitHub aaba00c354 Add more type checks to CAT Wallet (#10934) 2022-03-29 10:30:46 -07:00
Adam KellyandGitHub 9005e4e595 Use uint128 for wallet balances (#10936) 2022-03-29 10:30:09 -07:00
Adam KellyandGitHub 62c9670999 Type check values in RL Wallet (#10935) 2022-03-29 10:29:41 -07:00
Amine KhaldiandGitHub 94a4cb2e99 Contextualize some store test db names. (#10942) 2022-03-29 10:15:02 -07:00
Florin Chirica 0c03041be3 Checkpoint integration. 2022-03-29 17:49:02 +03:00
Kyle AltendorfandGitHub 94241078ef ignore lack of hinting on clvm_tools.binutils.assemble() (#10926) 2022-03-28 19:50:53 -07:00
Kyle AltendorfandGitHub fb68bebfc3 fixup workflow template merge env duplication (#10925) 2022-03-28 19:50:42 -07:00
Kyle AltendorfandGitHub fda14b5b47 restrict click to < 8.1 for black (#10923)
https://github.com/pallets/click/issues/2225

Doing this instead of updating since updating black will change several
files due to some formatting change.  I would like to take that on
separately from unbreaking CI.
2022-03-28 19:49:22 -07:00
Kyle AltendorfandGitHub 36bee1b8ca run tests in CI via coverage (#9704)
* Add coverage (without collection)

* Separate test_block_compression() to avoid coverage-related hangs

* Revert "Separate test_block_compression() to avoid coverage-related hangs"

This reverts commit ebad3d0017.

* multiprocessing.set_start_method("spawn")

* multiprocessing.set_start_method() in conftest.py

* hand hold cc wallet tests

* lint

* spawn for running chia as well

* handle already set start method case

* a bit more timeout for test_multiple_writers

* more timeout for test_writer_lock_blocked_by_readers

* 45 minute tieout for tests/pools/

* 45 minute tieout for tests/pools/

* some more hand holding sleeps

* report coverage in each workflow

only really useful to make sure it is capturing something

* oops

* complete the job name and the JOB_NAME

* better coverage result file names

* reset worker process titles

* rebuild workflows

* rebuild workflows

* black

* black

* rebuild workflows

* push timeouts

* actually include the updated workflows...

* push more workflow timeouts

* parallel=True

* rebuild workflows
2022-03-28 13:22:23 -07:00
Kyle AltendorfandGitHub a691d3c4b2 asyncio.get_event_loop() is deprecated in 3.10, stop using it (mostly) (#10418)
* asyncio.get_event_loop() is deprecated in 3.10, stop using it

https://docs.python.org/3.10/library/asyncio-eventloop.html#asyncio.get_event_loop
> Deprecated since version 3.10: Deprecation warning is emitted if there is no running event loop. In future Python releases, this function will be an alias of get_running_loop().

* black
2022-03-28 13:20:50 -07:00
Kyle AltendorfandGitHub 287bf6c0cc Remove sys.exit() from chia daemon /exit endpoint (#10454) 2022-03-28 13:16:16 -07:00
Kyle AltendorfandGitHub 219e815fc4 set CHIA_ROOT in tests instead of symlinking (#10682)
* attempt to checkout test-cache directly to desired location

* rebuild workflows

* maybe we can use CHIA_ROOT

* use CHIA_ROOT to find blocks and plots for tests

* oops

* more informational printing

* oops

* --capture no for debugging

* flake8

* import os

* undo some unrelated changes now covered elsewhere

* undo some debug changes

* rebuild workflows
2022-03-28 13:15:24 -07:00
Kyle AltendorfandGitHub 655b27fb44 move pytest.ini to the root directory (#10892)
* move pytest.ini to the root directory

* pytest.ini: testpaths = tests

https://docs.pytest.org/en/7.1.x/reference/reference.html?highlight=testpaths#confval-testpaths
2022-03-28 13:13:58 -07:00
Kyle AltendorfandGitHub e0a1fc4eaf Switch to integrated lock_and_load_config() context manager (#10698)
* minor lock scope reduction

* use the lock in tests

* Use the passed root_path in configure CLI command

* switch to lock_and_load_config()

* oops

* cleanup

* make _load_config_maybe_locked() private

* black

* Remove future improvement opportunity TODO comment
2022-03-28 12:52:51 -07:00
dustinfaceandGitHub fbd3845028 wallet: Drop unused WalletStateManager.load_wallets (#10756) 2022-03-28 12:50:50 -07:00
Arvid NorbergandGitHub 84cdd609e9 bump clvm_tools dependency to make every chia-blockchain installation get the new brun that reports cost accurately (#10880) 2022-03-28 12:49:14 -07:00
Kyle AltendorfandGitHub f0e5b5814b bump pre-commit mypy to v0.942 (#10902) 2022-03-28 12:48:36 -07:00
Adam KellyandGitHub efcf0cf0ad await the db commit in the async version of set_db_version (#10906) 2022-03-28 12:48:14 -07:00
Arvid NorbergandGitHub 1bcf409ee1 single thread executor (#10919)
* add inline executor and an option to run single-threaded

* add option to run test_full_sync in single-thread mode, to include block validation in profiles. Also attempt to speed it up by disabling db_sync
2022-03-28 12:47:46 -07:00
Matt HauffandGitHub 6997adeab6 Fix flaky trade test (#10921) 2022-03-28 12:46:13 -07:00
Arvid NorbergandGitHub 7a82f0d299 use rust clvm in Program.run() (#10878)
* remove Program.from_serialized_program

* run the rust clvm implementation (instead of python) even for wallet programs
2022-03-28 11:58:59 -07:00
Arvid NorbergandGitHub a100dda37e new DBWrapper supporting concurrent readers (#10166)
* new DBWrapper supporting concurrent readers

* adress review comments

* fixup default database version, when file doesn't exist

* remove unused argument
2022-03-28 11:58:00 -07:00
Arvid NorbergandGitHub 656d7d94d8 fix type annotations for FullBlock.header_hash and FullBlock.prev_header_hash (#10909) 2022-03-27 12:20:30 -07:00
Arvid NorbergandGitHub b1e7b8d0a1 fix type annotations for get_block_generator() (#10907) 2022-03-26 21:05:20 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Gene Hoffman
7c49e29eaf Bump github/super-linter from 4.8.1 to 4.9.1 (#10894)
* Bump github/super-linter from 4.8.1 to 4.9.1

Bumps [github/super-linter](https://github.com/github/super-linter) from 4.8.1 to 4.9.1.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/v4.8.1...v4.9.1)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Ignore too-many-function-args in test_type_checking.py

* black

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2022-03-25 22:23:51 -07:00