Commit Graph

1593 Commits

Author SHA1 Message Date
str4d efa2dc70e8
Merge pull request #6417 from sellout/rpc-tests-interrupt-context
Show in-progress tests when rpc-tests is interrupted
2023-02-14 15:14:44 +00:00
Kris Nuttycombe 0b9f76c36c
Merge pull request #6430 from zcash/hotfix-v5.4.1
Back-merge of hotfix-v5.4.1
2023-02-13 16:24:30 -07:00
Jack Grigg 7628ec7dfa Postpone dependency updates for v5.4.1 2023-02-13 18:05:35 +00:00
Jack Grigg 1ceb4c19cc qa: Extend `wallet_deprecation` to test `allowdeprecated` in config file
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-02-10 23:57:05 +00:00
Jack Grigg 8dd3e6135d qa: Refactor `wallet_deprecation` test to extract common logic
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-02-10 23:57:05 +00:00
Greg Pfeil 3178296c38
Make extra newline more explicit
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2023-02-09 13:51:46 -07:00
Greg Pfeil cbc0511cd2
Show in-progress tests when rpc-tests is interrupted
Interrupting rpc-tests (e.g., with Ctrl-c) will print a list of the tests that were running when the
interrupt was received. This is useful for identifying tests that aren’t terminating.

For example:
```
wallet_broadcast.py:
Pass: True, Duration: 62 s

.................
zmq_test.py:
Pass: True, Duration: 29 s

.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^C
The following tests were running when interrupted:
• mempool_reorg.py

Traceback (most recent call last):
...
```
2023-02-09 09:53:24 -07:00
Charlie O'Keefe 251432966f
Merge pull request #6401 from nuttycom/version-5.4.0-back_merge
Back-merge version-5.4.0 changes to `master`.
2023-02-02 15:36:12 -07:00
Kris Nuttycombe 5fb4385c5a Postpone rustcxx and native_cxxbridge versions 1.0.89 2023-02-01 17:28:38 -07:00
Kris Nuttycombe 141d7c29d3
Merge pull request #6236 from zcash/fix_tar_extractall
Adding tarfile member sanitization to extractall()
2023-02-01 16:33:34 -07:00
Jack Grigg 51d62c652d qa: Add RPC test reproducing the Orchard reindex issue
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2023-01-31 00:28:30 +00:00
Daira Hopwood 2afaa88c01 Postpone updates for 5.4.0.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2023-01-27 21:55:38 +00:00
Kris Nuttycombe 95e3447b96 Fix potential path or symlink traversal
Use `realpath` instead of `abspath` and remove unused `safe_extract` arguments & defaults.

Reviewed with @daira @str4d @sellout
2023-01-27 14:08:02 -07:00
TrellixVulnTeam 543df3797a Adding tarfile member sanitization to extractall() 2023-01-27 14:08:01 -07:00
Kris Nuttycombe 069159b8c1 Merge commit '267ddf8efe36cc799c4c31772a8883ea332ef55b' into version-5.4.0 2023-01-26 09:30:33 -07:00
Kris Nuttycombe 214c3007f5 Enable tests of chain supply & transparent pool balance. 2023-01-24 02:13:05 +00:00
Jack Grigg 0ff03e9693 depends: Postpone cxx update 2023-01-24 02:12:55 +00:00
str4d 0e931a9397
Merge pull request #4470 from oxarbitrage/issue4294
Add transparent value pool to RPC calls
2023-01-23 21:55:00 +00:00
Kris Nuttycombe 0f886c32fe Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
2023-01-23 13:23:20 -07:00
Kris Nuttycombe 193b22b754 Apply suggestions from code review
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-01-22 11:33:23 -07:00
Kris Nuttycombe 2fd52ada51 Apply suggestions from code review
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-01-22 09:10:03 -07:00
Alfredo Garcia 486817498f Add chain supply and transparent value to block index.
Co-authored-by: Jack Grigg <jack@z.cash>
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-01-22 09:10:03 -07:00
Jack Grigg 267ddf8efe qa: Enable RPC test execution to be overridden from Python
`run_tests` now takes a (subclass of) `RPCTestHandler` as its first
argument, and returns `True` if all tests passed instead of calling
`sys.exit`. This enables RPC tests to be run from Python and the
execution of individual tests to be customised:

