Commit Graph
14659 Commits
Author SHA1 Message Date
dustinfaceandGitHub c400d816af harvester: Validate the path in add_plot_directory (#11625)
Make sure it exists, is a directory and hasn't been added already.
2022-05-24 13:21:44 -07:00
Kyle AltendorfandGitHub a9f7cce06b Skip plot_sync_callback if delta is None, hint Harvester.server (#11620)
* hint Harvester.server as Optional[ChiaServer]

* use a Protocol instead of Callable

* oh right, Optional
2022-05-24 13:21:14 -07:00
dustinfaceandGitHub d73fa27ea7 harvester: Sort plot_paths before splitting it into batches (#11508)
After changing `plot_paths` to be a set in #11204 the plots are loaded 
out of order. Sorting the list before splitting it to batches recovers 
the load order. 

Fixes #11499
2022-05-24 13:20:27 -07:00
Arvid NorbergandGitHub b998c69cdf log full errors (and stack trace) when run_as_generator() throws exception. Normally this fails with an error code (#11566) 2022-05-24 13:20:11 -07:00
SebastjanandAmine Khaldi df0dd96290 more asserts to wait for wallet to be ready 2022-05-24 20:16:03 +01:00
matt-o-how 62e62ae580 wrote new beefy transfer_program 2022-05-24 16:45:18 +01:00
Matt Hauff 71731c89d8 Refine test for __eq__ 2022-05-24 08:33:13 -07:00
Florin Chirica 840fd6a0bb Add --foldername option. 2022-05-24 14:24:56 +02:00
SebastjanandAmine Khaldi a7ecc4d322 more stable tests 2022-05-24 12:41:48 +01:00
matt-o-how 3253dad15e small improvements before bigger rewrite 2022-05-24 11:17:00 +01:00
SebastjanandAmine Khaldi d510dda6d0 increased timeouts 2022-05-24 11:06:03 +01:00
SebastjanandAmine Khaldi dac898e6b1 faster tests, other fixes 2022-05-24 10:49:50 +01:00
Amine KhaldiandGitHub a462ecf93a Merge pull request #1 from xdustinface/pr-offer-generalization-catchup
Merge 'chia/main' into `offer_generalization_bringup`
2022-05-24 10:04:54 +01:00
xdustinface 9aedb714ee Merge remote-tracking branch 'chia/main' into offer_generalization_bringup 2022-05-24 03:46:51 +02:00
Kyle AltendorfandGitHub 60c1867a44 async sleep and require connection reset error for DoS test (#11612) 2022-05-23 16:14:04 -07:00
dustinfaceandGitHub 36120cf82a tests: Some adjustments in test_offer_endpoints (#11558)
This is a follow up after #11552 which basically used the initial parts 
of `test_cat_endpoints` to make `test_offer_endpoints` working. Now this 
PR drops a lot of the stuff we can assume to be not needed in this test 
because its tested in `test_cat_endpoints` and it adds some general 
improvments to it.
2022-05-23 16:13:36 -07:00
Kyle AltendorfandGitHub 0f0bc5bda1 avoid cancelling release/** and long_lived/** (#11519) 2022-05-23 16:13:04 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Gene Hoffman
8ef6a450c6 Bump actions/setup-python from 2 to 3 (#10949)
* Bump actions/setup-python from 2 to 3

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

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

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

* Fixup templates for python@v3

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2022-05-23 16:12:23 -07:00
Arvid NorbergandGitHub 0efd323a12 fix built-in profiler to work for mac (#11590) 2022-05-23 16:10:52 -07:00
Sebastjan 24818b0919 checkpoint 2022-05-23 22:27:42 +02:00
neurosis69andGitHub 00c1f8526e remove redundant condition (#11582) 2022-05-23 12:57:40 -07:00
neurosis69andGitHub dfcbb3f64e early return from _set_spent function (#11594)
* check for removals before calling function

* move condition to function
2022-05-23 12:56:35 -07:00
Kyle AltendorfandGitHub 12ec1a2b3e add tests.util.misc.assert_maximum_duration for benchmark assertions (#11589)
* add tests.util.misc.assert_maximum_duration for benchmark assertions

* fix some imports

* more

* lint

* correct duration

* hint fixup

* rename to caller_file_and_line()

* set default timer to thread_time()

* extract gc manager and default to disabling

* self calibrate overhead

* wrap none-ness behind .results() method

* add messages

* from __future__ import annotations

* yield out self

* final from typing_extensions

* split it

* just use Future

* tweak

* tweak

* correction in loosely hint checked file

* all future indexing in hints

* union for the hints

* rename

* assert_runtime()

* another rename...

* message -> label

* label all results with test names

* oops
2022-05-23 12:50:48 -07:00
Kyle AltendorfandMariano Sorgente 2c246026c3 test installer on fedora:36, drop 33 2022-05-23 14:44:04 -04:00
Matt Hauff 59b9411d9c Lint 2022-05-23 11:20:17 -07:00
Florin Chirica 05b06a1409 Slight simplification. 2022-05-23 19:45:38 +02:00
Arvid NorbergandGitHub 00a2a15844 Coin simplification (#11567)
* factor out as_list() from Coin into free function. Remove unused name_str() from Coin. Minor optimization of hash_coin_ids() for common case.

* extend Coin unit test
2022-05-23 10:43:17 -07:00
Arvid NorbergandGitHub 3d8081cc0d restore missing hints being stored as None (instead of 0-length bytes) (#11568) 2022-05-23 10:42:40 -07:00
Florin Chirica c39968c201 Fix autoinsert xfails. 2022-05-23 19:40:09 +02:00
Matt Hauff 400033251e Fix an embarrasing indentation and tests 2022-05-23 10:25:13 -07:00
Matt Hauff 5400773ba7 Implement __eq__ on puzzle drivers 2022-05-23 10:24:42 -07:00
Amine Khaldi 2dafbfe9cc Merge main into nft1_soon_tm. 2022-05-23 16:56:57 +01:00
Mariano SorgenteandGitHub 817baa3096 Bind port 0 to fix race condition when grabbing available ports (#11578)
* port 0 to fix flakiness

* Try fixing setup_full_system

* Try fixing setup_full_system, and lint

* More attempts to fix

* No more calls to get random ports in setup_nodes

* Revert accidental changes

* Timelord extra arg

* Try with port 0

* Fix daemon test, and lint

* Try without 0.0.0.0

* Back to 0.0.0.0

* Try a few timelord changes to get test running

* Increase timeout again

* Use the correct interface to get the port

* INFO logging to debug issue

* Revert "INFO logging to debug issue"

This reverts commit 7c379e5cca.

* Fix advertised port log

* Add extra log

* Logging back

* Rollback the timelord changes

* Try port 0 timelord

* Revert "Try port 0 timelord"

This reverts commit 4997faf3b2.

* Try full green, change ordering

* Remove unused var

* speed up simulation and cleanup

* Now try without the port config

* Fix a flaky call to get_event_loop

* Try getting the port dynamically

* No dynamic port

* Try changing the ordering

* Try adding a sleep

* Back to what works

* Timelord before vdf clients

* Dynamic port for 1st timelord

* Revert "Dynamic port for 1st timelord"

This reverts commit 0f322a15b7.

* Revert "Timelord before vdf clients"

This reverts commit 3286c34696.

* Revert "Back to what works"

This reverts commit 30380dffb7.

* Revert "Try adding a sleep"

This reverts commit 9212b665a6.

* Revert "Try changing the ordering"

This reverts commit a62597d70d.

* Revert "No dynamic port"

This reverts commit 5d2e15749b.

* Revert "Try getting the port dynamically"

This reverts commit ef9cd75679.

* Revert "Fix a flaky call to get_event_loop"

This reverts commit 01a000fdfb.

* Try one to 0

* Just not 0

* Don't get port dynamically

* Cleanup a bit

* Fix

* Some cleanup work

* Some cleanup work

* Fix daemon test

* Cleanup

* Remove arguments
2022-05-23 08:13:49 -07:00
b644f37277 Fix a few additional flaky tests (#11597)
* Fix a few additional flaky tests

* Lint

* Update tests/core/full_node/stores/test_full_node_store.py

Co-authored-by: Jeff <jeff@chia.net>

* Fix merge conflict

* Remove unnecessary function

Co-authored-by: Jeff <jeff@chia.net>
2022-05-23 07:55:05 -07:00
Mariano SorgenteandGitHub 766e1c21f5 Fix several flaky tests (#11576)
* Increase some of the timeouts to reduce flakiness

* Experiment with CI for flakiness

* Force more runs

* Add argument name

* Fix flaky mempool test

* Attempt to fix another flaky test

* Fix wallet retry test

* Missing arg

* Lint

* Increase benchmark test time

* Debug

* Debug

* Simplify retry test

* Lint

* More lint

* Return false instead of assert

* No need to check disconnect twice (since we don't break, this was flaky)

* Remove useless changes

* Accidental changes revert

* Accidental changes revert 2

* Accidental changes revert 3

* Revert fixture
2022-05-23 07:54:38 -07:00
geoffwalmsley 60ef79bc85 refactor tests 2022-05-23 21:17:30 +12:00
geoffwalmsley 7df7d2963f new inner puzzle hash for nft cancellation 2022-05-23 20:56:22 +12:00
geoffwalmsley 560f50996b fix missing fee for offer maker 2022-05-23 19:16:46 +12:00
Sebastjan 9513229139 nft1 minted 2022-05-22 08:23:52 +02:00
Matt Hauff 0592233e9e pre-commit 2022-05-20 11:57:52 -07:00
Earle LoweandGitHub c60e5d8f83 Merge pull request #11521 from Chia-Network/atari-merge_main_d1e445fac2e503ea230acf74ec24a1bb9c529aee
Atari merge main d1e445fac2
2022-05-20 10:48:18 -07:00
Matt Hauff ad0e624187 Fix offer test and mypy 2022-05-20 10:37:40 -07:00
0a06afa5d1 NFT1: ytx1991's Add RPC API for get any NFT (#11570)
* Add get_nft_info API

* Move API to wallet RPC

* Add untrusted case for tests

* Fix DID bug & Modify get_nft_info

* Remove dummy code

* Fix mismatch

* Resolve NFT update issue

* Remove print

Co-authored-by: ytx1991 <t.yu@chia.net>
2022-05-20 10:15:09 -07:00
matt-o-how 0ae8f32c4a add recreation tests 2022-05-20 16:53:14 +01:00
Matt Hauff 22919901f1 Add a test for puzzle drivers 2022-05-20 08:28:28 -07:00
Matt Hauff bafb83245a Address comments by @dustinface 2022-05-20 07:57:37 -07:00
matt-o-how 36a70ae8d8 use my_amount in state layer again because we did that for a reason 2022-05-20 15:44:21 +01:00
matt-o-how 0d4ffd954b Break NFT0 :) 2022-05-20 15:42:49 +01:00
matt-o-how 782557b37b change hint to innerpuz 2022-05-20 14:13:17 +01:00
matt-o-how eba896a8d5 some puzzle fixes - broken full stack test though 2022-05-20 13:51:36 +01:00