Commit Graph
20 Commits
Author SHA1 Message Date
Jude Allred 274c5a8ae4 Tidy rpc_errors.py and remove the (as-yet) unused error codes 2026-02-11 14:22:35 -05:00
Jude Allred 5ad6fbb39a Condense tests 2026-02-11 14:10:30 -05:00
Jude Allred 9b40409e86 Narrow PR to only provide structured logs for full_node_rpc_api 2026-02-11 14:09:35 -05:00
Jude Allred c69cb281c4 Test coverage touchups 2026-02-11 13:41:02 -05:00
Jude Allred 05d8276921 Dead code elimination 2026-02-11 13:41:01 -05:00
Jude Allred e128765425 Add code coverage for all RPC errors 2026-02-11 13:41:01 -05:00
Jude Allred 85fc7e329a Add tests entirely for the purpose of increasing code coverage 2026-02-11 13:41:01 -05:00
Jude Allred 8dae5eb20f Update a test funnction name 2026-02-11 13:41:01 -05:00
Jude Allred 28ad73bb80 PR iterations -- Tidy structured error type.
-- rename structuredError.structuredMessage to message
-- remove the legacy 'message' field from structuredError.data, allow the top level 'error' string to preserve that for us.
-- remove the 'originalError' field from structuredError
-- rename structured_errors to rpc_errors
2026-02-11 13:41:00 -05:00
Jude Allred b196d4f2ab Handle an empty error message edge case 2026-02-11 13:41:00 -05:00
Jude Allred 8f11d892ff Use structured RPC errors 2026-02-11 13:40:56 -05:00
Matt HauffandGitHub 40db4635a8 [LABS-245] Enable PEP604 Ruff rules (#20269)
* Enable PEP604 Ruff rules

* Fix harcoded signature in test

* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Richard KissandGitHub a803d18c3b The chia.protocols module no longer depends upon chia.server. (#19636)
<!-- Merging Requirements:
- Please give your PR a title that is release-note friendly
- In order to be merged, you must add the most appropriate category
Label (Added, Changed, Fixed) to your PR
-->
<!-- Explain why this is an improvement (Does this add missing
functionality, improve performance, or reduce complexity?) -->

The modules `chia.protocols` and `chia.server` form a dependency loop.
This change at least removes the direct dependency of `chia.protocols`
on `chia.server`.

### Purpose:

<!-- Does this PR introduce a breaking change? -->

### Current Behavior:

### New Behavior:

<!-- As we aim for complete code coverage, please include details
regarding unit, and regression tests -->

### Testing Notes:

<!-- Attach any visual examples, or supporting evidence (attach any
.gif/video/console output below) -->
2025-05-29 09:24:29 -07:00
Kyle AltendorfandGitHub e446d6b726 use chia_rs directly for sized ints (#19303)
* use chia_rs directly for sized ints

* Update data_layer_rpc_api.py
2025-02-24 14:33:09 -08:00
Kyle AltendorfandGitHub 85c23d4812 avoid set for test parametrization (#19039) 2024-12-13 11:42:11 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>MattKyle Altendorf
29d2eedd3c build(deps): bump ruff from 0.7.1 to 0.8.1 (#18973)
* build(deps): bump ruff from 0.7.1 to 0.8.1

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.1 to 0.8.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.7.1...0.8.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Fix ruff issues

* >-

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matt <quexington@gmail.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-12-04 08:59:18 -07:00
Kyle AltendorfandGitHub f5235c2b5e add /get_log_level, /reset_log_level, and /set_log_level to all rpcs (#18843)
* add `/get_log_level` and `/set_log_level` to all rpcs

* tidy

* for py <3.11

* fixup

* add tests

* a few no covers

* add `RpcClient.reset_log_level()`

* tidy

* fixup
2024-11-14 15:57:18 -07:00
Kyle AltendorfandGitHub 96a8be8f63 fill in missing rpc client methods (#18851)
* fill in missing rpc client methods

* no cover
2024-11-14 08:33:42 -07:00
Kyle AltendorfandGitHub 9c8557a1f8 Remove Python 3.8 support and update source to 3.9 standards (#18687)
* manual python 3.8 removals

* poetry

* pyupgrade

* black

* isort

* manually tidy imports

* work around shadowed type

* catch up build network protocol files for pyupgrade changes

* placate pylint

* re-enable 20.04

* placate flake8
2024-10-16 14:21:15 -07:00
Kyle AltendorfandGitHub a89222a428 move tests (#17209)
* prep

* verify source and installed tests match

* move

* remove move script
2024-03-14 10:19:20 -07:00