```python
import importlib
import sys
sys.path.append('qa/pull-tester')
rpc_tests = importlib.import_module('rpc-tests')

src_dir = '.'
build_dir = '.'
exeext = ''

class MyTestHandler(rpc_tests.RPCTestHandler):
    def start_test(self, args, stdout, stderr):
        print('Starting test!')
        return subprocess.Popen(
            args,
            universal_newlines=True,
            stdout=stdout,
            stderr=stderr)

test_list = ['test_to_run.py']

all_passed = rpc_tests.run_tests(MyTestHandler, test_list, src_dir, build_dir, exeext)
```
2023-01-20 13:50:41 +00:00
str4d 9e1efad2d1
Merge pull request #6312 from str4d/6308-backport-6898
Backport `CreateNewBlock` rewrite
2023-01-19 21:47:20 +00:00
Jack Grigg e490b7ff4f qa: Update show_help RPC test 2023-01-13 02:57:39 +00:00
Jack Grigg 0de7a08c86 cargo update 2023-01-13 00:33:13 +00:00
Jack Grigg e91fe01387 depends: Update cxx to 1.0.83 2023-01-13 00:33:13 +00:00
Jack Grigg 9208bdaadd qa: Postpone LLVM 15 and CCache 4.7 updates 2023-01-13 00:33:13 +00:00
Jack Grigg 0e33a7b313 depends: utfcpp 3.2.3 2023-01-13 00:33:13 +00:00
Jack Grigg 0d17460c85 depends: Add tl_expected to update checker 2023-01-13 00:33:13 +00:00
str4d 94f28896f8
Merge pull request #5301 from str4d/cmake-depends
Add CMake to depends system
2023-01-12 21:34:03 +00:00
str4d a2623afe9f
Merge pull request #6299 from zcash/ci_add_heaptrack_benchmark
Update performance-measurements.sh with Heaptrack
2023-01-12 19:19:07 +00:00
mdr0id 08dc78bcc5 update memory targets with heaptrack 2023-01-12 07:18:23 -08:00
Jack Grigg a742ad4c62 depends: Add package for native_cmake 3.25.1
This removes the need for users to install cmake themselves to build.
2023-01-12 02:10:22 +00:00
Jack Grigg 3defbd05be depends: native_ccache 4.6.3 2023-01-12 02:10:22 +00:00
Jack Grigg ca512aa286 depends: native_zstd 1.5.2
We already require zstd for cross-compiling Windows binaries; now we
build it internally because we will also require libzstd for ccache.
2023-01-12 02:10:22 +00:00
Jack Grigg bbc18d2cb2 depends: googletest 1.12.1 2023-01-11 20:55:00 +00:00
str4d 6cf12411bf
Merge pull request #6316 from sellout/remove-outdated-sprout-tests
Remove outdated Sprout tests
2023-01-11 20:47:45 +00:00
Jack Grigg 7b57138b92 clearscreen 2.0 2023-01-11 01:01:30 +00:00
Jack Grigg 7cf42562d3 zcash_primitives 0.9 2023-01-11 00:56:29 +00:00
Jack Grigg 34add5589d cargo update
The audit exemptions were adjusted to make best use of the imported
audits.
2023-01-11 00:46:19 +00:00
Greg Pfeil 86c019fdfb
Update overwinter test to not shield to Sprout 2023-01-10 15:22:50 -07:00
Greg Pfeil 1c2a406f32
Use cached sprout addresses rather than funding 2023-01-10 15:22:50 -07:00
Greg Pfeil 1951a1fc46
No longer test_received_sprout 2023-01-10 15:22:49 -07:00
Kris Nuttycombe 8f3083c7f6
Update `mergetoaddress_mixednotes.py` to no longer send to Sprout. 2023-01-10 15:22:49 -07:00
Kris Nuttycombe f31370a15b
Remove wallet_shieldcoinbase_sprout test.
Shielding coinbase outputs to Sprout is no longer supported.
2023-01-10 15:22:49 -07:00
Kris Nuttycombe 819db74cea
Remove mergetoaddress_sprout test as sending to Sprout is no longer supported. 2023-01-10 15:22:49 -07:00
Jack Grigg af92e3f449 qa: Remove audit-as-crates-io for non-third-party crates
We only need these lines when we have a git dependency on our Rust
crates.
2023-01-10 15:21:49 +00:00
Jack Grigg 172ac8516f qa: Import Rust crate audits from Embark Studios 2023-01-10 14:57:04 +00:00
Jack Grigg ea9dab68e4 qa: Import Rust crate audits from the Bytecode Alliance 2023-01-10 14:56:06 +00:00