Commit Graph

11581 Commits (7fa08a25add0dbca716f09e48dd43eaaa2df7225)

Author SHA1 Message Date
Manuel Montenegro 990aee4440
Add quotes to config file path in literal
Copy-pasting the recommended command "nucypher ursula config migrate..."
results in error when the path of the config file has blank spaces.
2023-10-18 12:18:45 +02:00
derekpierre 7c65de4f1e Use HTTPStatus constant instead of 200. 2023-10-17 20:12:56 -04:00
derekpierre 500dc6ac35 Update show_inactive value to True if specific ritual ids are queried. 2023-10-17 12:42:56 -04:00
derekpierre 7f31a740e2 Add newsfragment for #3290. 2023-10-17 12:36:08 -04:00
derekpierre 9d8f050130 Always include "State", "Active" columns. 2023-10-17 12:32:22 -04:00
derekpierre 187a9c8783 Include Authority and AccessController entries in table output. 2023-10-17 12:26:48 -04:00
derekpierre 55f28b4e61 Add CLI command to list rituals for a specific TACo domain. There is the option to also include inactive ritual information as well. 2023-10-17 12:12:53 -04:00
derekpierre 2b88245e67 Increase decryption timeout. 2023-10-16 16:55:31 -04:00
derekpierre f8cac1df40 Add label to Profiler so that output can be associated with a specific profiler when multiple profilers are used. 2023-10-16 16:55:31 -04:00
derekpierre 95c913c603 Allow worker pool to get larger than the default which is 20. 2023-10-16 16:55:31 -04:00
David Núñez afc27972c1
Merge pull request #3285 from derekpierre/cache-chain-id
Reduce blockchain calls to get chain id
2023-10-16 15:17:25 -05:00
KPrasch d9a96fc6cd
Merge pull request #3284 from nucypher/lynx-gh
Measure decryption time on simple testnet script. Update CI actions.
2023-10-16 18:38:08 +02:00
derekpierre 06321db6a5 Use functools for caching of the property. 2023-10-16 12:02:02 -04:00
derekpierre 62b849180c Add newsfragment for #3285. 2023-10-16 11:53:57 -04:00
derekpierre 97425b162e Reduce calls made by client to get chain id whenever integer returned instead of hex - if integer there were 2 calls, which was unnecessary.
Add test for caching of chain id by EthereumClient object.
2023-10-16 10:53:20 -04:00
derekpierre 9d3fe20ac9 Cache chain id value so that less RPC calls are made to determine chain id - the answer is not going to change; insanity anyone. 2023-10-15 20:10:38 -04:00
derekpierre 78cc17a6af Move Profiler to utilities so that it can be used in other areas of the code eg. other demos etc. 2023-10-14 11:36:59 -04:00
David Núñez 3c6aa918d2
Custom profiler to maximize developer experience 2023-10-14 04:51:57 +02:00
David Núñez ff99346096
Newsfragment for 3284 2023-10-14 04:20:01 +02:00
David Núñez 05395f3acd
Change cron schedule of Lynx script to hourly 2023-10-14 04:19:41 +02:00
derekpierre 8ef255248a
Add env variable to gh action file. 2023-10-14 04:19:11 +02:00
derekpierre 3d9fa8263f Use null context manager to manage collection of statistics or not. 2023-10-13 19:08:47 -04:00
derekpierre 0048b76506 Use env variable to determine whether to collect stats or not.
Use more descriptive variable names.
2023-10-13 18:51:33 -04:00
derekpierre aaa89c730e Add optional python profiling to script and use profiling functionality for lynx workflow job on CI. 2023-10-13 11:49:53 -04:00
Kieran Prasch 2b1c7d6df2 Bump version: 6.2.0-dev → 7.0.0-rc.1 2023-10-13 15:55:43 +02:00
David Núñez bb7e4864c7
Measure decryption time in simple testnet script 2023-10-13 14:33:54 +02:00
David Núñez 2b4fdb1426
CI: switch to dtolnay/rust-toolchain action
actions-rs/toolchain is no longer maintained, and repo is archived.

