instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
runziggurat__zcash__17
runziggurat/zcash
17
defect
c6b9045c7a5fa63a45f7cdb5eec9868e84b56e40
6841af036d9f1ddf8e9edc90f21aa18182da86d5
Node start signalling
This PR abstracts node start signalling through a peer connection. Note the address from the `Config` still needs to be passed in at this stage.
diff --git a/src/setup/config.rs b/src/setup/config.rs index 50576e41..214add17 100644 --- a/src/setup/config.rs +++ b/src/setup/config.rs @@ -66,6 +66,9 @@ pub(super) struct NodeConfig { pub(super) max_peers: usize, /// Setting this option to true will enable node logging to stdout. pub(super) log_to_st...
1
1
0
[{"id": "G0", "claim": "The method name `signal_when_started` should be renamed to something that better describes that `start` blocks until an initial connection signal has been received, e.g. `block_until_connected` or `wait_until_connected`.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
runziggurat__zcash__25
runziggurat/zcash
25
defect
8428cff9a8727b04c92c865e9573d9920628c104
4cd2a9d0f247572ee4e0d7f320f35f39c5d1428a
feat/conformance 013
I know we said not to add many peers, but I ended up writing it as a loop (was shorter codewise) so simply a matter of setting N.
diff --git a/src/protocol/payload/addr.rs b/src/protocol/payload/addr.rs index ff7642dc..071de0ed 100644 --- a/src/protocol/payload/addr.rs +++ b/src/protocol/payload/addr.rs @@ -49,14 +49,19 @@ impl Addr { Ok(Self { count, addrs }) } + + /// Returns an iterator over its list of [NetworkAddr]'s + ...
2
2
1
[{"id": "G0", "claim": "The test should not call `.log_to_stdout(true)` when starting the node; the reviewer's empty suggestion asks for that line to be deleted.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added correctly_lists_peers confor...
null
runziggurat__zcash__29
runziggurat/zcash
29
defect
520280cbf865487efb5df4626f4b27647c14b494
349296267242f86027c8bda96b8ac039303fb586
test: resistance-001/002
This PR introduces the first fuzz test cases. Included: - resistance-001 for all types of payloads, - resistance-002 for all types of payloads, - adjusts `Message` and `MessageHeader` to allow encoding/decoding without writing to stream. - introduces various helpers for fuzzing payload creation
diff --git a/README.md b/README.md index 66ab0613..0298838c 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,8 @@ Quick overview of the current status, providing implementation progress and test | Resistance | Additional Information | | :--------- | :--------------------- | -| [![resis_001](https://img.shields.i...
1
1
1
[{"id": "G0", "claim": "It may be necessary to store the RNG seed for each trial and/or the message contents required to reproduce a failure, since each fuzzing run is unique.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
runziggurat__zcash__3
runziggurat/zcash
3
defect
483a968726af09331e169f80b2f82a76423ef526
af03d86256267df3cefd8569f1450957eda789b2
feat/message filter
Adds the `MessageFilter` and the `unsolicitation_listener` test case. I added quite a bit of docs to the `MessageFilter` - mostly as an exercise to learn Rust docs.
diff --git a/src/protocol/message.rs b/src/protocol/message.rs index 67c6be5e..99e03316 100644 --- a/src/protocol/message.rs +++ b/src/protocol/message.rs @@ -66,6 +66,7 @@ impl MessageHeader { } } +#[derive(Debug)] pub enum Message { Version(Version), Verack, @@ -179,3 +180,187 @@ fn checksum(bytes:...
4
2
0
[{"id": "G0", "claim": "The new unsolicitation_listener conformance test is not part of the index, so it may want to be ignored by default with #[ignore].", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reply method needlessly assigns the match resul...
null
runziggurat__zcash__33
runziggurat/zcash
33
defect
9843485a3ab0b64b92abc0ee72595d8954edf8f0
c58cc5fe7f7a34bdcad674547023df72e0259bce
ref: seedable RNG for fuzz test reproducability
Follow up to #29. Replaces the RNG with the seedable `ChaCha8Rng`. This makes the tests reproducable.
diff --git a/Cargo.toml b/Cargo.toml index 13f9d280..6bb8660d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ chrono = "0.4" hex = "0.4.3" lazy_static = "1.4.0" rand = "0.8.3" +rand_chacha = "0.3.0" sha2 = "0.9.3" toml = "0.5.8" diff --git a/src/tests/resistance/fuzzing.rs b/src/tests/resistance/fuzzi...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the RNG doc note: \"makes the use of one\" should read \"makes use of one\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
runziggurat__zcash__35
runziggurat/zcash
35
defect
adf1d59dbcc1ac47ae72576f92cca52e2e907291
2762a74b20926495788b234c7a6427a45455317b
test: resistance-005
Some cases are tbd as they require more in-depth investigations.
diff --git a/README.md b/README.md index 05a17278..842734db 100644 --- a/README.md +++ b/README.md @@ -99,5 +99,5 @@ Quick overview of the current status, providing implementation progress and test | [![resis_002](https://img.shields.io/badge/002-████████░░-red)](SPEC.md#ZG-RESISTANCE-002)| :warning: Need to confirm e...
1
1
1
[{"id": "G0", "claim": "The fuzzing tests should also add variants with non-empty message contents (where an element within the message is corrupted) instead of only empty ones.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
runziggurat__zcash__36
runziggurat/zcash
36
defect
8965ea2aed8b6b43e9ba21637f35f51a1f95bbd4
1481a1fc667721c70439192ba6fdd772190c762c
Add action to seed node with genesis blocks on startup
Refactors the `node.wait_for_connection` to `node.initial_action(Action)` where `Action` can be one of 1. None 2. Wait for connection 3. Seed with genesis blocks One alternative is to create a helper function instead. I decided it would be better to have it as part of the node startup since the procedure requir...
diff --git a/src/protocol/payload/block.rs b/src/protocol/payload/block.rs index 17c07ba8..00aa6f6a 100644 --- a/src/protocol/payload/block.rs +++ b/src/protocol/payload/block.rs @@ -10,8 +10,8 @@ use sha2::Digest; #[derive(Debug)] pub struct LocatorHashes { version: ProtocolVersion, - block_locator_hashes: V...
4
3
0
[{"id": "G0", "claim": "The three new Block constructors (genesis_0, genesis_1, genesis_2) should be renamed to testnet-based names (testnet_genesis, testnet_1, testnet_2) since they build blocks from the testnet chain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
runziggurat__zcash__38
runziggurat/zcash
38
defect
606783b2b3e43a72f9e6a534f913ac02bf7d0cd9
892553151713cb084a7d5d007633611c60379e16
conformance 017
Adds testing for `GetData(blocks)`. I could not `GetData(tx)` to function, so I've not added it. Clearly something I don't understand how its intended to be used. In addition I've refactored the node block seeding to allow specifying number of blocks one wants seeded. Use case: seed only two blocks and then use ...
diff --git a/README.md b/README.md index 6d8efe65..5efb14da 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Quick overview of the current status, providing implementation progress and test | [![conf_014](https://img.shields.io/badge/014-░░░░░░░░░░-inactive)](SPEC.md#ZG-CONFORMANCE-014)| | [![conf_015](https:...
2
1
0
[{"id": "G0", "claim": "The doc comments on the enum variants should be intra-doc linked to the enum fields, which the author wanted but could not figure out the syntax for.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The zcashd comment should be...
null
runziggurat__zcash__40
runziggurat/zcash
40
defect
adf1d59dbcc1ac47ae72576f92cca52e2e907291
08d1de2fe634b17e0a92a00a5bda287504add41f
ref: remove docker configuration support
This PR: - removes docker configuration (see readme for new format), - removes `read_config_file` (absracted), - changes `initial_peers` to accept full addresses instead of just the port, - exposes `config::new_local_addr` as a convenience function, - introduces constants for configuration file names.
diff --git a/README.md b/README.md index 05a17278..629ed2a9 100644 --- a/README.md +++ b/README.md @@ -21,40 +21,21 @@ and [zebra](https://github.com/ZcashFoundation/zebra) devs with this reliable fo Ziggurat is configured with a `config.toml` file in the root. ```toml -[node] kind = "zebra" path = "path/to/zebra...
1
1
0
[{"id": "G0", "claim": "Remove the '// ZCASHD CONFIG FILE' comment the PR adds above ZcashdConfigFile, since it literally restates the struct's purpose.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
runziggurat__zcash__46
runziggurat/zcash
46
defect
42210a6b7f281a7c4e07efc3111e8d6180b6c946
c9944c4d6a6a2dfce18a10da76625c2dceba147c
conformance 008
The bloom filter messages still get flagged as Malformed by zcashd. *shrugs*
diff --git a/README.md b/README.md index 55f70397..78210ddd 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Quick overview of the current status, providing implementation progress and test | [![conf_005](https://img.shields.io/badge/005-█████░░░░░-red) ](SPEC.md#ZG-CONFORMANCE-005)| :warning: Need to conf...
4
4
2
[{"id": "G0", "claim": "The Default impls for FilterLoad and FilterAdd should use `0`/empty values representing an empty filter (hash_fn_count 0, tweak 0, empty vec) instead of the arbitrary 47/4/123 values, and probably should not pre-allocate a fixed length (perhaps a `with_capacity` instead).", "category": "design",...
null
runziggurat__zcash__48
runziggurat/zcash
48
defect
e5511660e943accdd201f53ddb0f95b4bacdccf5
c5198ec72cb70a34c0c2dacdc31e60bae3fad709
conformance test 011
Note that the test case for `Addr` without a timestamp cannot be run with the code as is. This is due to the test case basically requiring a malformed struct which `encode` rejects / panics on.
diff --git a/README.md b/README.md index 876d92f6..6702600f 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Quick overview of the current status, providing implementation progress and test | [![conf_008](https://img.shields.io/badge/008-██████████-red) ](SPEC.md#ZG-CONFORMANCE-008)| :warning: Need to conf...
2
1
1
[{"id": "G0", "claim": "The node under test probably does not disconnect for the trivial issues covered by this conformance test.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `Ping` timeout test case, which waits on a 120-second timeout that i...
null
runziggurat__zcash__5
runziggurat/zcash
5
defect
e587cc47119aadd7f100ac4a51afcbafc90f0f64
acc38d9409ccf4c78ef298a69fb7cebc43a01ce2
feat/conformance 004
I took a stab at conformance test case 004. I think I've managed to come up with a strategy that neatly tests all the cases without arbitrary sleeps etc.
diff --git a/src/setup/config.rs b/src/setup/config.rs index 2d728b39..50576e41 100644 --- a/src/setup/config.rs +++ b/src/setup/config.rs @@ -80,7 +80,7 @@ impl NodeConfig { } /// Describes the node kind, currently supports the two known variants. -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Debug, Clone,...
5
5
1
[{"id": "G0", "claim": "The conformance tests should be named so the names indicate what they are testing (with the spec ID commented underneath) instead of the generic `conformance_004`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test n...
null
runziggurat__zcash__50
runziggurat/zcash
50
defect
978baf510db69ea08b9313e5b763fb6337bbef70
a4fab8bcdd7297576e5a67722dcb3b3d8eeb90bb
Added resistance test cases 003 and 004
I still need to implement the missing message types. Thought I'd first get it on par with the rest before we add / refactor the rest of the message types.
diff --git a/README.md b/README.md index 6702600f..5dc5aed8 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Quick overview of the current status, providing implementation progress and test | :--------- | :--------------------- | | [![resis_001](https://img.shields.io/badge/001-████████░░-red)](SPEC.md#ZG-RES...
8
6
1
[{"id": "G0", "claim": "The author is unsure whether sharing one rng through an async mutex across concurrent peer futures is done correctly, and asks if there is a better way of structuring it.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Version::t...
null
runziggurat__zcash__6
runziggurat/zcash
6
defect
f33491669167741086c68d438fb04182e26663c9
04ced01df0e18a29fffddd2768aee396f80396d6
Improve node startup and handshake
This PR: - introduces a `helpers` module to be used for general test heper code until we find a better structure for it, - relies on peer connection to signal node startup completion (could be further improved, for now this is done manually in tests), - introduces the `wait_until!` macro—useful for message filtering...
diff --git a/src/helpers.rs b/src/helpers.rs new file mode 100644 index 00000000..ff3aca81 --- /dev/null +++ b/src/helpers.rs @@ -0,0 +1,76 @@ +use crate::protocol::{message::Message, payload::Version}; + +use tokio::{ + io, + net::{TcpListener, TcpStream}, +}; + +use std::net::SocketAddr; + +/// Waits until an e...
2
2
0
[{"id": "G0", "claim": "The ping-pong test's wait_until! should also check that the nonce of the received Pong matches the nonce sent in the Ping.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The names of the helper functions (handshake / handshaken_p...
null
runziggurat__zcash__61
runziggurat/zcash
61
defect
715797212c8d1e060dc46c7d0a4c633eaa1e777d
bfc18bb9cca664da63819cb5ae1c6763a6ab2cd5
test overhaul
- fresh test run of latest zebra / zcashd - update the result comments - improve readme test table with finer granularity - minor fixes
diff --git a/README.md b/README.md index a039eaa8..6c0cf605 100644 --- a/README.md +++ b/README.md @@ -42,43 +42,99 @@ When starting the node, this information and the configuration provided in the t Ziggurat currently uses rust's standard test runner, a simple `cargo test -- --test-threads=1` should suffice. We use...
2
2
0
[{"id": "G0", "claim": "README's new Test Status section should add a quick legend saying a tic is a passing test, a cross is failing, and a dash is unimplemented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conformance test comment about z...
null
runziggurat__zcash__62
runziggurat/zcash
62
defect
57002f79a37a3bf2d17ea633e7ea4e0a164a46d4
a44f08632a3c3c4c6e4408a36ad43e756d554c73
resistance 006
This is not quite what you had in mind, but since it took some effort I thought I'd rather you look at it. A lot of the code is just stats related, the core of it is simply Spin up N concurrent peers, which 1. send 100 requests, and validate the reply 2. send a corrupt message, and check the node's reaction ...
diff --git a/src/helpers/mod.rs b/src/helpers/mod.rs index 080dd307..ef59c066 100644 --- a/src/helpers/mod.rs +++ b/src/helpers/mod.rs @@ -97,6 +97,16 @@ pub fn is_termination_error(err: &std::io::Error) -> bool { ) } +// Returns true if the error kind is one that indicates that the connection has +// been reje...
6
2
0
[{"id": "G0", "claim": "The new test should also be run against the new zebra seeding (it currently only works for zcashd).", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"Max active\" stat column is unclear (it is lower than the peer count in some...
null
runziggurat__zcash__64
runziggurat/zcash
64
defect
57002f79a37a3bf2d17ea633e7ea4e0a164a46d4
dc65d41ea0903bdcc93a712eaaa8380d5ee1ef3d
ref: handshake tests with synthetic nodes
Note: both `zcashd` and `zebra` only close their write half of the connection and don't fully drop the socket when a disconnect is expected (pea2pea doesn't detect the stream close at time of writing: https://github.com/ljedrz/pea2pea/issues/5). The previous version of the tests detected a disconnect because we were us...
diff --git a/Cargo.toml b/Cargo.toml index 4481d342..603e21f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ histogram = "0.6.9" home = "0.5.3" lazy_static = "1.4.0" parking_lot = "0.11.1" -pea2pea = "0.20.1" +pea2pea = "0.20.2" rand = "0.8.3" rand_chacha = "0.3.0" sha2 = "0.9.3" @@ -30,5 +30,7 @@ fea...
2
2
1
[{"id": "G0", "claim": "The comment above the buffer-length check should read 'announced message length' instead of 'announce message lenght'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The Verack entry added to test_messages in the ignore_n...
null
runziggurat__zcash__69
runziggurat/zcash
69
defect
1b3d50bd7bcb94d1e4e15b7e37c28857dfd98b7e
9a029c36c7781042c549e46d214ee6a71ed21a29
ref: conformance tests with synthetic nodes
Refactors the conformance tests with the pea2pea backed peers. Also includes: - `tracing` additions to `SyntheticNode::process_message` - refactored the initial node actions to use a synthetic peer - removed some dead code
diff --git a/Cargo.toml b/Cargo.toml index bc00985b..391a2010 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,10 @@ features = [ "derive" ] version = "1" features = [ "full" ] +[dependencies.tracing] +version = "0.1" +default-features = false + [dependencies.tracing-subscriber] version = "0.2.18" features ...
7
7
0
[{"id": "G0", "claim": "Use the TIMEOUT constant instead of the hard-coded literal 10 in the wait_until! call for Action::WaitForConnection.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining why assert_ping_pong is called t...
null
runziggurat__zcash__72
runziggurat/zcash
72
defect
a51c248fd6376f28da059ee44fb22f638e815008
dc39d4c7a079cc6db094af64590e32158b4d4818
refactor: synthetic node
#71 minus the fuzz test changes. Performance and conformance tests now use the SyntheticNode. Includes some API improvements.
diff --git a/src/helpers/mod.rs b/src/helpers/mod.rs index b1d316ef..59c1be2f 100644 --- a/src/helpers/mod.rs +++ b/src/helpers/mod.rs @@ -14,7 +14,7 @@ use tokio::{ use std::{net::SocketAddr, time::Duration}; // Default timeout for connection reads in seconds. -pub const TIMEOUT: u64 = 10; +pub const TIMEOUT: Dura...
5
4
1
[{"id": "G0", "claim": "In build_n, the `nodes` and `addrs` vectors could be constructed in a single loop instead of collecting the addresses in a second pass over the built nodes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In wait_for_conne...
null
runziggurat__zcash__76
runziggurat/zcash
76
defect
b27c124719836a1ca7f3048349c1ab6ffbf9f8d4
6663c8a3a4ee9428c0149b9da29eab37c3118c92
refactor: performance tests
Simplification and renaming of performance tests, and updated results to our target versions.
diff --git a/Cargo.toml b/Cargo.toml index a06fce3b..fa151aa7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ pea2pea = "0.20.3" rand = "0.8.3" rand_chacha = "0.3.0" sha2 = "0.9.3" -tabled = "0.1.4" +tabled = "0.2.1" toml = "0.5.8" [dependencies.serde] diff --git a/README.md b/README.md index 6a52c907...
2
2
0
[{"id": "G0", "claim": "The doc comment on fmt_table links to `(Style)` with a todo marker instead of linking to the external tabled crate's Style::pseudo function, and niklaslong suggested a plain markdown link to the docs.rs URL.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
runziggurat__zcash__78
runziggurat/zcash
78
defect
933370f987cb3f711291556d02dd8f2d064d1392
ca19181fc6da8ea32d705d6a3fb5d131d091db5d
Improve setup code error handling
Removes `unwrap` in various `Node` functions in favour of returning an `io::Result`. Also renames `message::io` -> `message::stream_io` for clarity.
diff --git a/src/protocol/message/mod.rs b/src/protocol/message/mod.rs index cb7d123e..619899ac 100644 --- a/src/protocol/message/mod.rs +++ b/src/protocol/message/mod.rs @@ -2,7 +2,7 @@ pub mod constants; #[doc(hidden)] -pub mod io; +pub mod stream_io; use crate::protocol::{ message::constants::*, @@ -15,7...
1
1
0
[{"id": "G0", "claim": "A search-and-replace typo garbled the comment on the added line in src/tools/synthetic_node.rs, turning 'results in' into 'io::Results in'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
runziggurat__zcash__88
runziggurat/zcash
88
defect
2c1bda360500090d9f857ea32c7dcb11816b4334
2d53e37585f6a0111405f68392f1690f1b77fd9d
feat: add more testnet vectors
Adds testnet vectors 3 through 10. Tests have been updated to use these where applicable. Small standardization of testnet vector bytes to make the larger heights more legible.
diff --git a/src/protocol/payload/block.rs b/src/protocol/payload/block.rs index 90623105..554962d3 100644 --- a/src/protocol/payload/block.rs +++ b/src/protocol/payload/block.rs @@ -80,30 +80,86 @@ impl Block { self.header.double_sha256() } - /// Creates the first block on the testnet chain. + //...
1
1
0
[{"id": "G0", "claim": "The new testnet vectors 3-10 should also be checked by the block roundtrip tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
runziggurat__zcash__96
runziggurat/zcash
96
defect
4acc99448583f44d3bc820579c674e866924fea7
7a2df79359dd8f352275510c9cacb0c1f96d1c8b
refactor: split basic query tests
Includes adding a custom error type for `ping_pong_timeout` which improves the ability of tests to check the node's response to a prior query.
diff --git a/src/tests/conformance/basic_query.rs b/src/tests/conformance/basic_query.rs new file mode 100644 index 00000000..f3ee5fd1 --- /dev/null +++ b/src/tests/conformance/basic_query.rs @@ -0,0 +1,262 @@ +//! Contains test cases which cover ZG-CONFORMANCE-010 +//! +//! The node responds with the correct messages....
4
4
0
[{"id": "G0", "claim": "The doc link for `SyntheticNode::ping_pong_timeout` should not include trailing parentheses.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `[Ping]` and `[Pong]` links in the PingPongError variant docs (and the same pat...
null
runziggurat__zcash__98
runziggurat/zcash
98
defect
243ca9dfd72ca132bc20ab4427d882f152a830f7
7d6bb470040996d49891a817d74d67e806c9d1b5
refactor: invalid message disconnection tests
- moved the peering related tests - moved and split the disconnect for trivial cases tests - added disconnect test for `Addr` with missing timestamp - added disconnect test for `Ping` timeout (`#[ignore]`) - added `Message::short_string()` - useful to not spam the terminal full of debug noise The two added tests...
diff --git a/src/protocol/message/mod.rs b/src/protocol/message/mod.rs index 619899ac..e5781fa4 100644 --- a/src/protocol/message/mod.rs +++ b/src/protocol/message/mod.rs @@ -192,6 +192,32 @@ impl Message { Ok(message) } + + /// Returns a short string describing at least the message type. + /// Sh...
3
3
1
[{"id": "G0", "claim": "The #[ignore]d ping-timeout conformance test clashes with the CI test run, and the reviewer asks for suggestions on how to keep the test without that clash (leaning towards a more specific CI invocation).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
runziggurat__zcash__99
runziggurat/zcash
99
defect
d12cf1ecd33cc80a1106c54bcf3b0d530a6efa4a
7e5f3b9864c768869df17b8c87c2b1799a94b22a
refactor: conformance get_block tests
- Moved the remaining message conformance tests into separate files - Split the conformance get_blocks tests into sub-cases - Added a bunch more sub-cases
diff --git a/README.md b/README.md index 6f450048..fea892fd 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ These results were obtained by running the test suite against [ZCashd v4.4.1](ht | [012](SPEC.md#ZG-CONFORMANCE-012) | ✖ | ✖ | ⚠ zcashd peering issues, zebra passes under certain conditions ...
4
4
1
[{"id": "G0", "claim": "The get_blocks test cases repeat an identical body and could be deduplicated, since the block index is the only thing that changes between them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In get_data.rs the loop varia...
null
rusoto__rusoto__1018
rusoto/rusoto
1,018
defect
b638f1b294d0156ab5e8d4e764c22c2899678d6b
9d789de08aaf504c8b7996f6d3a00c3b43ccfac8
rebase PR #799 "Implement helper for S3 presigned urls"
I rebased the PR of https://github.com/rusoto/rusoto/pull/799 to the latest master. This works, but you can only use GET, contrary to the name of `generate_presigned_url`. PUT and DELETE methods should also correspond.
diff --git a/integration_tests/tests/s3.rs b/integration_tests/tests/s3.rs index 1e16e644951..a1e32f101cc 100644 --- a/integration_tests/tests/s3.rs +++ b/integration_tests/tests/s3.rs @@ -14,6 +14,9 @@ use time::get_time; use futures::{Future, Stream}; use rusoto_core::Region; +use rusoto_core::ProvideAwsCredentia...
13
11
5
[{"id": "G0", "claim": "The doc comment on generate_presigned_url (\"The request has to be signed *before* calling presigned_url\") needs more verbosity/clarification, and the reviewer asks whether sign should instead be called inside generate_presigned_url.", "category": "documentation", "verdict": "supported", "prior...
null
rusoto__rusoto__1078
rusoto/rusoto
1,078
defect
fc823bce369814ab8867c6c9b2d8dd3f5daaa0d2
e9096b81c0f928ccb41620a231a5cea4e6c47bce
fix presigned url exipres option bug
My previous PR https://github.com/rusoto/rusoto/pull/1018 had the [bug](https://github.com/rusoto/rusoto/pull/1018/files#r199422068) that cannot set expiration time. This PR fix that.
diff --git a/integration_tests/tests/s3.rs b/integration_tests/tests/s3.rs index c4965eee4a2..4799e2bd1b3 100644 --- a/integration_tests/tests/s3.rs +++ b/integration_tests/tests/s3.rs @@ -19,7 +19,7 @@ use futures_fs::FsPool; use rusoto_core::Region; use rusoto_core::ProvideAwsCredentials; use rusoto_core::credenti...
3
3
1
[{"id": "G0", "claim": "The expired-presigned-url test should probably wait longer than one second before making the request, in case the client or server clock is a bit skewed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new expired-presigned-ur...
null
rusoto__rusoto__1110
rusoto/rusoto
1,110
defect
cce64c7d40ff52bbe3bf8af3a7187a5bd6fe6f8c
83b6a3081d536b31579fdcf1a577d8e994bf84a4
Make Sts provides Send for Ec2Client::new_with
Fixes #1102 following @srijs's instructions [here](https://github.com/rusoto/rusoto/issues/1102#issuecomment-416513373).
diff --git a/integration_tests/tests/sts.rs b/integration_tests/tests/sts.rs index d3136cb795c..5473b0eb567 100644 --- a/integration_tests/tests/sts.rs +++ b/integration_tests/tests/sts.rs @@ -3,14 +3,17 @@ extern crate futures; extern crate rusoto_core; extern crate rusoto_sts; +extern crate rusoto_ec2; use futu...
1
1
1
[{"id": "G0", "claim": "The new test code passes a moved `sts` client to StsAssumeRoleSessionCredentialsProvider; it should create a new StsClient for this part of the test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
rusoto__rusoto__1211
rusoto/rusoto
1,211
defect
c0e885a8afb144721c593efd9fde8eb92f482ca0
3295531d443afde7b538d707ff7deb94b54830ca
Skip serializing blobs when they are Option::None
At present: ```rust use rusoto_dynamodb::AttributeValue; AttributeValue{ bool: Some(true, ..Default::default() } // serializes as {"B":null,"BOOL":true} AttributeValue{ n: Some("1234".to_string()), ..Default::default() } // serializes as {"B":null,"N":"1234"} AttributeValue{ s: Some("foo".to_string()), ....
diff --git a/CHANGELOG.md b/CHANGELOG.md index 10790e5f826..d27b5b18d83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Add Connect service - Add MediaTailor support - Add ByteStream struct to core +- Skip serializing blobs when they are `Option::None` ## [0.35.0] - 2018-10-31 diff --git a/rusoto...
1
1
0
[{"id": "G0", "claim": "The new `if` condition coupling blob shape type with required-ness should be restructured so a single `if !shape.required(member_name)` outside the shape-type block adds `#[serde(skip_serializing_if=\"Option::is_none\")]` regardless of shape type.", "category": "design", "verdict": "supported", ...
null
rusoto__rusoto__1304
rusoto/rusoto
1,304
defect
d987ac1f396106a9cb0c19bd4b415f6b2a1b3fea
8dfa73f7297b085089b3ff0455b86169ee6a3dcf
integration tests for newer services
### Please help keep the CHANGELOG up to date by providing a one sentence summary of your change: this is a quick followup to https://github.com/rusoto/rusoto/pull/1296 adding from what I gather what mvps for smoke testing clients of the new services note that the api gateway management api is a bit unique in tha...
diff --git a/integration_tests/Cargo.toml b/integration_tests/Cargo.toml index f91f267c76c..c518b2922aa 100644 --- a/integration_tests/Cargo.toml +++ b/integration_tests/Cargo.toml @@ -575,6 +575,22 @@ path = "../rusoto/services/workspaces" optional = true path = "../rusoto/services/xray" +[dependencies.rusoto_ampl...
2
2
1
[{"id": "G0", "claim": "The new dependency entries in integration_tests/Cargo.toml are appended after xray instead of alphabetically, and the reviewer asks whether a possible follow-up refactoring of the file could include alphabetizing it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
rusoto__rusoto__1464
rusoto/rusoto
1,464
defect
a63cb7ac40e232ba4581252556f3c109444ec8fc
399b2556a8f50f30f1f0bb642002b7392c623315
Deserialize PostTextResponse correctly by allowing null values in the slots field
### Please help keep the CHANGELOG up to date by providing a one sentence summary of your change: Deserialize PostTextResponse correctly by allowing null values in the slots field. Fixes #1068.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 023c1809568..32af965c0d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ (Please put changes here) +- Deserialize PostTextResponse correctly by allowing null values in the slots field + ## [0.40.0] - 2019-06-28 - Only emit types used in service during...
2
1
1
[{"id": "G0", "claim": "The change will have to be made in the code generation crate (service_crategen codegen) rather than only in the checked-in generated.rs, so it sticks between builds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer...
null
rusoto__rusoto__1505
rusoto/rusoto
1,505
defect
e5b548499202974ebe0940f69b1c43b7b53887b8
d3eafcda60acf8b4c067f216b118aea2070c10ae
Refactor S3 integration tests
### Please help keep the CHANGELOG up to date by providing a one sentence summary of your change: Refactor S3 integration tests to have about a #[test] per behavior. Fixes #1408
diff --git a/CHANGELOG.md b/CHANGELOG.md index 45c2d012c0a..db3b21382a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Fix Profile Config Loading should ignore comments with '=' chars - Add App Mesh service - Fix service_crategen to parse operations with multiple static params +- Refactor S3 integr...
4
4
0
[{"id": "G0", "claim": "The test functions should consistently use println! for output instead of info! logging calls, with init_logging kept available for digging into the HTTP request/response when debugging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
rusoto__rusoto__1566
rusoto/rusoto
1,566
defect
4b9cced4d67917f0168c0c48eddc91fa57ca5de9
c4a230b412e647df89e52d4a7349dfa60b64f5c3
Anonymous credentials support
Closes #1286. I do not have an AWS account, but I tested this with with the Internet Archive's S3 API. That is my use case, and the reason I wrote this.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 65fea0d5f24..e48aee7727d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ params for s3 `list_objects` methods - Add SecurityHub service - Add Transfer service - Introducing `rusoto_signature`, a standalone crate for signing HTTP requests. +- Add anonymous...
4
4
3
[{"id": "G0", "claim": "Anonymous credentials should not be handled by panicking inside service code paths; instead anonymity should be represented by empty-value sentinel credentials on the static provider, with the signer using that to skip the signing process.", "category": "design", "verdict": "supported", "priorit...
null
rusoto__rusoto__1591
rusoto/rusoto
1,591
defect
081d70bb721e65799e34d4892ed4f79cd748d0d3
fec5c8a5109b83ece3af524d506298f2b8bc7993
Fix SNS API's attributes and value keyword
for https://github.com/rusoto/rusoto/issues/1243 check script: https://gist.github.com/hhatto/feb0132f62f0df53b43bad0f79112b59
diff --git a/rusoto/services/sns/src/generated.rs b/rusoto/services/sns/src/generated.rs index 6562ad93e3f..92a71a59d9d 100644 --- a/rusoto/services/sns/src/generated.rs +++ b/rusoto/services/sns/src/generated.rs @@ -285,7 +285,7 @@ impl CreatePlatformApplicationInputSerializer { MapStringToStringSerializer:...
2
2
1
[{"id": "G0", "claim": "Add an integration test for SNS so that errors like these can be caught in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update the CHANGELOG describing the fix, placing the entry under the line `(Please put changes ...
null
rusoto__rusoto__386
rusoto/rusoto
386
defect
3251f1e4e94f8de61b6de716634772a088978569
341e7d3a6c18dd54e06df13e25e4c26de2c3bc27
Convert first character of locationName to uppercase when serializing.
Per botocore issue 1035, the EC2 query protocol requires an uppercase starting letter for locationName but the botocore model locationName starts with a lowercase letter. Fixes #383 and #387 .
diff --git a/codegen/src/generator/ec2.rs b/codegen/src/generator/ec2.rs index 1fd5e09f72a..07629669df6 100644 --- a/codegen/src/generator/ec2.rs +++ b/codegen/src/generator/ec2.rs @@ -1,6 +1,7 @@ use inflector::Inflector; use botocore::{Member, Operation, Service, Shape, ShapeType}; +use generator::utils::capitali...
4
4
1
[{"id": "G0", "claim": "The struct literals in the new ec2 tests should be indented in the project's typical Rust style for consistency with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "tag_name for required fields is...
null
rusoto__rusoto__651
rusoto/rusoto
651
defect
0a5ec16f7a085422dd303c8c4941f796003eaffe
a527e1955b239d6121ac22036385afa07c0f8ae9
Brings back SQS roundtrip test.
Fixes https://github.com/rusoto/rusoto/issues/616 . It's also providing a repro for https://github.com/rusoto/rusoto/issues/586 .
diff --git a/Cargo.toml b/Cargo.toml index d718a04ded6..135f339f4cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -309,7 +309,7 @@ env_logger = "0.4.0" hyper = "0.10.0" log = "0.3.6" rand = "^0.3.14" -time = "0.1.35" +time = "0.1.37" [features] all = [ diff --git a/rusoto/services/sdb/src/generated.rs b/rusoto/ser...
1
1
0
[{"id": "G0", "claim": "In generate_list_serializer, the `Some(_)` match arm discards the actual value of `shape.flattened`; it should use the defined value when present instead of always treating it as flattened.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
rusoto__rusoto__683
rusoto/rusoto
683
defect
8456766c422cef3e43c53c1fecd84382ba5e6e63
462be87f854723418fab443a85dbc7cc4c142399
Add `encode_key` helper to encode keys on S3 copy
Fixes #630
diff --git a/integration_tests/tests/s3.rs b/integration_tests/tests/s3.rs index 674de0000a9..ea2011488dc 100644 --- a/integration_tests/tests/s3.rs +++ b/integration_tests/tests/s3.rs @@ -34,6 +34,7 @@ fn test_all_the_things() { let test_bucket = format!("rusoto_test_bucket_{}", get_time().sec); let filena...
2
2
1
[{"id": "G0", "claim": "An integration test should be added for the new encode_key behaviour (ideally alongside, not instead of, the doc comment).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doctest code fence in the encode_key doc comment is mis...
null
rusoto__rusoto__776
rusoto/rusoto
776
defect
884936a450fc66508a6e196fed74a2efa9dd5109
5ae4ba5f224e53b2c7c9c28b96ac4de2e3134db6
Remove rustc serialize
Finally fixes https://github.com/rusoto/rusoto/issues/467 : get rid of deprecated rustc-serialize. Possibly fixes https://github.com/rusoto/rusoto/issues/703 with all the replacing of `unwrap` with `expect` in the big S3 test.
diff --git a/integration_tests/tests/s3.rs b/integration_tests/tests/s3.rs index c929e94e2f6..2a433b3e2ec 100644 --- a/integration_tests/tests/s3.rs +++ b/integration_tests/tests/s3.rs @@ -114,7 +114,7 @@ fn test_multipart_upload(client: &TestClient, bucket: &str, filename: &str) { }; // start the multipart...
3
2
0
[{"id": "G0", "claim": "The expect message on the delete_bucket call in the S3 integration test should say 'Couldn't delete bucket' instead of 'Couldn't create bucket'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The expect message on the list_ob...
null
rusoto__rusoto__920
rusoto/rusoto
920
defect
1c6cc110309afd6c395ca7cbf5fd2634297d4522
ac3963bc013da0cd915cc58996a22fcf6f231af5
Adding a public constructor to StreamingBody to facilitate mocking/testing
This fixes Issue #919 which I created earlier today
diff --git a/rusoto/services/s3/src/generated.rs b/rusoto/services/s3/src/generated.rs index cf2a7c60423..079b2600173 100644 --- a/rusoto/services/s3/src/generated.rs +++ b/rusoto/services/s3/src/generated.rs @@ -1028,6 +1028,12 @@ impl AnalyticsS3ExportFileFormatSerializer { pub struct StreamingBody(Box<Read>); +...
3
3
2
[{"id": "G0", "claim": "The new StreamingBody::new constructor should be generic over a Read type parameter rather than requiring callers to pass a Box<Read>, so the API keeps its flexibility.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a small un...
null
rusoto__rusoto__924
rusoto/rusoto
924
defect
2ae99c4ae6cd216b90210be7e5621ca3736617dc
9f5150eae57ed729c17842d22e9d8da8068c6cbc
Ceph and minio integration tests
Pulled from https://github.com/rusoto/rusoto/pull/913 and https://github.com/srijs/rusoto-async/tree/ceph_minio_tests to test-drive the Ceph and Minio integration tests on SemaphoreCI. 🤘
diff --git a/.travis.yml b/.travis.yml index 8154816c444..9dd8d110fc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,10 @@ rust: os: - linux - osx +addons: + apt: + packages: + - python3-requests cache: directories: - $HOME/.cargo @@ -22,19 +26,56 @@ script: - | echo "Generat...
2
2
0
[{"id": "G0", "claim": "The pull request's changes to .travis.yml (such as the added addons block) are not needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A build badge should be added to the main README as the last remaining thing to do....
null
rusoto__rusoto__977
rusoto/rusoto
977
defect
79fc167cbd85e2ff9550a76ad20cc7c50858c5c3
33568cff638552dd63e42ab9eec335a4817ff695
SQS 955 - Integration test for SQS bulk calls
Fixes https://github.com/rusoto/rusoto/issues/955 . Integration test from https://github.com/rusoto/rusoto/pull/960 , thanks @glademiller ! I checked a service aside from SQS that also changed with this codegen. I think what we're sending is now correct for those, too.
diff --git a/integration_tests/tests/discovery.rs b/integration_tests/tests/discovery.rs index 3bd585b6b3b..bceed7c5c08 100644 --- a/integration_tests/tests/discovery.rs +++ b/integration_tests/tests/discovery.rs @@ -20,7 +20,10 @@ fn should_describe_tags() { match client.describe_tags(&request).sync() { ...
5
5
1
[{"id": "G0", "claim": "The pull request needs a CHANGELOG entry before it can be merged.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The SQS bulk test should use `rand::random::<u64>()` instead of `time::get_time().sec` for the queue name, bec...
null
rusoto__rusoto__979
rusoto/rusoto
979
defect
79fc167cbd85e2ff9550a76ad20cc7c50858c5c3
95d9d1341c934335ef6b92b32ff7e6261441f781
Simple db tests
Branched off https://github.com/rusoto/rusoto/pull/977 . Starting point for https://github.com/rusoto/rusoto/issues/978 . 😄 Designed so someone can pick up this work if I don't get around to wrapping it up. If you'd like it, write a comment saying you'll do it. 👍
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b67231142b..569160856e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Improve ContainerProvider to mimik the behavior of the other SDKs by also considering ```AWS_CONTAINER_AUTHORIZATION_TOKEN``` and ```AWS_CONTAINER_CREDENTIALS_FULL_URI``` - Implemen...
1
1
1
[{"id": "G0", "claim": "Be careful not to forget to unwrap or similarly check the results in the new sdb roundtrip test (the list_domains result is only printed), so the tests fail rather than silently pass when a call errors.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
rusq__slackdump__472
rusq/slackdump
472
defect
c387c58c53df898658a7309473f022167a780136
236f10fe7e650917384e4ddc9143770e62c60f9c
Fix the callback function signature in unexpected EOF test
Somehow this slipped through the CI tests - invalid function signature (from the future release) was committed into v3.0.x branch. Fixes #471.
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a992e877b..0b19fb535 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,7 +5,7 @@ on: types: - published push: - branches: [master] + branches: [master,v3.0.x] # r...
3
2
0
[{"id": "G0", "claim": "Verify that the updated no-context callback signature in TestWithRetry aligns with the definition of WithRetry and that any necessary context handling is maintained elsewhere in the code.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", ...
null
rusq__slackdump__523
rusq/slackdump
523
defect
8292b9d327bc51a26d0aeae32080d7d7ea2dbc10
2501270d368257608d68b2a604bf072c491dbf2b
Ensuring that sanitised filenames work on windows (via GHA)
This is to ensure that sanitised filenames can actually be created on the advanced operating systems like windows.
diff --git a/source/filestorage.go b/source/filestorage.go index a0a40958..d80ac715 100644 --- a/source/filestorage.go +++ b/source/filestorage.go @@ -32,10 +32,14 @@ type Storage interface { FilePath(ch *slack.Channel, f *slack.File) string } -// SanitizeFilename ensures the filename is safe for all OSes, especia...
3
3
0
[{"id": "G0", "claim": "The reserved names map is recreated on every call to SanitizeFilename; move it to a package-level variable to avoid repeated allocations and improve performance.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The name unsaf...
null
rusq__slackdump__641
rusq/slackdump
641
defect
29b41b2d401bf6528d071ee580df9590f4401806
6487de54f60ca84a62ff59243449cf8d48fa5d88
fix export display bug
When "viewing" exports, the self-user chat was displayed as `<external>` due to flawed logic of `except` that would fail to assign the "self" user to the conversation.user field. ## Gory details The dm chat entry in export's `dms.json` would have a slice of users participating in DM, such as: ```jsonc [ { "id":...
diff --git a/internal/structures/index.go b/internal/structures/index.go index e217f640..2959c10f 100644 --- a/internal/structures/index.go +++ b/internal/structures/index.go @@ -180,7 +180,7 @@ func dmsToChannels(DMs []DM) []slack.Channel { ID: dm.ID, Created: slack.JSONTime(dm.Created), IsIM: ...
4
4
1
[{"id": "G0", "claim": "Rewrite the `except` doc comment because it is hard to follow and has grammar/capitalization issues, clearly defining whether `n` is a 0-based index or a count, what happens when `n` is out of range, and using consistent sentence casing/punctuation.", "category": "documentation", "verdict": "sup...
null
rusq__slackdump__650
rusq/slackdump
650
defect
1838bd260af38e333d1ac79d7ea498c03af248d8
9b8f98052024516e0656b82531eb8a0b7c9bd107
Improve missing sqlite file error handling
I had some misleading "out of memory" error messages when providing slackdump a folder instead of an sqlite file. This PR makes the error more obvious. Error observed: ``` 2026-03-19 22:37:42 ERROR 000 (No Error): opening database │ "test-slackdump-dev/": unable to open database file: ...
diff --git a/internal/chunk/backend/dbase/source.go b/internal/chunk/backend/dbase/source.go index 4e19fa6b..b99abafc 100644 --- a/internal/chunk/backend/dbase/source.go +++ b/internal/chunk/backend/dbase/source.go @@ -22,6 +22,8 @@ import ( "fmt" "iter" "log/slog" + "os" + "path/filepath" "runtime/trace" "ti...
1
1
0
[{"id": "G0", "claim": "The new standalone test functions (e.g. TestOpen_RejectsDirectory) should be folded into nested t.Run subtests inside the existing test functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
russelltg__srt-rs__29
russelltg/srt-rs
29
defect
21185acf58756861e7e4d45985837c9d0968370b
2e442195d2ef258e2286d0f2aface3dd51e82218
Implement receiver timeout
@robertream Does this look correct? I think I followed the spec and the tests still pass.
diff --git a/src/protocol/receiver/mod.rs b/src/protocol/receiver/mod.rs index b04f3251..8be1c982 100644 --- a/src/protocol/receiver/mod.rs +++ b/src/protocol/receiver/mod.rs @@ -1,5 +1,5 @@ -use std::cmp; use std::cmp::Ordering; +use std::cmp::{max, min}; use std::collections::VecDeque; use std::iter::Iterator; us...
1
1
0
[{"id": "G0", "claim": "Make on_exp_event conditionally set the shutdown_flag itself instead of returning a bool, since none of the other event functions have a return value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
russelltg__srt-rs__92
russelltg/srt-rs
92
defect
4af0340ef67c1edd0cecc9f0f795068de1588e0c
6e1fe633af1ad7d7fc0bda333689701e8133500e
Initial attempt at rx rekeying support
I don't know if this works, but will leave a test running for a few hours in hopes of seeing a re-key get triggered. Must admit this is just the result of looking at the existing code, rather than having read either the spec or reference implementation :sweat_smile: Part of #39
diff --git a/srt-protocol/src/crypto.rs b/srt-protocol/src/crypto.rs index 5d54cded..6fa339d2 100644 --- a/srt-protocol/src/crypto.rs +++ b/srt-protocol/src/crypto.rs @@ -270,6 +270,68 @@ impl CryptoManager { ret } + + pub fn rekey(&mut self, kmreq: &SrtKeyMessage) -> Result<(), ConnectionReject> { +...
10
5
3
[{"id": "G0", "claim": "The rekey code overwrites the stored salt with the one from the key message; the author asks whether altering the salt makes sense.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If the received key message lacks one of the key...
null
russross__blackfriday__117
russross/blackfriday
117
defect
44a39c16c6b85809f8c2663bdb8ddbced1ffdee8
819f70a832b8b87ae4195bbc917f5baf11bda08a
Remove sanitization
Following discussion in #90, this seems to be the minimal first cut at what needs to be done to transfer sanitization duties to bluemonday: removed what we had in blackfriday and added a reference to the docs.
diff --git a/README.md b/README.md index 5443df4a..598bbd95 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,28 @@ feature set, use this instead: output := blackfriday.MarkdownCommon(input) +### Sanitize untrusted content + +Blackfriday itself does nothing to protect against malicious content. If you are +d...
1
1
0
[{"id": "G0", "claim": "The README example line would be better written as `html := bluemonday.UGCPolicy().SanitizeBytes(unsafe)` instead of `bluemonday.UGCPolicy().Sanitize(string(unsafe))`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
russross__blackfriday__211
russross/blackfriday
211
defect
d4ee3ea08bf2f1471dbf7846090d9dd931609968
15eb452ae4d56122e8f4ddb29f9787345fceff34
Fix issue 122: fenced code blocks inside blockquotes
Improves fenced code block detection in paragraphs and blockquotes. Directly addresses #122, but refixes #45 along the way. More details in respective commit messages.
diff --git a/block.go b/block.go index 768c40b1..f7d5c3dd 100644 --- a/block.go +++ b/block.go @@ -891,13 +891,35 @@ func (p *parser) quotePrefix(data []byte) int { return 0 } +// blockquote ends with at least one blank line +// followed by something without a blockquote prefix +func terminateBlockquote(p *parser,...
3
3
0
[{"id": "G0", "claim": "The comment for the firstPass function still lists '- add missing newlines before fenced code blocks', which no longer holds and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The blockquote fenced-code...
null
russross__blackfriday__225
russross/blackfriday
225
defect
d18b67ae0afd61dae240896eae1785f00709aa31
05a79218edc4c95d46c7be8f5af8b17f752d5061
Implement support for CDATA section
Fixes #165.
diff --git a/block.go b/block.go index b5b08411..4a3b68ea 100644 --- a/block.go +++ b/block.go @@ -320,6 +320,11 @@ func (p *parser) html(out *bytes.Buffer, data []byte, doRender bool) int { return size } + // check for HTML CDATA + if size := p.htmlCDATA(out, data, doRender); size > 0 { + return size + }...
3
3
1
[{"id": "G0", "claim": "The local variables cdataTag and cdataTagLen in htmlCDATA should be declared as const.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A CDATA section containing a fenced code block is not recognized, and the new CDATA han...
null
russross__blackfriday__264
russross/blackfriday
264
defect
43529be3978d5a7b8e144f459e3f96491acc569c
acc07e6144689596cc6c5003e407dced0c27b92e
Fix definition lists that contain other lists
Fixes #263 Ping @miekg @tianon
diff --git a/block.go b/block.go index f9ce9e34..3f4af787 100644 --- a/block.go +++ b/block.go @@ -1175,8 +1175,9 @@ gatherlines: if containsBlankLine { // end the list if the type changed after a blank line - if (*flags&LIST_TYPE_ORDERED != 0 && p.uliPrefix(chunk) > 0) || - (*flags&LIST_TYPE_ORDERED ...
2
1
0
[{"id": "G0", "claim": "The comment '// end the list if the type changed after a blank line' may no longer be accurate now that the condition below it also requires indent <= itemIndent.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull requ...
null
russross__blackfriday__284
russross/blackfriday
284
defect
ce05617fea9bde4667ddc1bb8ceefe9d2a00ee5d
bd774a209a10d88da06adb3fa0fe87dc19902705
Fix most of lint errors on v2
Since on of the things lint complains about are docstrings, documentation got somewhat improved.
diff --git a/block.go b/block.go index a5f59a1a..d78147b8 100644 --- a/block.go +++ b/block.go @@ -22,13 +22,13 @@ import ( ) const ( - Entity = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});" - Escapable = "[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]" + charEntity = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a...
3
2
1
[{"id": "G0", "claim": "The new TODO on LinkType asking whether it should be unexported or moved to node.go should be addressed as part of this PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reworked MarkdownCommon doc comment dropped the blank com...
null
russross__blackfriday__302
russross/blackfriday
302
defect
6fd47b3b61bcbc3c9c99bdccb50a8d02670630d6
43ba539936f4225f156c648585840b7c9b0866c2
v2: move footnotes to html
Clean up footnotes part of an AST: don't force HTML-specific pieces there, just keep a clean list of footnotes. Since some renderers might want to process footnotes differently, let them know about footnotes by having a flag on that list.
diff --git a/block.go b/block.go index 4a7df433..42bed269 100644 --- a/block.go +++ b/block.go @@ -1380,7 +1380,10 @@ func (p *parser) paragraph(data []byte) int { // line: index of 1st char of current line // i: index of cursor/end of current line var prev, line, i int - + tabSize := TabSizeDefault + if p.flags&...
3
2
0
[{"id": "G0", "claim": "The doc comment should say 'can contain information about a footnote' instead of 'an information'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "With secondPass gone, firstPass is a confusing name and should be renamed.", ...
null
russross__blackfriday__331
russross/blackfriday
331
defect
ad7f7c56d58a2c7f75a14cdcaa8b8acd5dc4f141
7500a7e2ed7288a69834057beeec7d8bc49e6668
Fix #180 again
The check was introduced with d28de22, when fixing #172 and #173. Then I removed it with bcd6dd8 when fixing #180 And then it was reintroduced with 232d06c when fixing regression. It seems that the check can be removed again. All these cases now have tests (including the one from 69f51af, which seems to have land...
diff --git a/inline_test.go b/inline_test.go index 847980ad..06a63e7d 100644 --- a/inline_test.go +++ b/inline_test.go @@ -604,6 +604,9 @@ func TestReferenceLink(t *testing.T) { "[ref]\n [ref]: ../url/ \"title\"\n", "<p><a href=\"../url/\" title=\"title\">ref</a></p>\n", + + "[link][ref]\n [ref]: /url/", +...
1
1
0
[{"id": "G0", "claim": "The preconditions that must be met when calling scanLinkRef are undocumented, and documenting them would make it more viable to verify that the function does the right thing on all input.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
russross__blackfriday__366
russross/blackfriday
366
defect
0ba0f2b6ed7c475a92e4df8641825cb7a11d1fa3
a20399916c119a2c9fa4b6642044f7168c022620
fix duplicate and recursive footnotes. (#241)
Fix the infinite loop when there is a self-refer footnote by checking if the reference is already added into parser.notes. It also fixes of creating duplicate footnotes through this modification. Add coresponding testcase.
diff --git a/inline.go b/inline.go index c1f74752..eff13832 100644 --- a/inline.go +++ b/inline.go @@ -498,7 +498,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { return 0 } - if t == linkDeferredFootnote { + if t == linkDeferredFootnote && !p.isFootnote(lr) { lr.noteId = ...
1
1
1
[{"id": "G0", "claim": "The footnote existence check added by this PR scans p.notes linearly on every deferred footnote, giving n^2 complexity, and p.notes should be backed by a map to avoid that.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
russross__blackfriday__376
russross/blackfriday
376
defect
70c446a327c4e69c0f661dc092d9729c3af7472c
479920a987fe3ccb2929da9370b4b34cd6053f9a
v2: improve Renderer and fix #368
Improve Renderer to be less confusing. Fix documentation for it. OmitContents flag got dropped along the way. First, it would fit poorly into the new design and second, it's unclear how widely this feature is used. But most importantly, it's trivial to roll your own with the v2 API: https://gist.github.com/rtfb/2...
diff --git a/README.md b/README.md index 400572fd..9ce73342 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ All features of Sundown are supported, including: know and send me the input that does it. NOTE: "safety" in this context means *runtime safety only*. In order to - protect yourself agai...
1
1
0
[{"id": "G0", "claim": "Consider using io.WriteString(w, ...) instead of w.Write([]byte(str)) when writing literal strings to the io.Writer in html.go's HTML renderer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
russross__blackfriday__379
russross/blackfriday
379
defect
067529f716f4c3f5e37c8c95ddd59df1007290ae
2b12c583d5ffed30ca1c207e1404efe5f1d189b8
Add Smartypants support for French Guillemets
This commits adds flag `HTML_SMARTYPANTS_QUOTES_NBSP` which, when combined with `HTML_USE_SMARTYPANTS` will insert non-breaking spaces between the double quotes and the contained text. This is mostly relevant for use in French with `HTML_SMARTYPANTS_ANGLED_QUOTES`. It should not hurt existing code path in the pe...
diff --git a/html.go b/html.go index 74e67ee8..2f0ad3b1 100644 --- a/html.go +++ b/html.go @@ -42,6 +42,7 @@ const ( HTML_SMARTYPANTS_DASHES // enable smart dashes (with HTML_USE_SMARTYPANTS) HTML_SMARTYPANTS_LATEX_DASHES // enable LaTeX-style dashes (with HTML_USE_SMARTYPANTS and HT...
1
1
0
[{"id": "G0", "claim": "Style nit: the added variable should be named `addNBSP` rather than `addNbsp`, per https://golang.org/s/style#initialisms.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
russross__blackfriday__384
russross/blackfriday
384
defect
f42ca5bf18fa5a63ca3a33fe9c5d0415f257eb0a
e540b5dbab2c633da64825f0421988a48b6eeaf8
Add Smartypants support for French Guillemets
This is a port of the fix for #378 in v1. There is a slight alloc hit in the `SPRenderer` create, and I'm currently not seeing a smart way to avoid that. ``` name old time/op new time/op delta EscapeHTML-4 1.22µs ± 2% 1.21µs ± 1% ~ (p=0.222 n=5+5) SmartDoubleQuotes-4 ...
diff --git a/html.go b/html.go index f1a60de2..a667cd9f 100644 --- a/html.go +++ b/html.go @@ -44,6 +44,7 @@ const ( SmartypantsDashes // Enable smart dashes (with Smartypants) SmartypantsLatexDashes // Enable LaTeX-style dashes (with Smartypants) SmartypantsAngl...
1
1
0
[{"id": "G0", "claim": "The comment for the SmartypantsQuotesNBSP constant should use French guillemets (« ») instead of double quotes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
russross__blackfriday__443
russross/blackfriday
443
defect
cfdcce51965fe68951a5fa45454aa6278c3f9614
af7bd1fa91033e0efebf890d98a7ecde7ee2385f
Fix consecutive lists of different kinds
``` 1. hello 2. world * goodbye * world ``` now produces two lists: 1. hello 2. world * goodbye * world instead of: 1. hello 2. world 3. goodbye 4. world
diff --git a/block.go b/block.go index d7da33f2..d753481b 100644 --- a/block.go +++ b/block.go @@ -1291,8 +1291,24 @@ gatherlines: } // to be a nested list, it must be indented more - // if not, it is the next item in the same list + // if not, it is either a different kind of list + // or the next item...
2
2
0
[{"id": "G0", "claim": "The list-type-change detection block in paragraph() should be extracted to a helper func.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid setting ListItemContainsBlock on the earlier line and flipping it off again in...
null
russross__blackfriday__448
russross/blackfriday
448
defect
55d61fa8aa702f59229e6cff85793c22e580eaf5
04fca4d0ef1e6816233ccafc4101d4d5427d2235
Accept info strings in code fences
According to the common mark standard, code fence info strings can be anything, not just single words. Update the tests and parser accordingly. The formatter already expected an info string with a language and HTML classes, so this does not need to change. Update the LaTeX formatter to take the first word of the ...
diff --git a/block.go b/block.go index 7fc731d5..929638aa 100644 --- a/block.go +++ b/block.go @@ -15,6 +15,7 @@ package blackfriday import ( "bytes" + "strings" "unicode" ) @@ -92,7 +93,7 @@ func (p *parser) block(out *bytes.Buffer, data []byte) { // fenced code block: // - // ``` go + // ``` go in...
2
1
1
[{"id": "G0", "claim": "go fmt produces non-empty output on the branch, so the formatting check fails; the author should run go fmt and commit whatever it fixes.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new C-like helper names should b...
null
russross__blackfriday__521
russross/blackfriday
521
defect
abafa45cd843f4f4935c29a2e8f3d73a01820fc3
7cd217fc0c756425d5634432c1df77c97e2a4fd3
Fix fenced code in lists
This attempts to fix #495 and #485. Note the test cases which were added at the bottom of the list. The first added test case was passing even before the changes, but the second was not. Comments are welcome if the change in the existing behaviour is welcome.
diff --git a/block.go b/block.go index 45c21a6c..3787ee75 100644 --- a/block.go +++ b/block.go @@ -649,9 +649,11 @@ func isFenceLine(data []byte, info *string, oldmarker string, newlineOptional bo } i = skipChar(data, i, ' ') - if i >= len(data) || data[i] != '\n' { + if l := len(data); i >= l || data[i] != '\n' ...
2
2
0
[{"id": "G0", "claim": "The variable `l` introduced in isFenceLine should be renamed because it is too similar to `i` and `1` and is difficult to read.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The chain of conditionals at the end of isFenc...
null
rust-analyzer__rowan__186
rust-analyzer/rowan
186
defect
da4dc39f8eb0530c8402802dd67c092aea0f4da1
cda2c49982122266395773ad4355dd8b5d529331
Update all deps, fix clippy, rust 2024
Drops unmaintained dependency and implements it internally
diff --git a/Cargo.toml b/Cargo.toml index e2bc8c41..aff46212 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,22 +5,23 @@ authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"] repository = "https://github.com/rust-analyzer/rowan" license = "MIT OR Apache-2.0" description = "Library for generic lossless syntax trees...
2
2
0
[{"id": "G0", "claim": "Undo the renaming of the SyntaxKind enum variants in examples/math.rs back to the original SCREAMING_CASE, because the allow(non_camel_case_types) lint is there on purpose and the casing is intentional since the variants are used unprefixed as a bag of constants.", "category": "maintainability",...
null
rust-av__Av1an__1092
rust-av/Av1an
1,092
defect
83dfcbf2e6575f9f094f5c3f3e5ec34fcb709db5
46c0381560523d2d7ea220f52cc8ef77ec41f28b
Changes to scenechange decoding
- Use the `VapoursynthDecoder` when the user provides a vpy script - Otherwise, use ffmpeg, as it is faster. We can perform downscaling and pixel format conversion with ffmpeg. - Fix `sc_pix_format` when user provides Vapoursynth input, as previously this argument was not working for that scenario - Add integration ...
diff --git a/.gitignore b/.gitignore index 013b433f2..07010f118 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ __pycache__/ *.av1 *.webm *.y4m +*.lwi # Hidden folders !.github diff --git a/av1an-core/src/ffmpeg.rs b/av1an-core/src/ffmpeg.rs index 66d9705c1..e49882f5f 100644 --- a/av1an-core/src/ffmpe...
4
3
0
[{"id": "G0", "claim": "The new test encode_test_sc_downscale uses create_vpy_input() although it appears to be testing downscaling rather than VPY input, so it should use the regular y4m input to better isolate what is being tested.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
rust-bakery__cookie-factory__20
rust-bakery/cookie-factory
20
defect
fdc7b9e0eabfd7908fd490ff57994e44fdfcf0ab
6f9f65482c9c6b69344115825e3479054f201c79
Don't calculate/return the written size from each combinator
See https://github.com/rust-bakery/cookie-factory/issues/18 Needs tests to be fixed and I'm not super happy with the `length` and `position` combinators as they won't advance the slice like everything else would be doing. And they only work on mutable slices, not anything else, which I'd like to fix by introducing a...
diff --git a/Cargo.toml b/Cargo.toml index 4ba4e0e..1c595d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,12 +35,23 @@ codegen-units = 1 [[example]] name = "cursor" required-features = ["std"] -path = "cursor.rs" + +[[example]] +name = "json" + +[[example]] +name = "http" +required-features = ["std"] [[test]] ...
11
8
2
[{"id": "G0", "claim": "The change turns the combinators into ones that cannot be combined and makes using combinators painful, and the reviewer is against merging the pull request in this form.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Proposes doing...
null
rust-bakery__cookie-factory__28
rust-bakery/cookie-factory
28
defect
37d04705b5ecc30103982feba5a8ca2127db687a
0e2a13e2f2e7f9440de7eb31bca36f28ee4f28af
Remove WriteCounter and add a WriteContext that is passed around with…
… the SerializeFns Also add gen() and gen_simple() helper functions to run a SerializeFn. Fixes https://github.com/rust-bakery/cookie-factory/issues/27 ---- CC @Keruspe Would something like this work for you? I've commented out some stuff and the doctests are all still failing, but the examples and othe...
diff --git a/examples/cursor.rs b/examples/cursor.rs index 36725c9..46e8757 100644 --- a/examples/cursor.rs +++ b/examples/cursor.rs @@ -1,7 +1,7 @@ extern crate cookie_factory; use std::io::{Write, sink}; -use cookie_factory::{WriteCounter, SerializeFn, pair, string}; +use cookie_factory::{SerializeFn, pair, strin...
11
8
1
[{"id": "G0", "claim": "The added `use cookie_factory::gen;` line in examples/http.rs is indented inconsistently with the file's two-space style.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "legacy_wrap should just create the Cursor, set the position an...
null
rust-bakery__nom-derive__70
rust-bakery/nom-derive
70
defect
c8f384f102ae6c4543b9882812f11f56a886d048
1fa9a5bdbf9077b428e6e08ec99ca9ee5a54063d
update for nom version 8
The nom has been updated to version 8, and the parser api is no longer compatible.
diff --git a/Cargo.toml b/Cargo.toml index f714cd4..0d2959a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,36 +3,37 @@ name = "nom-derive" description = "Custom derive nom parsers from struct" version = "0.10.0" license = "MIT/Apache-2.0" -keywords = ["parser","nom"] +keywords = ["parser", "nom"] categories = ["par...
8
6
4
[{"id": "G0", "claim": "The version number should be incremented in Cargo.toml as well as in nom-derive-impl/Cargo.toml, because the crates will not be compatible.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unused Config fields (silenced by ...
null
rust-bakery__nom__1621
rust-bakery/nom
1,621
defect
7d33ca6de549c519faad3f2bae18d47063077900
84615acbbf5e573660f268f73228e820caf9408c
make many extend into other collections that Vec
Fix #1409 This will likely remove the optimizatio of preallocating vector capacity, but we can get this back with a wrapper type if needed, and being able to created directly a hashmap or other collections instead of going through a vec first will be way more useful
diff --git a/benchmarks/benches/ini.rs b/benchmarks/benches/ini.rs index 95fd95cd0..58c73a167 100644 --- a/benchmarks/benches/ini.rs +++ b/benchmarks/benches/ini.rs @@ -32,19 +32,16 @@ fn key_value(i: &[u8]) -> IResult<&[u8], (&str, &str)> { } fn categories(i: &[u8]) -> IResult<&[u8], HashMap<&str, HashMap<&str, &s...
2
2
1
[{"id": "G0", "claim": "Since the new `many` dropped the preallocation of vector capacity, a `fold`/`fold_many` example that sets the capacity should be provided and `many`'s docs should link out to it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
rust-bakery__nom__1811
rust-bakery/nom
1,811
defect
d3d254034bd490b8b12457cac805a1967cf303c1
2b48e21a28a13c05f0a70157d9091e2a665c1886
Fix for issue 1808
It turned out that the `split_at_position_complete` for str returned the beginning of the string with length 0, instead of the end. This broke the offset calculations. Fixes https://github.com/rust-bakery/nom/issues/1808
diff --git a/src/traits.rs b/src/traits.rs index f778c3601..782bc4aa2 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -462,7 +462,7 @@ impl<'a> Input for &'a str { let (str1, str2) = self.split_at(i); Ok((str2, str1)) } - None => Ok(self.split_at(0)), + None => Ok(self.take_split(se...
1
1
0
[{"id": "G0", "claim": "The test function added for this fix uses the wrong issue number in its name; it should reference issue 1808, not 1809.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
rust-bitcoin__rust-bech32__120
rust-bitcoin/rust-bech32
120
defect
d998236aebb410bcc654a35673fbdd21a4957dae
047a29e89017a5a4a4f4ccdbdec9bbad69c7f11c
Add segwit API
Add a `segwit` API with the aim that "typical" modern bitcoin usage is easy and correct. Done in a separate module so as not to impact the main crate API.
diff --git a/examples/qr_codes.rs b/examples/qr_codes.rs new file mode 100644 index 000000000..88e17b35e --- /dev/null +++ b/examples/qr_codes.rs @@ -0,0 +1,33 @@ +//! Demonstrate encoding with uppercase characters suitable for QR codes. + +use std::fmt; + +use bech32::primitives::hrp; +use bech32::Fe32; + +fn main() {...
7
6
2
[{"id": "G0", "claim": "The API should provide an uppercase version of encode_to_fmt, because the UpperWriter workaround needed for QR codes is complicated and requires allocations that would otherwise be unnecessary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
rust-bitcoin__rust-bech32__150
rust-bitcoin/rust-bech32
150
defect
7207926e5a4781e08b59056ba230d6250136173f
8eb7954da33cbb9c5e620a049cff12cb1e1ff94b
Fix checksum error type
We have a couple of checksum error problems; - Unused checksum related variants in `CharError` - Unuseful error message (duplicated string "invalid checksum") Fix both at the same time by removing the unused variants from `CharError` and by renaming the `InvalidChecksum` variant to `InvalidResidue` and improving...
diff --git a/src/primitives/decode.rs b/src/primitives/decode.rs index 5b5cb53f3..bff223e1e 100644 --- a/src/primitives/decode.rs +++ b/src/primitives/decode.rs @@ -174,7 +174,7 @@ impl<'s> UncheckedHrpstring<'s> { } if self.data.len() < Ck::CHECKSUM_LENGTH { - return Err(InvalidChecksumL...
1
1
0
[{"id": "G0", "claim": "The Display output (and surrounding docs) for the invalid-length checksum error should say that the string is not a valid length rather than that the checksum is not a valid length.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
rust-bitcoin__rust-bitcoin__4316
rust-bitcoin/rust-bitcoin
4,316
defect
f740199d36c7c7e572772fc85a6edba7d47b99a7
c27b95fb0dd0e5600d1f236a141bcac452306a5c
Improve the script hex APIs
Done while investigating #3910 - this PR is quite invasive. - Patch 1 adds an example that shows the current behaviour of various API calls for converting scripts to/from hex. - Patch 2 adds a pair of functions that do not use the length prefix and makes script to/from_hex use the prefix. - Patch 3 makes `LowerHex...
diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index 9e28cfb5c4..075ddbd893 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -94,5 +94,9 @@ name = "sighash" name = "io" required-features = ["std"] +[[example]] +name = "script" +required-features = ["std"] + [lints.rust] unexpected_cfgs = { level ...
5
5
4
[{"id": "G0", "claim": "Add hex functions that explicitly do not use consensus encoding (e.g. `from_hex_no_prefix`), otherwise the change will be really annoying both here and downstream.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Implement compact-s...
null
rust-bitcoin__rust-bitcoin__5664
rust-bitcoin/rust-bitcoin
5,664
defect
a5c78f20839afd59c4ebfd299288fa20897edae9
544f388f48d2e408e2cfac869342d8db00bbf7f1
consensus_encoding: Introduce `decode_from_slice_unbounded`
The old consensus code deserialize function returned an error when decoding failed to consume all bytes in the input slice. The new nearest-equivalent function, decode_from_slice, does not error on unconsumed bytes. Introduce decode_from_slice_unbounded which errors on unconsumed bytes. Adjust decode_from_slice to ...
diff --git a/api/consensus_encoding/all-features.txt b/api/consensus_encoding/all-features.txt index b87b266022..87d0c35b10 100644 --- a/api/consensus_encoding/all-features.txt +++ b/api/consensus_encoding/all-features.txt @@ -1,3 +1,4 @@ +#[non_exhaustive] pub bitcoin_consensus_encoding::DecodeError::Unconsumed impl ...
2
1
0
[{"id": "G0", "claim": "Asks whether PartialEq and Eq can be derived for DecodeError despite the generic, suggesting a trait bound or an explicit impl as a workaround, while doubting whether it is wanted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Su...
null
rust-bitcoin__rust-bitcoin__5802
rust-bitcoin/rust-bitcoin
5,802
defect
55560356c060f1e37d2973c4e050a590a4695aae
4a18c01daa8297402da55acaa4491402d029bd98
hashes: docs fixes
In preparation for 1.0ing `hashes` tidy up some of the docs. Docs changes only. Related issue: #3633
diff --git a/hashes/src/hkdf/mod.rs b/hashes/src/hkdf/mod.rs index d1326890d4..a4c0686820 100644 --- a/hashes/src/hkdf/mod.rs +++ b/hashes/src/hkdf/mod.rs @@ -2,8 +2,7 @@ //! HMAC-based Extract-and-Expand Key Derivation Function (HKDF). //! -//! Implementation based on RFC5869, but the interface is scoped -//! to B...
5
5
1
[{"id": "G0", "claim": "The attribute change should be made in a separate pull request rather than in this one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rewrap of the MuHash doc comment is code churn that marginally makes things worse and is no...
null
rust-bitcoin__rust-bitcoin__5891
rust-bitcoin/rust-bitcoin
5,891
defect
6c125eb96941af23f56b08f638a163d93caf365a
fd6fc7fd8aeb14f8aff903a69107a7061a83737c
Do not re-export non-essential hash types
I audited `bitcoin`, `primitives`, and `units` for hash type re-exports. Remove: - `TxMerkleNode` and `WitnessMerkleNode` because both implement `MerkleNode` but that trait is `pub(crate)`. - `Ntxid`: Niche `rust-bitcoin` type. ref: https://github.com/rust-bitcoin/rust-bitcoin/issues/4125#issuecom...
diff --git a/bitcoin/examples/serde.rs b/bitcoin/examples/serde.rs index 74080cf4ac..758acf3a7f 100644 --- a/bitcoin/examples/serde.rs +++ b/bitcoin/examples/serde.rs @@ -24,15 +24,10 @@ pub struct Foo { /// `FeeRate` can use kilo weight units or virtual bytes, both floor and ceil. #[serde(with = "fee_rate::s...
2
1
1
[{"id": "G0", "claim": "The PR should keep Wtxid, which is used on the network, in the crate-root re-export and drop the obscure Ntxid instead of the other way round.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The main commit of the PR is full of for...
null
rust-bitcoin__rust-miniscript__289
rust-bitcoin/rust-miniscript
289
defect
13e75527972171f589624177f6c339e9af407a81
f3c38b8cc04fed0a68f4d6074d8c30f6912d958f
Update to a dev version latest bitcoin master 0e2e55971275da64ceb62e8991a0a5fa962cb8b1
Update to a version of dev rust-bitcoin so that we can prepare for rust-miniscript release. The integration tests are updated to point a personal fork of rust-bitcoincore-rpc to have rust semver type issues. After we have this, we can make progress on tapscript while we await finalized rust-bitcoin release. After w...
diff --git a/Cargo.toml b/Cargo.toml index 958e973b9..f249f6717 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ description = "Miniscript: a subset of Bitcoin Script designed for analysis" license = "CC0-1.0" [features] -fuzztarget = ["bitcoin/fuzztarget"] +fuzztarget = [] compiler = [] trace = [] unsta...
3
1
0
[{"id": "G0", "claim": "The `from_txdata` (and `inner::from_txdata`) parameter should take `&Witness` so callers need not convert the witness to a `Vec`, since it is only iterated and `Witness::iter` does not allocate.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
rust-bitcoin__rust-miniscript__420
rust-bitcoin/rust-miniscript
420
defect
c1bba6f7c5bd3ab395743848b495cae9ce1928d8
139324a641d364e6c5f5c3659d81c937da7a935c
Add support for running integration tests via cargo test
There are still some annoying warnings present for unused functions when they are used. rust-lang/rust#46379 Later commits will remove the hacky integration test setup. Running `cargo test` now should also run integration tests Our testing infrastructure now takes a long time to build because we have more th...
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4680dd209..94f70af99 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -69,21 +69,4 @@ jobs: - name: Running cargo env: DO_FEATURE_MATRIX: true - run: ./contrib/test.sh - - IntTests: -...
2
1
0
[{"id": "G0", "claim": "The new tests_from_cpp test may not work, because the node is stopped once the BitcoinD struct goes out of scope, so binding the client via setup::setup() may leave the node stopped while the test runs.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, ...
null
rust-bitcoin__rust-miniscript__470
rust-bitcoin/rust-miniscript
470
defect
d5615acda1a7fdc4041a11c1736af139b8c7ebe8
149e691e353918c968ca5bdd482c98d2573f761f
Multipath descriptors
This implements [BIP389 multipath descriptors](https://github.com/bitcoin/bips/pull/1354). Fixes #469.
diff --git a/src/descriptor/key.rs b/src/descriptor/key.rs index a35ac375e..8a9cdb95d 100644 --- a/src/descriptor/key.rs +++ b/src/descriptor/key.rs @@ -19,6 +19,8 @@ pub enum DescriptorPublicKey { Single(SinglePub), /// Extended public key (xpub). XPub(DescriptorXKey<bip32::ExtendedPubKey>), + /// Mu...
5
5
5
[{"id": "G0", "claim": "Conversion to DefiniteDescriptorKey should fail when the descriptor contains a multipath key.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a num_der_paths method to the MiniscriptKey trait and, when validating a descriptor, ...
null
rust-bitcoin__rust-miniscript__493
rust-bitcoin/rust-miniscript
493
defect
a7bfff46b15bd42c12da4ef39d8769f64ade848c
2b406797daad704852eaf6863e688e83b94ae9b9
update TranslatePk again
This PR has lot of cleanups that I had planned but did not have time for a long time. - All places now use constructors that do invariant checking on the struct being created. - Translate* APIs had a soundness bug you could create uncompressed keys in segwit descriptors etc.
diff --git a/src/descriptor/bare.rs b/src/descriptor/bare.rs index 65fa01a66..4bf4a900e 100644 --- a/src/descriptor/bare.rs +++ b/src/descriptor/bare.rs @@ -25,13 +25,13 @@ use bitcoin::{Address, Network, Script}; use super::checksum::{self, verify_checksum}; use crate::expression::{self, FromTree}; -use crate::min...
3
2
2
[{"id": "G0", "claim": "In a couple of cases some of the new map_err calls could be cleaned up, though the reviewer is not sure which and did not try the ideas.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "try_into_translator_err is hard to un...
null
rust-bitcoin__rust-miniscript__618
rust-bitcoin/rust-miniscript
618
defect
c94deab5bd16b42da53ab38afcc521ae8c8bf024
e7b5db2cc27f1c6b79abf23cffd29d13469c9245
Upgrade bitcoin dependency
Upgrade `rust-bitcoin` to version 0.31.0 and also other required dependencies from our stack: - secp256k1: to v0.28.0 - internals: to v0.2.0 - bitcoind: to v0.34.0
diff --git a/Cargo.toml b/Cargo.toml index ad9e89255..734c781f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,16 +23,16 @@ base64 = ["bitcoin/base64"] [dependencies] bech32 = { version = "0.10.0-beta", default-features = false } -bitcoin = { version = "0.30.0", default-features = false } -internals = { package = ...
1
1
0
[{"id": "G0", "claim": "In a follow-up, the units of pk_cost should be changed to be Weight so the cast in the Tap size check is unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
rust-bitcoin__rust-miniscript__679
rust-bitcoin/rust-miniscript
679
defect
15ddc863fffda57ddf58accfa8bc20291687ceaa
7c90cad221b8ffc5f7a3f624a40a45f2a970efde
Upgrade to `bitcoin v0.32.0`
We just released a new version of `bitcoin`, lets use it. Includes upgrading the version of: - `bitcoind` to `v0.36.0` - `secp256k1` to `0.29.0`
diff --git a/Cargo.toml b/Cargo.toml index c78a20d0b..f3b456f72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "miniscript" -version = "11.0.0" +version = "12.0.0" authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>, Sanket Kanjalkar <sanket1729@gmail.com>"] license = "CC0-1.0" homepa...
4
1
0
[{"id": "G0", "claim": "Move the function-local `use core::convert::TryFrom;` statements in src/descriptor/segwitv0.rs (line 377) and src/psbt/finalizer.rs (line 187, repeated at line 252) up to the file-level imports.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
rust-bitcoin__rust-miniscript__708
rust-bitcoin/rust-miniscript
708
defect
f1c12724d04b7ad28d25c866383a948cd493e698
5b1df514dab84f016d0b7f6758b51c025eef5a9f
9.x backport for recursion tree depth
I had to comment some test cases because `bitcoind` had a breaking change and checking for a compatible version would have resulted in pinning it's dependencies too.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 78be78542..de9e693ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -# 9.0.2 - July 13, 2023 +# 9.1.0 - July 13, 2023 +- Explicitly track recursion depth in fragments [#704](https://github.com/rust-bitcoin/rust-miniscript/pull/704) + +# 9.0.2 - Workaround ...
1
1
1
[{"id": "G0", "claim": "The pull request's change to Cargo.toml misspells the author's name (\"Andrew PoelstrPa\" instead of \"Andrew Poelstra\") in the authors line it added, and the reviewer asks that the typo be fixed.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
rust-bitcoin__rust-miniscript__883
rust-bitcoin/rust-miniscript
883
defect
4ad053ba161e06b31b3c4557b698d0b066e49465
ed9195bdfb9092c40cbab94c321c7592b1bab146
CI: Use new cargo rmbt tool
Use Nicks mad new tool to run CI. To do this I copied what is in `rust-psbt`, guessed at what `bench` should be, and used the latest commit hash from `rust-bitcoin-maintainer-tools` repo.
diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml new file mode 100644 index 000000000..c2402b0fc --- /dev/null +++ b/.github/actions/prepare/action.yml @@ -0,0 +1,39 @@ +name: 'Prepare Rust Environment' +description: 'Setup Rust toolchain and install RBMT' +inputs: + toolchain: + ...
4
3
2
[{"id": "G0", "claim": "The description of commit 1231487c2930 contains cruft about error return sizes that is not applicable to that commit.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request bumps the MSRV to 1.74, which the reviewe...
null
rust-bitcoin__rust-miniscript__910
rust-bitcoin/rust-miniscript
910
defect
32c096be615b1cf8baeb46ffe189d3316c0f1513
e62cb50679208ac13ad4b557b348525af6b94852
Add support for sortedmulti_a
See individual commit messages for finer details. --- ~I think the previous attempts at adding sortedmulti_a were prior to the parser rewrite. With the current parser it seems to me that sortedmulti_a is basically acopy and paste of multi_a with the key sorting added.~ See Andrew's [comment](https://github.com/...
diff --git a/bitcoind-tests/tests/test_desc.rs b/bitcoind-tests/tests/test_desc.rs index ea1581d97..4c6d499cf 100644 --- a/bitcoind-tests/tests/test_desc.rs +++ b/bitcoind-tests/tests/test_desc.rs @@ -372,6 +372,11 @@ fn test_descs(cl: &Client, testdata: &TestData) { test_desc_satisfy(cl, testdata, "tr(X!,{pk(X1!)...
8
7
2
[{"id": "G0", "claim": "Decoding can produce a sortedmulti_a whenever the keys merely happen to be sorted, which breaks encode/decode round-tripping (the author also questioned whether the decode condition needed an extra keys.len() == k check), so decode should never produce a sortedmulti_a.", "category": "correctness...
null
rust-bitcoin__rust-miniscript__911
rust-bitcoin/rust-miniscript
911
defect
04f1c58b463d24931924cada03a485f8b2547435
96f5f08af600d34fab5e39e7108687ab9e9de227
Return error from at_derivation_index when descriptor has no wildcard
Closes #829. - Previously, calling `at_derivation_index()` on a descriptor without wildcards would silently ignore the index and return the descriptor unchanged. This was error-prone because callers would expect different indices to produce different addresses. - Callers that need to convert a non-wildcard descrip...
diff --git a/src/descriptor/key.rs b/src/descriptor/key.rs index 5bbb92c79..c4eac6f4f 100644 --- a/src/descriptor/key.rs +++ b/src/descriptor/key.rs @@ -358,6 +358,7 @@ pub enum NonDefiniteKeyError { Wildcard, Multipath, HardenedStep, + NoWildcard, } impl fmt::Display for NonDefiniteKeyError { @@ ...
5
3
2
[{"id": "G0", "claim": "The new Translator code should not be duplicated between find_derivation_index_for_spk (later into_definite) and at_derivation_index; move it out and share it, e.g. as enum Definitor { FromPk, AtIndex(u32) }.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
rust-bitcoin__rust-miniscript__915
rust-bitcoin/rust-miniscript
915
defect
78254b272080a92734e57508b7ad5c717bedf208
816620a564e83fcaefbb249903c40c6c6e4ff81c
refactor: remove SortedMultiVec and use Terminal::SortedMulti
- Utilize the Miniscript parsing to handle sortedmulti as a Terminal. - Deleted sortedmulti.rs (SortedMultiVec) - Refactor Wsh to only wrap a Miniscript now that SortedMultiVec isn't used. - Refactor ShInner to remove SortedMulti variant and only use the Ms variant for sortedmulti scripts --- Now that sortedmulti_...
diff --git a/bitcoind-tests/tests/test_cpp.rs b/bitcoind-tests/tests/test_cpp.rs index cdc336b2f..635ea9e15 100644 --- a/bitcoind-tests/tests/test_cpp.rs +++ b/bitcoind-tests/tests/test_cpp.rs @@ -147,10 +147,7 @@ pub fn test_from_cpp_ms(cl: &Client, testdata: &TestData) { for i in 0..psbts.len() { let ws...
11
9
5
[{"id": "G0", "claim": "Removing SortedMultiVec leaves the bitcoind integration test without the convenient sorted_node() call, leaving a HACK in find_sks_ms; the sortedmulti special-casing there should be dropped and sortedmulti treated like multi.", "category": "maintainability", "verdict": "supported", "priority": "...
null
rust-cli__config-rs__202
rust-cli/config-rs
202
defect
fd5c87a78e335097a1f714ec5a5a76ee79dd83cf
b822b1718f6e6d71a255529ce692c4d1a5628eb8
Add support for RON format
This change set adds support for the [RON](https://github.com/ron-rs/ron) format. The files are mostly copied and modified slightly from the existing format parsers, with the addition of handling the unit, character, and optional types. Resolves #116.
diff --git a/Cargo.toml b/Cargo.toml index bb265bb9..040124f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT/Apache-2.0" maintenance = { status = "actively-developed" } [features] -default = ["toml", "json", "yaml", "hjson", "ini"] +default = ["toml", "json", "yaml", "hjson", "ini", "ron"...
5
3
0
[{"id": "G0", "claim": "Please restructure from_ron_value to be one step at a time: bind the match result to a variable (match returns the ValueKind) and construct the return value at the end instead of wrapping everything in Ok(...).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "...
null
rust-cli__config-rs__207
rust-cli/config-rs
207
defect
3e5cae69c4a0057ed523df2e8d42db83f7e684ba
519dda876f2cec13b8f76b8ad3895dd730373f59
Add AsyncSource with tests, docs and examples
Resolves #148 This pull request adds a new type of source - `AsyncSource`, that supports `async fn`. Also, it modifies the builder in order to handle it properly. Builder implementation based on [this article](http://cliffle.com/blog/rust-typestate/). There is no implementation of such a source inside the librar...
diff --git a/Cargo.toml b/Cargo.toml index 35b1ab33..dbbb6044 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "config" -version = "0.11.0" +authors = ["Ryan Leckey <leckey.ryan@gmail.com>"] +categories = ["config"] description = "Layered configuration system for Rust applications." +editi...
7
5
1
[{"id": "G0", "claim": "The Cargo.toml alphabetical reordering of [package] fields and the [badges] reformatting is not necessary for the PR and should be reverted.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding the async-trait dependency in the m...
null
rust-cli__config-rs__255
rust-cli/config-rs
255
defect
d27338f50ddf033a8b516dc011174807dfdc7558
4ec2bd603548a56fbf8c1a54104556b8cdfc4694
feat: env contains list of strings
Signed-off-by: simon-an <26556185+simon-an@users.noreply.github.com> fixes #117
diff --git a/examples/env-list/main.rs b/examples/env-list/main.rs new file mode 100644 index 00000000..f567419b --- /dev/null +++ b/examples/env-list/main.rs @@ -0,0 +1,25 @@ +use config::Config; +#[derive(Debug, Default, serde_derive::Deserialize, PartialEq)] +struct AppConfig { + list: Vec<String>, +} + +fn main(...
2
2
0
[{"id": "G0", "claim": "The commit message should be fixed and include a real signoff line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The #[must_use] annotations on the Environment builder methods should not have been removed from src/env.rs....
null
rust-cli__config-rs__381
rust-cli/config-rs
381
defect
8677511677e143954a4479668316d644e4737ead
f8e577f299370ed4b9a0b5a352f42eb899f86c01
env: add a 'convert_case' field to ease dealing with kebab-case
This allows usage of `kebab-case` attribute in serde, mapping unambiguously into a config value given a multiple character separator. This also add the `convert-case` feature. For example: let environment = Environment::default() .prefix("PREFIX") .translate_key(Case::Kebab) .se...
diff --git a/Cargo.toml b/Cargo.toml index 5f6f705f..34e5532a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,11 +15,12 @@ edition = "2018" maintenance = { status = "actively-developed" } [features] -default = ["toml", "json", "yaml", "ini", "ron", "json5"] +default = ["toml", "json", "yaml", "ini", "ron", "json5",...
1
1
1
[{"id": "G0", "claim": "The re-export `pub use convert_case::Case;` in src/lib.rs should be feature-gated so the crate builds when the convert-case feature is excluded.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
rust-cli__config-rs__44
rust-cli/config-rs
44
defect
13151213a7b368296c616e0a770fb2c238fff1a0
9826b2cda730116e148120dafe0fa89bd389626e
Added HJSON (Human-Readable JSON) as a config file format
HJSON is, for all intents and purposes, an alternative serialization of JSON. This pull request adds support for it. It reuses the excellent work done by @laktak in [hjson-rust](https://github.com/hjson/hjson-rust) and integrates with serde. (Background: I'm working on a project where TOML is too limited in its s...
diff --git a/Cargo.toml b/Cargo.toml index 1317a278..c3789ab4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,9 +14,10 @@ license = "MIT/Apache-2.0" travis-ci = { repository = "mehcode/config-rs" } [features] -default = ["toml", "json", "yaml"] +default = ["toml", "json", "yaml", "hjson"] json = ["serde_json"] ya...
1
1
0
[{"id": "G0", "claim": "The hjson feature should not be added to the crate's default features list.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
rust-cli__config-rs__627
rust-cli/config-rs
627
defect
9a0c1a16aa4b092f1ff3220243fc38465fd10271
11f353477b435d58078562516e2edf278ff19d9d
treat nil parents as empty tables if required
Encountered this regression via nextest's test suite (https://github.com/nextest-rs/nextest/pull/2001). If a table is empty, it would be treated as a unit value. If attempted to be deserialized via a `Default` impl, this would lead to deserialization failing with an error like ```console profile.default-miri: inval...
diff --git a/src/path/mod.rs b/src/path/mod.rs index 333a4d57..2fa5af2b 100644 --- a/src/path/mod.rs +++ b/src/path/mod.rs @@ -150,12 +150,16 @@ impl Expression { let parent = self.get_mut_forcibly(root); match value.kind { ValueKind::Table(ref incoming_map) => { + // If th...
4
4
2
[{"id": "G0", "claim": "The empty-maps test does not belong in the toml tests since the issue is not toml-related; outside of format tests json is the go-to, so the test should be moved there.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fix shoul...
null
rust-cli__config-rs__635
rust-cli/config-rs
635
defect
cc1ba8bdb46f851ffd25c725efd24bd323a07385
2edaa40f33768f5f86bfce67810c42e2e3e15dcd
fix: Add key tracking for all error types
We already track `key` for invalid type errors and this extends it to all other error types. I created `ConfigError::At` variant to avoid breaking changes. We can revisit that design when making a breaking change. Closes #632
diff --git a/src/error.rs b/src/error.rs index 2d738b94..8466ca3c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -78,6 +78,21 @@ pub enum ConfigError { key: Option<String>, }, + /// Custom message + At { + /// Error being extended with a path + error: Box<ConfigError>, + + //...
2
2
0
[{"id": "G0", "claim": "The `pub(crate) fn extend_with_origin` that the pull request adds to ConfigError is never used anywhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inside `extend_with_origin` the `origin` binding is already a `String...
null
rust-cli__config-rs__695
rust-cli/config-rs
695
defect
69288bdb3a52b613ff1cf4e6b73d19bed7f5bb03
80c481a835b918267a023e7a95d4d4f62951ef78
feat: Improve errors from try_deserialize
Enables user code to handle missing and invalid fields after calling try_deserialize instead of having to match and search in the string returned in `ConfigError::Message`. Personally I deem the `String::leak` call safe for my usage, as I would expect to terminate my program on configuration errors anyhow, however w...
diff --git a/src/error.rs b/src/error.rs index a63f7c16..41871a38 100644 --- a/src/error.rs +++ b/src/error.rs @@ -37,6 +37,34 @@ impl fmt::Display for Unexpected { } } +impl From<de::Unexpected<'_>> for Unexpected { + fn from(value: de::Unexpected<'_>) -> Self { + match value { + de::Unexp...
2
2
1
[{"id": "G0", "claim": "The error message produced for a missing field should be updated to better match serde's text because the current wording is confusing, and the change should be made in a separate commit.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
rust-cli__human-panic__24
rust-cli/human-panic
24
defect
e82d2ed28f5802959f4f78f36ae8eed863dff445
1785e49403bbedc2918ef16227a4bfd6391fb29b
Add simple integration test & infrastructure
Turns this repository into a cargo workspaces and adds a sub-crate with the wonderful name 'simple-human-panic-test' that lives in the new `tests/` directory. This should be of no consequence to the actual crate itself or its deployment to crates.io, but allows us to easily test how human-panic works when in an externa...
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3c1f41b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + + +[*] +end_of_line = lf +cha...
1
1
0
[{"id": "G0", "claim": "The name \"simple\" for the integration-test workspace member is unclear about what should be inside it; a more specific name such as \"tests/single_panic\" might be clearer as to what it's testing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
rust-cli__roff-rs__15
rust-cli/roff-rs
15
defect
690196644c1aca73b986c9e66c91d5e26a62e9c0
c142071e3ee02fde724168e7fecaf7d6b95f0c2c
feat! rewrite to be for ROFF, not manual pages
While looking at generating manual pages from clap:App (see, for example, <https://github.com/clap-rs/clap/pull/3174>), I reviewed the roff crate. I found several things that I think could be improved: * It mixes concerns. Some of the crate functionality is aimed at generating source for manual pages, and not j...
diff --git a/src/lib.rs b/src/lib.rs index 0947e28..db2fb64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,110 +1,451 @@ -use std::fmt::Write; +//! A document in the ROFF format. +//! +//! [ROFF] is a family of Unix text-formatting languages, implemented +//! by the `nroff`, `troff`, and `groff` programs, among others....
10
9
1
[{"id": "G0", "claim": "Library functions like `Roff::control` would preferably take `impl Into<String>` instead of `&str` for arguments they convert to a `String` anyway, as that is slightly more flexible.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
rust-crdt__rust-crdt__60
rust-crdt/rust-crdt
60
defect
eb9b60644b96186a667211de46138956d33a64f8
8d59e6b9c5341a9317f2f4bc79044ad3c4bc8c9a
Support add/remove of multiple elements
Added `add_all` and `rm_all` methods to `Orswot` to address #57.
diff --git a/src/orswot.rs b/src/orswot.rs index c10fe34..93e0088 100644 --- a/src/orswot.rs +++ b/src/orswot.rs @@ -3,6 +3,7 @@ use std::collections::{HashMap, HashSet}; use std::cmp::Ordering; use std::fmt::Debug; use std::hash::Hash; +use std::iter::{once, FromIterator}; use std::mem; use serde::{Deserialize,...
2
2
2
[{"id": "G0", "claim": "Changing Op::Add from `member: M` to `members: HashSet<M>` alters the serde format so old serialized data can no longer be read; it is a breaking change and the major version should be bumped in this PR per semver.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
rust-crdt__rust-crdt__64
rust-crdt/rust-crdt
64
defect
ea43b7989efb4cdb5332f60d98143b40decdcf07
4c4768e1bc77ec85bc07d5c9860a3b96c8711226
Loosen trait bounds
As mentioned in #63 I wanted to propose that traits are loosened. * I removed `Debug` and `Clone` from some of them. They ended up not being used. * For cases that they were used, I tried to localise them on the functions that needed them. * For cases that left only one needed trait, I replaced the old trait. For ...
diff --git a/src/gset.rs b/src/gset.rs index 13a3f8a..09928ee 100644 --- a/src/gset.rs +++ b/src/gset.rs @@ -1,7 +1,5 @@ -use std::collections::BTreeSet; -use std::fmt::Debug; - use serde::{Deserialize, Serialize}; +use std::collections::BTreeSet; use crate::traits::{CmRDT, CvRDT}; @@ -36,7 +34,7 @@ impl<T: Ord +...
5
4
3
[{"id": "G0", "claim": "The update method that is called with a default value should be named update_with_default, to match Rust naming conventions such as Vec::with_capacity and to be less of a breaking change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
rust-crdt__rust-crdt__74
rust-crdt/rust-crdt
74
defect
ea43b7989efb4cdb5332f60d98143b40decdcf07
d0ca06d1a8d907d336e483d8d847b0aa4a9cc7a8
Add LSeq type and implementation
I'm opening this pull request now so that everyone can see the implementation. The major thing I'd like to do before considering this ready to merge is to write more property tests. I'd also like to write longer docs and cite the relevant [2][3]papers in those. It could also be possible to use an actual expon...
diff --git a/Cargo.toml b/Cargo.toml index a6ee6a6..e0e5fc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,12 @@ path = "test/test.rs" [dependencies] num-bigint = "0.2.1" serde = { version = "1.0", features = ["derive"] } +rand = "0.7" +bitvec = "*" [dev-dependencies] -quickcheck = "0.6.2" -rand = "0.4" +...
17
14
1
[{"id": "G0", "claim": "The clock and site id should both be wrapped in newtypes to make them more clear.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs should explain why the Delete op's remote field is necessary.", "category": "documentation",...
null
rust-crdt__rust-crdt__94
rust-crdt/rust-crdt
94
defect
45823f5aa95da0d538aeffe40e604fef7a1d1891
23bb543799eaa5c174c2683a62dedeb88571f94b
lseq: do not apply op automatically, require apply method call
Right now it seems LSeq is the only CRDT type to automatically apply ops when funcs are called on a given instance. This PR brings Lseq inline in requiring that `lseq.apply(op)` to be called to change the lseq itself
diff --git a/src/lseq.rs b/src/lseq.rs index 99f5547..c0d9b56 100644 --- a/src/lseq.rs +++ b/src/lseq.rs @@ -163,8 +163,7 @@ impl<T: Clone, A: Actor> LSeq<T, A> { dot: self.dot.clone(), val, }; - // TODO: refactor to follow the library API (don't apply ops immediately) - ...
6
6
3
[{"id": "G0", "claim": "The insert path (around L160) should increment the dot for the op itself rather than as a separate step, so the op carries the incremented dot without an extra increment.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sam...
null