See https://github.com/actions-rs/toolchain/issues/216
2023-10-13 14:12:57 +02:00
David Núñez a41cb033fa
CI: bump actions/checkout to v4 2023-10-13 14:11:20 +02:00
LunarBytes 3486242f9b
Merge pull request #3282 from derekpierre/too-eager-config
UrsulaConfiguration logic was too eager to connect to provided endpoints
2023-10-13 13:08:59 +02:00
derekpierre 8e73577d01 Add newsfragment for #3282. 2023-10-12 16:13:28 -04:00
derekpierre 9d393cbc67 Connecting to endpoints was too eager with respect to the configuration object - the issue being that because connections are made, if the endpoint is faulty then the endpoint configuration can't be modified. 2023-10-12 15:59:10 -04:00
LunarBytes b73142a4d0
Merge pull request #3274 from nucypher/lynx-gh
Running Lynx simple example as a GH action
2023-10-12 18:35:55 +02:00
Derek Pierre 522480247f
Merge pull request #3279 from derekpierre/expired-ritual
Nodes should reject decryption requests for expired rituals
2023-10-11 19:01:39 -04:00
derekpierre fa044c460d Update comment now that ritual number has changed. 2023-10-11 08:28:41 -04:00
David Núñez dbba3bfd59
Merge pull request #3272 from derekpierre/bad-cache
Fix inconsistent python dependency updates when cached dependencies used
2023-10-11 07:30:15 +02:00
derekpierre 88bfd34ba8 Update example scripts to use ritual id 3 on lynx instead of 1 which is already expired. 2023-10-10 12:08:12 -04:00
derekpierre 900ebc7c23 Add newsfragment for #3279. 2023-10-10 11:31:22 -04:00
derekpierre 05aff5203c Add integration test for decryption failure cases: unauthorized encryption, expired ritual.
Better scope test exception by using match for exception messages.
2023-10-10 11:27:22 -04:00
derekpierre 0c217680a2 Check whether ritual is expired before processing decryption request. 2023-10-10 09:12:29 -04:00
David Núñez 924891dc7e
Bypass cached dependencies (WIP)
See https://github.com/nucypher/nucypher/pull/3272
2023-10-10 10:37:29 +02:00
David Núñez 15895e3529
Funny thing, vars are not accessible either. Let's hardcode them for the moment
That's a bit lame, Github.

For readers, see https://github.com/orgs/community/discussions/44322
2023-10-10 10:37:29 +02:00
David Núñez 4285137026
Actually, no, use GH variables instead of GH secrets
GH secrets are not accessible to workflows triggered by PRs from forks, which doesn't work with how we work. Lets use variables instead, with the caveat that these are public now. Not a problem since we configured in such a way that they only work for Lynx contracts.
2023-10-10 10:37:29 +02:00
David Núñez 0b93dd6ecb
Use GH environment secrets to pass endpoint URIs 2023-10-10 10:37:29 +02:00
David Núñez 87d25d8158
Newsfragment for 3274 2023-10-10 10:37:29 +02:00
David Núñez 5c987f1372
First pass at a simple GH action that runs a lynx encryption/decryption 2023-10-10 10:35:33 +02:00
David Núñez b217542992
Update ruff GH workflow to remove warning 2023-10-10 10:35:33 +02:00
David Núñez 3ec0508aa3
Add final assertion to testnet example to determine if script worked 2023-10-10 10:35:33 +02:00
LunarBytes ff383dc663
Merge pull request #3278 from KPrasch/development
Support ethereum/sepolia as a condition evaluation blockchain
2023-10-06 21:22:02 +02:00
derekpierre c9b417271a Add unit test to verify all domain chains are supported as condition chains. 2023-10-06 15:20:45 -04:00
Kieran Prasch 27fca8adbf Support ethereum/sepolia as a condition evaluation blockchain 2023-10-06 21:14:48 +02:00