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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rustls__rustls__2097 | rustls/rustls | 2,097 | defect | cc403427b0dccdb46e6557d0c762e508112d705c | 4184fa92526958b9ed0bfd5c5b19762521bc355a | Ensure only max_early_data_size will be read after reading from ReadEarlyData | I'm not sure how to write a test for this
resolves #2096 | diff --git a/rustls/src/server/server_conn.rs b/rustls/src/server/server_conn.rs
index 515b312d6b6..9a66b72f9ed 100644
--- a/rustls/src/server/server_conn.rs
+++ b/rustls/src/server/server_conn.rs
@@ -988,7 +988,10 @@ impl State<ServerConnectionData> for Accepting {
pub(super) enum EarlyDataState {
New,
- Ac... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a space before the `{{` in the Debug format string for EarlyDataState::Accepted.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's changed behaviour has no test coverage yet, which djc notes is pending... | null |
rustls__rustls__2120 | rustls/rustls | 2,120 | defect | 641e26eeb26ed6b44a6c07ca272cafde69de9004 | e8bd613524e59bf0f11b0f18da0d649e6e16663d | Send flights of handshake messages in single message | This is generally only valuable for TLS1.3, where we're saving encryption overheads several times over. For TLS1.2 there are no encrypted handshake messages, so we're only saving 20 bytes on the wire in the server -> client direction.
fixes #2041 | diff --git a/rustls/src/common_state.rs b/rustls/src/common_state.rs
index 44b30644fbd..6b6ddc26dc4 100644
--- a/rustls/src/common_state.rs
+++ b/rustls/src/common_state.rs
@@ -6,12 +6,14 @@ use pki_types::CertificateDer;
use crate::crypto::SupportedKxGroup;
use crate::enums::{AlertDescription, ContentType, Handshake... | 7 | 5 | 0 | [{"id": "G0", "claim": "Instead of adding the new `add` wrapper, `update_raw()` should be renamed to `add_raw()` so the name matches the purpose of adding an already-encoded handshake message.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The n... | null |
rustls__rustls__2172 | rustls/rustls | 2,172 | defect | 3890cd74601bfb4d19bf4fa52e812b7d7fdea1f8 | 17abb94e333f48625e07db405848561a13580e08 | Make ciphersuite enum smaller | We can't remove variants without a breaking API change (saved #2171 for later) but we can reduce the expense and size of `Debug` on it now.
This doesn't do anything for `fn to_str` but that function doesn't have the viral property that `Debug` has: if you don't want the strings in that function, just don't call it.
... | diff --git a/rustls/src/client/handy.rs b/rustls/src/client/handy.rs
index c8b1836b945..9276b264c38 100644
--- a/rustls/src/client/handy.rs
+++ b/rustls/src/client/handy.rs
@@ -277,20 +277,21 @@ impl client::ResolvesClientCert for AlwaysResolvesClientRawPublicKeys {
}
test_for_each_provider! {
- use std::prelude... | 1 | 1 | 0 | [{"id": "G0", "claim": "The per-variant `NoDebug` marker in the enum_builder DSL looks random and unusual, and an attribute or comment-like syntax should be considered instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__2265 | rustls/rustls | 2,265 | defect | e232bcae61cb1e108960673d828ac9d05224c881 | 7f0b09ed874d92026f591e518d20773c9f8236ac | Support `certificate_authorities` extension in ClientHello | This PR adds support for the [`certificate_authorities`](https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.4) extension in ClientHello by:
- On the client side, adding a default method to `ServerCertVerifier` that asks for CA names to be sent with ClientHello,
- On the server side, adding the method `ce... | diff --git a/Cargo.lock b/Cargo.lock
index 3055e41aaaf..bc26e7afb96 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -141,6 +141,45 @@ dependencies = [
"itoa",
]
+[[package]]
+name = "asn1-rs"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5493c3bedbacf7fd7382c6346bbd6... | 12 | 12 | 0 | [{"id": "G0", "claim": "The `&b\"...\"[..]` ceremony in `KeyType::ca_distinguished_name()` should be removed since the coercion works without it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The TLS-1.2 exclusion in ExpectClientHello should ... | null |
rustls__rustls__2312 | rustls/rustls | 2,312 | defect | eb28df3fd099bb27a20404af148a6440b4207f03 | 110f3b7ca8bb59087aa9bd51f1e28673187e1e27 | implement quic multipath encryption | At https://github.com/n0-computer we are working on implementing [multipath](https://datatracker.ietf.org/doc/draft-ietf-quic-multipath/) in [`quinn`](https://github.com/quinn-rs/quinn). Multipath requires a few changes in the nonce calculation for packet protection (described in section 4.1).
This PR implements tho... | diff --git a/rustls/src/crypto/cipher.rs b/rustls/src/crypto/cipher.rs
index 64901a577bf..d99127777bd 100644
--- a/rustls/src/crypto/cipher.rs
+++ b/rustls/src/crypto/cipher.rs
@@ -213,18 +213,32 @@ impl Nonce {
/// This is `iv ^ seq` where `seq` is encoded as a 96-bit big-endian integer.
#[inline]
pub f... | 10 | 10 | 2 | [{"id": "G0", "claim": "The new PacketKey trait methods need default implementations so that the change does not require a semver-incompatible release.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Nonce::new_from_seq should be private rather than publi... | null |
rustls__rustls__2332 | rustls/rustls | 2,332 | defect | 6ee9aca6a5192153b319ab81d8e433abe4ee0b65 | d39c910aeeaca00459a4cd73a2a7c58267750e2d | unbuffered: introduce `PeerClosed` state | `Closed` was, and remains, the bi-directional, terminal closure state.
Because `rustls::unbuffered::ConnectionState` is a `non_exhaustive` enum, this is not a breaking API change. However, it demands a clear release note because downstream users will now encounter the new state.
fixes #1895
| diff --git a/rustls/src/common_state.rs b/rustls/src/common_state.rs
index 9b9ab3f7f4c..adb3c2beb3a 100644
--- a/rustls/src/common_state.rs
+++ b/rustls/src/common_state.rs
@@ -40,6 +40,8 @@ pub struct CommonState {
pub(crate) may_receive_application_data: bool,
pub(crate) early_traffic: bool,
sent_fatal... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new test helpers in rustls/tests/unbuffered.rs (e.g. read_traffic) would be clearer written with a match expression than with if let/else.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new field emitted_peer_clos... | null |
rustls__rustls__2338 | rustls/rustls | 2,338 | defect | 11ce78e1468dd38bb4b099cae9a9e1492e26f501 | 6795c1c7995f9f56baab4a861afe0f2d16ca31bc | unbuffered: do not prematurely consume data | This alters `ReadTraffic` and `ReadEarlyData` so that their `next_record()` functions are where the data is consumed, allowing `peek_len()` functions work as intended.
fixes #2031 | diff --git a/rustls/src/conn/unbuffered.rs b/rustls/src/conn/unbuffered.rs
index ffe14c75f7d..661ccb171da 100644
--- a/rustls/src/conn/unbuffered.rs
+++ b/rustls/src/conn/unbuffered.rs
@@ -53,15 +53,15 @@ impl<Data> UnbufferedConnectionCommon<Data> {
break (buffer.pending_discard(), execute(self, incom... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `ch` binding that maps the popped chunk should be renamed to `payload` (or `chunk`) for readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `peek()` method in vecbuf.rs should be moved below the `&mut`... | null |
rustls__rustls__2422 | rustls/rustls | 2,422 | defect | c5b9b10147d8c448f251cbb77192daf9770e309e | b4880c9e8e7fd70efb4ee9050b86804b1cc51387 | 0.23.26: Detect and error on faulty `io::Write::write_vectored` | fixes #2316
# Release notes for 0.23.26
- *Bug fix*: in certain circumstances we saw `std::io::Write::write_vectored` implementations that reported writing more bytes than were available, in violation of that method's invariants. This seems to happen on macOS with certain VPN software active. Now we detect and r... | diff --git a/rustls/src/vecbuf.rs b/rustls/src/vecbuf.rs
index ddc150d529e..0c95ca0a505 100644
--- a/rustls/src/vecbuf.rs
+++ b/rustls/src/vecbuf.rs
@@ -200,8 +200,20 @@ impl ChunkVecBuffer {
prefix = 0;
}
let len = cmp::min(bufs.len(), self.chunks.len());
- let used = wr.write_vec... | 1 | 1 | 0 | [{"id": "G0", "claim": "A link to https://github.com/rustls/rustls/issues/2316 should also be added near the used > available_bytes check in write_vectored, since it is not immediately obvious why the check exists and the only referenced test is far away.", "category": "documentation", "verdict": "supported", "priority... | null |
rustls__rustls__2550 | rustls/rustls | 2,550 | defect | b3f570102ee0ffdacda1a4d527903fca40f2e65b | b581a0a3456d5be50cec81fd1738cdc24161963b | post-quantum: add unstable ML-DSA support | Fixes #2417. | diff --git a/Cargo.lock b/Cargo.lock
index ec50771f9cf..ecad511a5df 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1408,7 +1408,7 @@ dependencies = [
"once_cell",
"rand 0.9.1",
"ring",
- "rustls 0.23.28",
+ "rustls 0.23.29",
"thiserror 2.0.12",
"tinyvec",
"tokio",
@@ -1433,7 +1433,7 @@ dependencies = [
"par... | 4 | 3 | 0 | [{"id": "G0", "claim": "Keep the rustls-post-quantum crate's dependency on rustls at 0.23.x for longer rather than moving to 0.24.0-dev.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "bogo should no longer depend on rustls-post-quantum, now that post-qua... | null |
rustls__rustls__2573 | rustls/rustls | 2,573 | defect | 87f37dd44e32b2771fa471a5d8111749ca9e7aa7 | 9d19e9c13e74ec4bff8033bfb25748a229f5b4ae | Fix and defend `limitedclient` | `limitedclient` is meant to demonstrate how rustls's design scales down, and allows people to make quite small client/servers executables in exchange for limited TLS compatibility. Unfortunately that wasn't defended so broke a while back. | diff --git a/examples/src/bin/limitedclient.rs b/examples/src/bin/limitedclient.rs
index 701c75c703f..364ac78546c 100644
--- a/examples/src/bin/limitedclient.rs
+++ b/examples/src/bin/limitedclient.rs
@@ -19,7 +19,9 @@ fn main() {
CryptoProvider {
cipher_suites: vec![provider::cipher_suite::TLS13_... | 3 | 3 | 0 | [{"id": "G0", "claim": "is_aws_lc_rs_aes should be written as a closure instead of a top-level function, since it is small and has only one call-site.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a quick rustdoc module comment describing t... | null |
rustls__rustls__2586 | rustls/rustls | 2,586 | defect | f189222ca160c4e4eacf9fc511255ac43899d037 | 9ec3b2bb6f44d56bb891f80ae2bebebd1a776623 | Fix `complete_io()` for non-blocking IO | fixes #2584 re #2559 re #2556
This introduces improved testing of `complete_io()` (tests which demonstrate the lack of progress bug reported in #2584) and then fixes it in two ways. It also fixes a case where the original issue would return `(0, 0)` rather than the desired error.
I don't much like `complete_io()`... | diff --git a/rustls-test/src/lib.rs b/rustls-test/src/lib.rs
index 51819a4df58..585e8340991 100644
--- a/rustls-test/src/lib.rs
+++ b/rustls-test/src/lib.rs
@@ -985,6 +985,66 @@ impl io::Read for FailsReads {
}
}
+/// An object that impls Read and Write and raises WouldBlock a lot.
+///
+/// This object panics ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test helper's name `NonBlockError` doesn't map well to its documented behaviour and its headline doc comment could be improved (e.g. renamed to something like `MockInputOutput`/`AccountingIO`, with the `WouldBlock` detail moved to a second line).", "category": "maintainability", "verdict... | null |
rustls__rustls__2605 | rustls/rustls | 2,605 | defect | dbed95fd33263884ae10aab2b79717001765a826 | cb508d7b8f597fedc3cdbe2304da2db21aba437e | impl `Display` for `AlertDescription` | Use this to provide some human-readable descriptions of what these mean, and hopefully are moderately understandable for people who see them.
Failing that, they are unique strings and some additional comments are nearby if someone looks at the source where they appear(?)
This looks like:
```
$ cargo -q run --... | diff --git a/connect-tests/tests/badssl.rs b/connect-tests/tests/badssl.rs
index 4b9210ef0cd..3a571ae6421 100644
--- a/connect-tests/tests/badssl.rs
+++ b/connect-tests/tests/badssl.rs
@@ -15,7 +15,9 @@ mod online {
fn no_cbc() {
connect("cbc.badssl.com")
.fails()
- .expect(r"TLS e... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Display strings for AlertDescription are written from the receive side ('the peer ...') even though the type is used both as a send and a receive type, and the reviewer asked for wording that naturally reflects the send side too — with the PR author proposing that the 'the peer ' prefix ... | null |
rustls__rustls__2608 | rustls/rustls | 2,608 | defect | cadd48e21e7fef0d02c1c703cab29ea0c90ae49f | 64682937b6f2a57fc1f77d5e8331ba6fe8de9ed9 | Replace exporter API | This represents the exporter key material inside its own object, where the application controls the lifetime. The application chooses when to take the object, and can do that at most once for a given connection.
The application can choose to keep the object alive indefinitely alongside the connection to obtain an e... | diff --git a/rustls/src/client/tls12.rs b/rustls/src/client/tls12.rs
index 04f77e55543..7bbb000dae6 100644
--- a/rustls/src/client/tls12.rs
+++ b/rustls/src/client/tls12.rs
@@ -1293,7 +1293,14 @@ impl State<ClientConnectionData> for ExpectFinished {
cx.common
.start_traffic(&mut cx.sendable_plai... | 6 | 5 | 0 | [{"id": "G0", "claim": "The `extracted_secrets` computation in the TLS1.2 `ExpectFinished` handlers (client and server) could use `.then()` and be inlined into the `ExpectTraffic` initializer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add c... | null |
rustls__rustls__2617 | rustls/rustls | 2,617 | defect | e0b908c51ccde3697e7a81533330964f0c80c266 | 75429558449ba6c065c85356c4deb0d1a048013d | Add option to relax SNI validation | Closes #2403 | diff --git a/rustls/src/lib.rs b/rustls/src/lib.rs
index 7990f966e3f..573d50238ba 100644
--- a/rustls/src/lib.rs
+++ b/rustls/src/lib.rs
@@ -611,7 +611,7 @@ pub mod server {
pub use handy::ServerSessionMemoryCache;
pub use handy::{AlwaysResolvesServerRawPublicKeys, NoServerSessionStorage};
pub use server... | 9 | 7 | 2 | [{"id": "G0", "claim": "The doc comment on the `ServerConfig::invalid_sni_policy` field should be reworded to the suggested editorial wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `InvalidSniPolicy` type-level doc should be reworded ... | null |
rustls__rustls__2618 | rustls/rustls | 2,618 | defect | a84d3e47388f0aa57ed96a81d4f85a46ffdab439 | c1bdb95ede9af724559467dbe930e250fe36ed39 | Add API for early exporter | This provides:
- `fn exporter()` on `WriteEarlyData` for clients
- `fn exporter()` on `ReadEarlyData` for servers
Since BoringSSL/bogo does not support this (though Go does!) I added an adhoc test in openssl-tests.
fixes #2406 | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index a66b2e82160..7cf11030a31 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -1334,20 +1334,22 @@ fn exec(opts: &Options, mut sess: Connection, key_log: &KeyLogMemo, count: usize
if !sess.is_handshaking() && opts.export_keying_material > 0 && !sent_e... | 2 | 2 | 0 | [{"id": "G0", "claim": "Import `SslConnector` instead of using the fully-qualified `openssl::ssl::SslConnector` path.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `#[allow(deprecated)]` justification is unclear; the reviewer asks whether t... | null |
rustls__rustls__2623 | rustls/rustls | 2,623 | defect | 013877049254f25d7f5b7f522e5e27084c32f16f | 2539a904750304f55b28f86b140ae4cfe8ae39ab | QUIC: add resumption data set and read via quic connection | The application layer can provision TLS session resumption data via QUIC connections. A common use case is QUIC 0-RTT, where resumption data serves to store and retrieve 0-RTT parameters which is bound to session ticket. | diff --git a/rustls/src/quic.rs b/rustls/src/quic.rs
index 3dfcf4e6a59..df70b398609 100644
--- a/rustls/src/quic.rs
+++ b/rustls/src/quic.rs
@@ -117,6 +117,42 @@ mod connection {
Self::Server(conn) => conn.core.exporter(),
}
}
+
+ /// Set the resumption data to embed in fut... | 7 | 7 | 3 | [{"id": "G0", "claim": "Once rustls#2620 lands, the new `Error::General` usages in quic.rs (e.g. the one returned by `Connection::set_resumption_data` for client connections) would be a good candidate for an `ApiMisuse` error, and ditto for the other `Error::General` usages.", "category": "design", "verdict": "supporte... | null |
rustls__rustls__2628 | rustls/rustls | 2,628 | defect | 4fbe829cf8c2b2f869cb3fd55937ae8f42336732 | fb775e8dc6a0d2aa19454dd17a3653bb64e56136 | Clarify and extend tests for plaintext buffer limits | This contains and therefore fixes #2382
| diff --git a/rustls/src/conn.rs b/rustls/src/conn.rs
index dd771566df5..eca9b6dc0dc 100644
--- a/rustls/src/conn.rs
+++ b/rustls/src/conn.rs
@@ -135,6 +135,16 @@ mod connection {
}
}
+ /// Sets a limit on the internal plaintext buffer.
+ ///
+ /// See [`ConnectionCommon::set... | 1 | 1 | 0 | [{"id": "G0", "claim": "The nested `test` helper inside `test_received_plaintext_backpressure` should be extracted into a top-level helper function, because the extra indentation level is undesirable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__2636 | rustls/rustls | 2,636 | defect | c981e1797a5cb43aee96007b0ff33ab4916bf6c4 | 50d138f13dfcebf0c51d634a07b2330066432128 | verify: introduce PeerIdentity type | Next step towards the vision from
- #2560
Previously:
- #2634 (-25)
- #2633 (+26)
- #2632 (-48)
- #2614 (-78)
This does expose the existence of non-certificate identities in the `CommonState::peer_identity()` API that replaces `peer_certificates()`, but otherwise confines the complexity mostly to verifie... | diff --git a/openssl-tests/src/raw_key_openssl_interop.rs b/openssl-tests/src/raw_key_openssl_interop.rs
index aeebe0c6dad..a86ba95a849 100644
--- a/openssl-tests/src/raw_key_openssl_interop.rs
+++ b/openssl-tests/src/raw_key_openssl_interop.rs
@@ -14,11 +14,11 @@ mod client {
HandshakeSignatureValid, ServerCe... | 5 | 4 | 0 | [{"id": "G0", "claim": "The client yields `Error::NoCertificatesPresented` without sending any alert when the peer presents no certificates (unlike the mandatory server paths, which send `CertificateRequired`), and the message asks whether the client should send an alert for this too.", "category": "correctness", "verd... | null |
rustls__rustls__2655 | rustls/rustls | 2,655 | defect | 9e98876b94afd435bb53626c7353d24081eb623b | 84de7435f8a52d3e26a42857aac3978d86a6fc5d | Spell check code using `typos` | fixes #2099 | diff --git a/.github/typos.toml b/.github/typos.toml
new file mode 100644
index 00000000000..67845af8b18
--- /dev/null
+++ b/.github/typos.toml
@@ -0,0 +1,9 @@
+[default.extend-words]
+# encrypter as an active verb
+encrypter = "encrypter"
+
+# "type", but side-stepping the keyword and avoiding the very ugly r#type
+ty... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the deliberately misspelled 'independant' line this pull request adds to the ActiveKeyExchange docs in rustls/src/crypto/mod.rs before merging.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The typos step is the fir... | null |
rustls__rustls__2673 | rustls/rustls | 2,673 | defect | 5d7e5fb56b9a8009d5004a4d902b559984ec32bd | c1494c9981ca5ae565f74b23138009cdf436b64a | Take MSRV of 1.83 | According to our MSRV policy, that means the earliest release of 0.24 could be November. That is OK I think.
Aside from the improvements in this PR, the impetus is static-in-consts support which is needed for a much better formulation of #2652. | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6c68b832078..40cdb475dcf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -130,7 +130,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
- toolchain: "1.79"
+ toolchain: "1.8... | 2 | 2 | 1 | [{"id": "G0", "claim": "The webpki dependency needs an MSRV bump too: with this change the cast at rustls/src/webpki/mod.rs:134 fails to compile because webpki::Error does not implement core::error::Error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim... | null |
rustls__rustls__2686 | rustls/rustls | 2,686 | defect | b37d05c18a25fe1907fbaffac2f14d139e7cc314 | b5cfc29200d9fc7527dabc331e27b81b5e6c18a5 | Clarify internals | The less opinionated parts of
- #2669
I think these might still be useful even if we don't want to merge that PR?
(In particular, playing with borrowed states required making it obvious that the `Data` (`Side`) argument is `'static`, which is easier if there is a trait bound already.) | diff --git a/rustls/src/common_state.rs b/rustls/src/common_state.rs
index 48b6810fbe1..d017a6583a7 100644
--- a/rustls/src/common_state.rs
+++ b/rustls/src/common_state.rs
@@ -832,12 +832,12 @@ impl IoState {
}
}
-pub(crate) trait State<Data>: Send + Sync {
+pub(crate) trait State<Side>: Send + Sync {
fn ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `data`-named fields and parameters (the `ConnectionCore::data` field, the `data` argument of `ConnectionCore::new`, and `_data` in `KernelConnection`) should be renamed to `side`, consistently with the `Side` generic parameter.", "category": "maintainability", "verdict": "supported", "priori... | null |
rustls__rustls__2696 | rustls/rustls | 2,696 | defect | df92803fdecce23459c30704c08a471f180ed5d9 | d0e5235365a4f8f37fcca55069f5fa286dae26e8 | client: pass negotiated certificate type into resolve() | Fixes #2258. | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index d12ca2e949b..12ab4930e7b 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -579,6 +579,7 @@ impl MultipleClientCredentialResolver {
impl client::ResolvesClientCert for MultipleClientCredentialResolver {
fn resolve(
&self,
+ _negotiated_t... | 1 | 1 | 0 | [{"id": "G0", "claim": "Wrap the resolve() parameters (negotiated certificate type, root hint subjects, signature schemes) in a struct, analogous to the server-side ClientHello.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__2697 | rustls/rustls | 2,697 | defect | 3074bd129f64959d48d1dea5e1bac0957a719861 | cc78b6c264791eb32f596c145f58650fbcc33c48 | client: bundle resolve() arguments up in a type | Following up on
- https://github.com/rustls/rustls/pull/2696#discussion_r2401152220 | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index 12ab4930e7b..526fe178107 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -32,8 +32,8 @@ use rustls::client::danger::{
HandshakeSignatureValid, PeerVerified, ServerIdentity, ServerVerifier,
};
use rustls::client::{
- ClientConfig, ClientConnection,... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `ca_distinguished_name` helper should use the more idiomatic and concise `&b\"...\"[..]` form instead of the `as &'static [u8]` cast, and a plain `.into()` suffix should work given the return type constraint.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":... | null |
rustls__rustls__2705 | rustls/rustls | 2,705 | defect | fc93866d41f882a117d6635296e3ecb08535aebf | 29332dd68ab2bd86f3056aa85591df42b8e4a62c | Rework hybrid key exchange arrangements | Have an enum that allows `SupportedKxGroup::start()` to return more specific trait types, and then trace that through everywhere.
`HybridKeyExchange` is an extension to `ActiveKeyExchange` that adds the hybrid key exchange parts.
This is the final TODO for, and therefore fixes #2119 | diff --git a/openssl-tests/src/ffdhe.rs b/openssl-tests/src/ffdhe.rs
index c3702ffe18b..263f6d55a88 100644
--- a/openssl-tests/src/ffdhe.rs
+++ b/openssl-tests/src/ffdhe.rs
@@ -1,7 +1,7 @@
use num_bigint::BigUint;
use rustls::crypto::{
- ActiveKeyExchange, CipherSuiteCommon, KeyExchangeAlgorithm, SharedSecret, Sup... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new doc sentence on SupportedKxGroup::start should say \"exchanges\" (plural) where it currently reads \"allows the exchange to be completed together or separately\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The a... | null |
rustls__rustls__2746 | rustls/rustls | 2,746 | defect | d7675e3c09eb5d7b8553406750e3954fc8fd9fee | 2b41401d36d16cb3c3069feda31f1fc7a88a46ae | Remove intermediate `CommonState.received_plaintext` buffer in unbuffered API | Recently I tried to make use of the unbuffered API in a project and in an effort to understand the internals I was surprised to see that it uses an intermediate buffer `CommonState.received_plaintext` instead of decrypting in-place.
Similarly for issue #1723 it is difficult to implement the buffered API on top of th... | diff --git a/rustls/src/client/client_conn.rs b/rustls/src/client/client_conn.rs
index e2fa3dacf43..37eb4c35a6b 100644
--- a/rustls/src/client/client_conn.rs
+++ b/rustls/src/client/client_conn.rs
@@ -18,6 +18,7 @@ use crate::enums::{CertificateType, CipherSuite, ProtocolVersion, SignatureSchem
use crate::error::Error... | 4 | 3 | 1 | [{"id": "G0", "claim": "The test read_traffic_not_consumed_too_early fails because the unbuffered API no longer keeps data available via peek_len() until next_record() is called, and the author is unsure how to address it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
rustls__rustls__2754 | rustls/rustls | 2,754 | defect | db01b036f4ffbcfff797a3818ce73f0f2cd663ea | befc861fcbb9a0f3a730876f1ab1b43b5d48e3c2 | crypto: access ticketer via crypto provider | Fixes #1876 by providing an optional `TicketerFactory` implementation in `CryptoProvider`s.
@cpu in that issue:
> I'm not sure that we want to link the `ProducesTicketer` implementation into the `CryptoProvider` struct as a field but I'm curious what others think. 🤔
>
> There's not really a "default" tickete... | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index 02c27e0c7a5..3f53d5290eb 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -54,9 +54,7 @@ use rustls::pki_types::{
CertificateDer, EchConfigListBytes, PrivateKeyDer, ServerName, SubjectPublicKeyInfoDer,
};
use rustls::server::danger::{ClientIdentity, C... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ticketer_factory field on CryptoProvider should be made mandatory instead of an Option, with a genuine inability to make a ticketer expressed by returning an error from ticketer().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__2757 | rustls/rustls | 2,757 | defect | 01067711d34a0e06c2b2e2d5b4fc1245df8c5475 | c9825563ade506625be11337c4cc1d23e4ed588b | Mandatory ticketers | As suggested in:
- #2754 (and subsequently discussed on Discord)
Depends on:
- #2755 | diff --git a/Cargo.lock b/Cargo.lock
index c30ae50267e..f430b21fb17 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2656,6 +2656,7 @@ dependencies = [
"rustls 0.24.0-dev.0",
"sha2",
"signature",
+ "subtle",
"webpki-roots 1.0.3",
"x25519-dalek",
]
diff --git a/provider-example/Cargo.toml b/provider-example/Cargo... | 3 | 3 | 0 | [{"id": "G0", "claim": "The Debug impl of `AeadTicketer` reports the wrong type name \"Rfc5077Ticketer\"; it should use the correct type name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RFC 5077 references in provider-example/src/tickete... | null |
rustls__rustls__2767 | rustls/rustls | 2,767 | defect | fabc9a6c685a245fff63bdf88580457b64b33b03 | ae23d853bf2b36009fbc5b1c85c7c1bf63cf0006 | Simplify plaintext send | I am hoping to make some progress towards a proposal for in-place encryption, this PR arose as an opportunity along the way to simplify some related logic.
- `CommonState::send_plain` is only called with parameter `Limit::Yes` in `CommonState::buffer_plaintext` leading to dead code
- `CommonState::send_plain_non_bu... | diff --git a/rustls/src/common_state.rs b/rustls/src/common_state.rs
index 366251d51b9..e0b68776a04 100644
--- a/rustls/src/common_state.rs
+++ b/rustls/src/common_state.rs
@@ -345,31 +345,17 @@ impl CommonState {
}
/// Like send_msg_encrypt, but operate on an appdata directly.
- fn send_appdata_encrypt(... | 4 | 3 | 0 | [{"id": "G0", "claim": "The pull request's changes should be made in smaller commits - ideally one commit per function where the `limit` argument is removed - so that each step's correctness is obvious when reviewing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
rustls__rustls__2775 | rustls/rustls | 2,775 | defect | e790a90ec5ddcb50bb9304dd3599f131d47d324a | a67ae5c2749e393c1298f424f9afe35aa922fbfc | Rework handshake "alignment" checks | This is a precursor to moving away from the state machine having unlimited mutable access to `CommonState`.
But so far is just replacing a bool with a zero-size type that demonstrates the dataflow from the handshake deframer to the parts of code that want to know that there are no pending handshake fragments. That i... | diff --git a/rustls-test/tests/api/api.rs b/rustls-test/tests/api/api.rs
index 80b3e763fb6..a4a2c24727b 100644
--- a/rustls-test/tests/api/api.rs
+++ b/rustls-test/tests/api/api.rs
@@ -1555,6 +1555,27 @@ fn large_client_hello_acceptor() {
}
}
+#[test]
+fn excess_client_hello_acceptor() {
+ // this is a trivi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Import `Acceptor` at the top of api.rs and use the short name in the new test rather than the fully-qualified `rustls::server::Acceptor` path, which the reviewer says makes refactoring harder and lowers signal vs noise.", "category": "maintainability", "verdict": "supported", "priority": "P2", "... | null |
rustls__rustls__2784 | rustls/rustls | 2,784 | defect | 07af54563333fa85846897e75ddb3b19d1b0db9e | 9d181ddc08fca02e5c3cfb2803ad1ad3193a3f4d | Rework sending alerts | This is another simplification of the interface between the handshake state machine and rest of the library. Now every TLS alert is sent only based on a `rustls::Error` being produced. That means there is simply no possibility of (eg) sending two alerts in a certain codepath, and simplifies code that depended on `Conte... | diff --git a/bogo/config.json.in b/bogo/config.json.in
index e2f19d0e6dd..310b48704dd 100644
--- a/bogo/config.json.in
+++ b/bogo/config.json.in
@@ -160,7 +160,6 @@
},
"ErrorMap": {
":APPLICATION_DATA_INSTEAD_OF_HANDSHAKE:": [":UNEXPECTED_MESSAGE:"],
- ":DIGEST_CHECK_FAILED:": [":DECRYPTION_FAILED_OR_BAD_... | 3 | 3 | 0 | [{"id": "G0", "claim": "The two new bogo handle_err arms for ReceivedIllegalAlertLevel and ReceivedIllegalWarningAlert should be merged into one arm, since both quit with :BAD_ALERT:.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new PeerMi... | null |
rustls__rustls__2788 | rustls/rustls | 2,788 | defect | e51b9cd019230fb320ad4c38d0f9a0100f798da8 | 1ea46825b79d6629e44b0690bf64b25058e6fb4c | Withdraw separate QUIC alert API | The corresponding quinn change for this is simply:
```patch
diff --git a/quinn-proto/src/crypto/rustls.rs b/quinn-proto/src/crypto/rustls.rs
index 48891fd8..cc9313e1 100644
--- a/quinn-proto/src/crypto/rustls.rs
+++ b/quinn-proto/src/crypto/rustls.rs
@@ -105,7 +105,7 @@ impl crypto::Session for TlsSession {
... | diff --git a/rustls/src/common_state.rs b/rustls/src/common_state.rs
index b6a6f3579a4..dc8809a7b47 100644
--- a/rustls/src/common_state.rs
+++ b/rustls/src/common_state.rs
@@ -488,8 +488,9 @@ impl CommonState {
pub(crate) fn send_msg(&mut self, m: Message<'_>, must_encrypt: bool) {
{
if let ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment added in the QUIC branch of send_msg (\"no alerts sent by in QUIC mode\") reads awkwardly and should be reworded.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
rustls__rustls__2907 | rustls/rustls | 2,907 | defect | f91b893578bc284c45e3c1d0f9d9556725a3af7e | 23eecb1aebdbe763ea41c34af59fb74178f4fc3d | client: make client cache values serializable | Including some modernization of the `Reader` abstraction.
Fixes #2287. | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index a21f0d821fa..2a56cdc304e 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -21,7 +21,8 @@ use rustls::client::danger::{
};
use rustls::client::{
self, ClientConfig, ClientConnection, ClientSessionKey, CredentialRequest, EchConfig,
- EchGreaseConfig,... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the newly exposed client session value types from `Tls12Ticket`/`Tls13Ticket` (wordy, and not really tickets) to `client::Tls12Session` and `client::Tls13Session`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__2908 | rustls/rustls | 2,908 | defect | 43472321cbc1575d7bd1d29ae12d7adc376016ef | 124dc689a6fda73c64ad6a3102b62288a7f8c5c9 | server: improve resumption APIs | I did not end up going with having `ServerSession` appear in as the value in the `ServerSessionStore` trait methods. That ends up being a bit of a pain for testing in particular, and adds quite a bit of complexity.
Here are some changes that I think might make this code easier to reason about. I dropped a commit tha... | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index 53693d69cf7..6da6689d51c 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -41,7 +41,9 @@ use rustls::pki_types::{
CertificateDer, EchConfigListBytes, PrivateKeyDer, ServerName, SubjectPublicKeyInfoDer,
};
use rustls::server::danger::{ClientIdentity, C... | 1 | 1 | 0 | [{"id": "G0", "claim": "Inlining the ticket-decryption helper into handle_psk_offer discards a function name that documented the process; keep the named function or, if inlining, move its documentation into a comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustls__rustls__3012 | rustls/rustls | 3,012 | defect | bcae7d806ad737a532501db73cdefb8eb7ff9a6c | 78bcffecb469f9d3b4c3689d5092f3fa37231bd3 | Customizable cipher suite selection | @brian-pane I ended up significantly reworking your PR, please have a look.
I dropped the ChaCha20-specific implementation for now, since I retained preference for the client order as the default (in which case we automatically pick ChaCha20 if the client has it first). I guess we could customize `PreferServerOrder`... | diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index 273ef1d6b46..eea89dd690b 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -559,7 +559,7 @@ impl Options {
shut_down_after_handshake: false,
check_close_notify: false,
require_any_client_cert: false,
- server_... | 2 | 1 | 0 | [{"id": "G0", "claim": "The removal of the `cfg.ignore_client_order` line in bogo/src/main.rs may belong in an earlier commit rather than in this pull request.", "category": "process", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The documentation of the new `CipherSuiteSel... | null |
rustls__rustls__787 | rustls/rustls | 787 | defect | 76db47cdb697e3c9e6149ab2f3164a910f9140c9 | b6880afa34ad1862e8fc10180f12f6083a2ae6f1 | Add Acceptor API for resolving server configuration based on ClientHello | This builds on (the current version of) #721 (only the last three commits are new) and adds an API as proposed in #89. The current implementation requires a small change to the lifetimes exposed in the return type of `ClientHello::alpn()`; the final commit proceeds to remove the `sni` argument from `ClientCertVerifier`... | diff --git a/rustls/examples/limitedclient.rs b/rustls/examples/limitedclient.rs
index 2600922a833..e39098c29a5 100644
--- a/rustls/examples/limitedclient.rs
+++ b/rustls/examples/limitedclient.rs
@@ -10,7 +10,7 @@ use std::net::TcpStream;
use rustls;
use webpki_roots;
-use rustls::{Connection, OwnedTrustAnchor};
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Reader introduced by this PR may not be returning the right thing: jeromegn reports getting WouldBlock errors on every tokio-rustls test and asks whether this is a bug in the Reader rather than in his own TlsStream logic.", "category": "correctness", "verdict": "supported", "priority": "P1",... | null |
rustls__webpki-roots__36 | rustls/webpki-roots | 36 | defect | 257a6d752f974fd6ccf62c1a5374574b767d3566 | 848d16c20244db0c156886566860e5a3ef4b002f | Imposed constraint update | Happened to find this change somewhat randomly:
https://hg.mozilla.org/projects/nss/rev/023f640c52040ff02bdd3c44df2b5ae927fa9e4f
https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/DotaWOS0v1E/m/icFj9tAzBQAJ
https://bugzilla.mozilla.org/show_bug.cgi?id=1802944
Propose to publish yet another release ... | diff --git a/Cargo.toml b/Cargo.toml
index 9205713..734d0b1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "webpki-roots"
-version = "0.25.0"
+version = "0.25.1"
edition = "2018"
readme = "README.md"
license = "MPL-2.0"
diff --git a/src/lib.rs b/src/lib.rs
index 5a8d613..ccbdab8 100644
-... | 2 | 2 | 2 | [{"id": "G0", "claim": "Since webpki has had working name constraints support since January, the root's name constraints could be tested again by re-landing the old (positive-only) test that was never landed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
rustls__webpki-roots__39 | rustls/webpki-roots | 39 | defect | 5bc18e3fcf4299be2b88ca83c594e5eb85edcfc2 | 0eb51ceeffaec5256b3ae3f5b54a656d5958be57 | Fix for KamuSM root name constraint encoding | ## Description
The Kamu Sertifikasyon Merkezi (KamuSM) root certificate authority [successfully petitioned Mozilla](https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/DotaWOS0v1E/m/icFj9tAzBQAJ) to expand the imposed name constraint placed on the [TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1](https://c... | diff --git a/tests/codegen.rs b/tests/codegen.rs
index 5acd57d..a1fc81e 100644
--- a/tests/codegen.rs
+++ b/tests/codegen.rs
@@ -96,7 +96,6 @@ async fn generated_code_is_fresh() {
// https://hg.mozilla.org/projects/nss/file/tip/lib/certdb/genname.c such that
// webpki-roots implements the same policy in this ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should probably also add a version bump for the fix release.", "category": "release", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rustonbsd__distributed-topic-tracker__25 | rustonbsd/distributed-topic-tracker | 25 | defect | 5841c1511a9e4bff15fab4ec1ba55713796e414f | 0c076a28e91596e2cc1aba32fa0e1309385e4c06 | Iroh 98 update |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Chores**
* Version bumped to 0.3.1
* Updated dependencies: ed25519-dalek, iroh, iroh-gossip, and rand
* Added getrandom dependency
* Updated examples and tests to reflect API changes
<!-- end of auto-gen... | diff --git a/Cargo.lock b/Cargo.lock
index bf6626b..3508a93 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -152,12 +152,6 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
-[[package]]
-name = "base32"
-ve... | 3 | 2 | 2 | [{"id": "G0", "claim": "The `rand` dependency is declared with features [\"std\", \"std_rng\"] but `rand::rng()` is used across the codebase and requires the `thread_rng` feature in rand 0.10, so compilation fails; add \"thread_rng\" to the feature list.", "category": "correctness", "verdict": "uncertain", "priority": ... | null |
rustsec__rustsec__1406 | rustsec/rustsec | 1,406 | defect | 4cc355b042cc2c7468642c022191d8f1f1352884 | 8593fbc8de91511eeecaf75f7094764cc65fbe0f | [cargo-lock] Improve/fix unambiguous source spec removal | In #767 a change was made to make `cargo-lock` more consistent with `cargo` when dealing with lock files that refer to multiple registries. The PR added code to `EncodableLockfile` generation for removing the source spec from a dependency if the target package of that dependency only has a single registry in the lock f... | diff --git a/Cargo.lock b/Cargo.lock
index 3c61c3e4b..9658e7f13 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -389,6 +389,7 @@ dependencies = [
"petgraph",
"semver",
"serde",
+ "test-case",
"toml 0.9.5",
"url",
]
@@ -3372,6 +3373,39 @@ dependencies = [
"winapi-util",
]
+[[package]]
+name = "test-case"
+ve... | 5 | 4 | 0 | [{"id": "G0", "claim": "Make do without the test-case dev-dependency and write the tests as plain #[test] functions instead of parametrised test_case macros.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer counting the version-matching pac... | null |
rustsec__rustsec__1416 | rustsec/rustsec | 1,416 | defect | fc97e2e82d9467a67618319ed978d442b656f029 | 35a24e97a4ee8395257538fba8dd6333143170c1 | [cvss][v4] Fix parsing `Not Defined (X)` for `Confidentiality Requirements (CR)` and `Availability Requirements (AR)` in `Environmental (Security Requirements)` | Fixes #1415 | diff --git a/cvss/src/v4/metric/environmental/ar.rs b/cvss/src/v4/metric/environmental/ar.rs
index d966cf7d7..f10190a11 100644
--- a/cvss/src/v4/metric/environmental/ar.rs
+++ b/cvss/src/v4/metric/environmental/ar.rs
@@ -83,7 +83,7 @@ impl FromStr for AvailabilityRequirements {
fn from_str(s: &str) -> Result<Sel... | 2 | 2 | 0 | [{"id": "G0", "claim": "The tests in the new uncovered-v4.rs file should be called \"regression tests\" rather than \"Real World Tests\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test file should use toplevel rustdoc comments (//!) wit... | null |
rustsec__rustsec__1516 | rustsec/rustsec | 1,516 | defect | 05c6e1cb54fad580d7f847507e913b62478a4baf | 57bee4c9ab0a444e354df309ea7c67fb83c7611a | cargo-audit: cap input size for audit bin | Hi all — per feedback on the fork PR, I’ve moved this upstream and squashed to a single commit. This implements the input-size cap for `cargo audit bin` (plus an explicit regression test for oversized inputs) and keeps the existing auditable payload-size limit behavior, now optionally overrideable via CLI.
If you’d ... | diff --git a/cargo-audit/src/auditor.rs b/cargo-audit/src/auditor.rs
index 4e07015ef..6ac772fa1 100644
--- a/cargo-audit/src/auditor.rs
+++ b/cargo-audit/src/auditor.rs
@@ -17,6 +17,16 @@ use std::{
// TODO: make configurable
const DEFAULT_LOCK_TIMEOUT: Duration = Duration::from_secs(5 * 60);
+#[cfg(feature = "bina... | 3 | 3 | 0 | [{"id": "G0", "claim": "A custom enum is used for the binary size limit where Option<u64> would do — djc questions why a custom enum was chosen over Option<u64>.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The help text for --audit-data-size-limit doc... | null |
rustsec__rustsec__75 | rustsec/rustsec | 75 | defect | 0605352f9ac0005159da208fda8bd5eaa017f00d | da245976f8cf4d4bd6ba23e9e90fe27ebf985cca | Implement `--ignore` option. | Also setup an integration test and cleanup clippys.
Fixes #53 | diff --git a/Cargo.lock b/Cargo.lock
index f33ddba74..c0d45366f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,3 +1,16 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+[[package]]
+name = "assert_cmd"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/cr... | 4 | 3 | 0 | [{"id": "G0", "claim": "Don't bump the crate version to 0.7.0 in this pull request; the maintainer bumps it in the commit where a new release is cut.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tempdir dev-dependency is deprecated and should be r... | null |
rusty-celery__rusty-celery__159 | rusty-celery/rusty-celery | 159 | defect | 145de58a3a86b2aecd1f1dbcd8ebb261ccf33874 | f0b32db9cd11e4116916350657c7ee69d7250f63 | Add support for yaml, pickle, and msgpack | Per issue #22 adding support for several serialization formats for message body.
* These formats are behind the "extra_formats" feature flag
* added MessageBuilder::serializer() to set the desired seralization format
* Message::body() now matches on the content-type
* added tests to confirm serialization i... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index dfdd9f6d..20ec41ca 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
+- Added support for YAML, MsgPack, and Pickle formats, behind the `extra_formats` feature fl... | 11 | 9 | 2 | [{"id": "G0", "claim": "The new serialization crates should not also be listed under [dev-dependencies] in Cargo.toml.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the missing blank separator line between the MsgPack variants of FormatErro... | null |
rusty-celery__rusty-celery__346 | rusty-celery/rusty-celery | 346 | defect | 453130c15f8ac8a47eb62ce6e0f9c5d45cdf342a | 76c98cc6d0b7e88c0591c2574448a47bd92ca037 | Broker agnostic Celery type | Fixes #276. Based on work started by @Anakael [here](https://github.com/rusty-celery/rusty-celery/pull/277#issuecomment-996168247).
The basic approach is to `Box<dyn *>` the broker and all types used in that trait. I've had to create a few wrappers around types from crates in order to implement the needed traits, mo... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 706e3cfa..30ea4d65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
+- Changed Celery type to be broker agnostic, allowing broker to be chosen dynamically at run... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CHANGELOG entry should be restructured under a '### Changed' heading with a blank line and end with a period.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rusty-celery__rusty-celery__373 | rusty-celery/rusty-celery | 373 | defect | dd3a43e0f6e22e5000fee51ae4c6462fd29004f3 | 316cdbafb81124c9f1ecd06abf9478e1f8cd3393 | allow setting task option `expires` on task decorator | This adds the `expires` option as a task attribute so that an upper time bound can be set by default on tasks. | diff --git a/celery-codegen/src/task.rs b/celery-codegen/src/task.rs
index 561184d4..dda60991 100644
--- a/celery-codegen/src/task.rs
+++ b/celery-codegen/src/task.rs
@@ -22,6 +22,8 @@ enum TaskAttr {
ParamsType(syn::Ident),
TimeLimit(syn::LitInt),
HardTimeLimit(syn::LitInt),
+ ExpiresIn(syn::LitInt),... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reword the `expires` field’s doc comment from “Time in seconds in the future for the task should expire” to “Time in seconds for when the task should expire”.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rusty-celery__rusty-celery__91 | rusty-celery/rusty-celery | 91 | defect | a9432d88bc2e2a573b38701d8909cc31f40f5087 | 14a75acf74cd051be28c6a454278ce460df97cb2 | Support acks_late configuration | List of changes:
- `acks_late` has been added to `TaskOptions`. The default is `false` as per https://docs.celeryproject.org/en/latest/userguide/tasks.html#Task.acks_late.
- `retry` does not `ack`.
- `retry` and `ack` take `delivery` by reference instead of move (since in some cases we have to call both).
- `acks_l... | diff --git a/.gitignore b/.gitignore
index 9db0accd..f40803f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,6 @@ Cargo.lock
__pycache__
.pytest_cache
.mypy_cache
+
+# IDE-specific
+.idea/
diff --git a/celery-codegen/src/lib.rs b/celery-codegen/src/lib.rs
index ccf793ec..94649553 100644
--- a/celery-codegen/s... | 3 | 3 | 2 | [{"id": "G0", "claim": "In the error path on delivery failure, the code should call `retry` before `ack`, in case the `retry` fails for some reason.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The app ignores task-specific acks_late settings, so ... | null |
ruyadorno__ipt__42 | ruyadorno/ipt | 42 | defect | c480f167fc0ef78232a95e79665da5a99fa673b8 | ad1186671f2893ee56da87ca6835ce224d1d25da | Add option to select default choices | This PR adds a `default` option to allow certain items in a list to be selected by default.
For a single-choice list, it will select the given item defined in `default`. For a multi-choice list, it will select the given choices separated by space (` `) within quotations.
This is especially helpful in for example ... | diff --git a/README.md b/README.md
index 1cb4eb1..b9fca55 100644
--- a/README.md
+++ b/README.md
@@ -190,6 +190,7 @@ Options:
-a, --autocomplete Starts in autocomplete mode [boolean]
-c, --copy Copy selected item(s) to clipboard [boolean]
-d, --debug Prints... | 4 | 2 | 2 | [{"id": "G0", "claim": "Instead of the hard-coded `.split(' ')`, there should be a `default-separator` option that people can customize and that defaults to `separator`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A default value for `options.separato... | null |
ruyadorno__ipt__9 | ruyadorno/ipt | 9 | defect | d0f59f94a24f81aec121984f694b628a95e880ec | 2a698fbb208fb139b03243afeab484933307f8c6 | Adding quote in white spaced args | closes #7
I faced this issue today and saw that the fix would be easy 😸
| diff --git a/README.md b/README.md
index e3593be..df1a31d 100644
--- a/README.md
+++ b/README.md
@@ -133,7 +133,8 @@ Options:
-e --file-encoding Sets a encoding to open <path> file, defaults to utf8
-m --multiple Allows the selection of multiple items
-s --separator Defines a separator to be used to s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The template-literal string concatenation in `formatResult` should be rewritten because the codebase is ES5 only and cannot use template literals.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rvandewater__YAIB__22 | rvandewater/YAIB | 22 | defect | b763f0964ce712536ee6bb29e31e6be99ade2e5d | 7cb34693d52f084691464bea88105158a273624e | Add unit tests for recipes | Create at least a minimal test coverage for recipe functionality #21 :
- [x] Recipes
- [x] Ingredients
- [ ] Steps
- [ ] Selectors | diff --git a/icu_benchmarks/recipes/ingredients.py b/icu_benchmarks/recipes/ingredients.py
index b0ac7b65..4f7d0bde 100644
--- a/icu_benchmarks/recipes/ingredients.py
+++ b/icu_benchmarks/recipes/ingredients.py
@@ -7,8 +7,10 @@
class Ingredients(pd.DataFrame):
_metadata = ["roles"]
- def __init__(self, data=... | 2 | 1 | 1 | [{"id": "G0", "claim": "add_role should not require the column to already have a role: the reviewer questions the new guard that raises when the column has no roles yet, asking whether it should be the opposite as it was before.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"i... | null |
rvben__rumdl__421 | rvben/rumdl | 421 | defect | 94fa0f9e97532c48e5b69892bfb514de8df5a0c6 | e5cc97f11b2c87920a6fe8c7ffefd071211ca53a | fix(MD054): match message with rule configuration option | Match message with rule MD054 configuration option.
Currently, the message that's returned doesn't 100% match the configuration option itself. | diff --git a/tests/rules/md054_test.rs b/tests/rules/md054_test.rs
index 66358575e..a415bbc02 100644
--- a/tests/rules/md054_test.rs
+++ b/tests/rules/md054_test.rs
@@ -96,7 +96,7 @@ This is a [https://example.com](https://example.com) URL-inline link.
let result = rule.check(&ctx).unwrap();
assert_eq!(result... | 1 | 1 | 1 | [{"id": "G0", "claim": "The warning message should match the config key `url-inline` rather than the internal field name `url_inline`; as pushed the PR only updates the test assertion, so the test would fail since the implementation still outputs `url_inline`, and more spots in `src/rules/md054_link_image_style.rs` (th... | null |
rvdbreemen__OTGW-firmware__354 | rvdbreemen/OTGW-firmware | 354 | defect | 589ab3fdea49ccd86744bb8415b50db56d0de1b5 | 03d5a48cb38e817d6eee0f5fc6a551c354744dff | The rc4 candidate branch | The goal of this branch is to fix anything that broke in rc3. And then can be added to the final build.
| diff --git a/DEEP_ANALYSIS.md b/DEEP_ANALYSIS.md
new file mode 100644
index 000000000..648c66b1e
--- /dev/null
+++ b/DEEP_ANALYSIS.md
@@ -0,0 +1,365 @@
+# Deep Analysis: MQTT Integration Breaking in Dev Branch (v1.0.0-rc3)
+
+## Executive Summary
+
+This document provides a comprehensive analysis of the MQTT sensor int... | 2 | 1 | 0 | [{"id": "G2", "claim": "The error messages in doAutoConfigureMsgid misspell 'confuration' for 'configuration' (at MQTTstuff.ino lines 713 and 721 in snapshot S2).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G4", "claim": "tests/test_dallas_address.cpp uses ... | null |
rwaldron__johnny-five__1228 | rwaldron/johnny-five | 1,228 | defect | 1843e4f20c81142f8f272c41d00fc2f9fb728156 | 960e2a56146ff5348eceb8b34e443ec06eeab462 | `lib/Fn.js` Clean up and Commenting | As the first part of creating some docs for `lib/Fn.js` #1214 , I've added and updated commenting in source. I've also shored up tests, though it was in a pretty good place to start with. At this point, we've got fully 100% coverage.
A few notes:
- I didn't try to meaningfully comment the `fma` function because it's, ... | diff --git a/lib/fn.js b/lib/fn.js
index 8bfa2756c..5cd6ddbfe 100644
--- a/lib/fn.js
+++ b/lib/fn.js
@@ -3,77 +3,106 @@ var Fn = {
cloneDeep: require("lodash.clonedeep"),
};
-// Fn.fmap( val, fromLow, fromHigh, toLow, toHigh )
-//
-// Re-maps a number from one range to another.
-// Based on arduino map()
-//
-// ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Fn.uint32(200, 255, 255, 255) returns the negative value -922746881, so the test asserting it passes even though the function claims to generate unsigned ints.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Fn.square is not u... | null |
rwaldron__johnny-five__1803 | rwaldron/johnny-five | 1,803 | defect | b5259d8e4aff20e5ed2cfebf6a9a70b9b3947bbc | 87d2adabdf2b0c86c7e2b43c7034992171fe3dc1 | Add pulse method to RGB class | Currently, the [Led class](https://github.com/rwaldron/johnny-five/blob/main/lib/led/led.js) contains both pulse and blink methods, but the [Rgb class](https://github.com/rwaldron/johnny-five/blob/main/lib/led/rgb.js) only contains the blink method.
This PR adds a `pulse` method to the Rgb class. Note that the puls... | diff --git a/lib/led/rgb.js b/lib/led/rgb.js
index aafb2fb35..d816a4a00 100644
--- a/lib/led/rgb.js
+++ b/lib/led/rgb.js
@@ -172,12 +172,14 @@ class RGB {
intensity: 100,
isAnode: options.isAnode || false,
interval: null,
+ // isRunning is used to track whether an Animation is in progress simi... | 3 | 1 | 1 | [{"id": "G0", "claim": "Within off(), state.prev should not be reassigned when the RGB is on, since state.prev is already assigned when on() is called; leaving it alone also keeps repeated off() calls after pulse() from assigning ever-smaller 'tween' values until reaching (0,0,0).", "category": "correctness", "verdict"... | null |
rwaldron__johnny-five__312 | rwaldron/johnny-five | 312 | defect | 6b190224af7aa52a79626ff247ab0051f86d5c63 | 86d33d0be5285c229734825722b86c328f85ea75 | Add FPS option to Servo | Also throttles FPS and rate so we don't exceed Servo resolution
| diff --git a/docs/servo-options.md b/docs/servo-options.md
index 7600baf10..560a03e44 100644
--- a/docs/servo-options.md
+++ b/docs/servo-options.md
@@ -19,6 +19,7 @@ board.on("ready", function() {
type: "standard", // Default: "standard". Use "continuous" for continuous rotation servos
startAt: 90, // if you... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add `test.equal(this.servo.position, 180);` to the rate and fps tests so they also assert the servo's final position.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add `test.equal(this.servo.position, 90);` to the resolutionLimi... | null |
rwaldron__johnny-five__462 | rwaldron/johnny-five | 462 | defect | dcfc64118517d8e5b247e379f869a3f1b5f41009 | 479caa1e2014f3e85ea50049f5b0ce8f76f0e503 | Piezo default octave additions | Added isValidOctave function.
Added note function.
Added defaultOctave function.
Added tests for above.
Added defaultOctave to test tear down.
Update other tests to validate against non octave values.
Note: I'm only a couple of months into js development, if I have done anything non standard or not stuck to the correc... | diff --git a/lib/piezo.js b/lib/piezo.js
index 775e70021..c94424e65 100644
--- a/lib/piezo.js
+++ b/lib/piezo.js
@@ -152,6 +152,12 @@ function parseTone(note) {
}
if (typeof tone === "string") {
tone = tone.toLowerCase();
+
+ var needsOctave = isNaN(tone.substr(tone.length -1));
+ if (needsOctave) {
+ ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The nested validity checks in isValidOctave can be re-written as a single combined condition: if (octave && !isNaN(octave) && (octave >= 0 && octave <= 8)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use double quotes... | null |
rwaldron__johnny-five__494 | rwaldron/johnny-five | 494 | defect | e662748fdbbce688882739b787f451adc8393141 | 6303690e23e0f23c0eda7ec12ac38b2cf5362152 | Adding support for Adafruit Servo Shield and deadband | ### Adds support for the [Adafruit 16-channel PWM/servo shield](https://learn.adafruit.com/adafruit-16-channel-pwm-slash-servo-shield/overview).
Refactors Servo() to add Controllers (Standard and the PCA9685 which is used on the Adafruit). There was no need to add a Devices object as Servo.Continuous() shares no metho... | diff --git a/README.md b/README.md
index 2222e1986..57e90f39e 100644
--- a/README.md
+++ b/README.md
@@ -159,6 +159,7 @@ board.on("ready", function() {
- [Servo Diagnostic](https://github.com/rwldrn/johnny-five/blob/master/docs/servo-diagnostic.md)
- [Servo Array](https://github.com/rwldrn/johnny-five/blob/master/doc... | 5 | 3 | 0 | [{"id": "G0", "claim": "Add a comment above the alternate-constructor options example in docs/servo-PCA9685.md saying that most users will never, ever need to use all these options at once.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the n... | null |
rwaldron__johnny-five__497 | rwaldron/johnny-five | 497 | defect | d36916d6f01204bc1f9eae49e41da75688e1d288 | 4e1bf6eb149db5668c8ec26a9ceb0332d14e8b6a | Support for IR Reflectance array | # Reflectance Array Support
This adds support for analog IR Reflectance Arrays like [these from Pololu](http://www.pololu.com/product/960).
_note_: I still need to write an example and documentation. I'd like to get feedback on this PR before I finish that.
_note_: This only works for analog reflectance arrays. Di... | diff --git a/Gruntfile.js b/Gruntfile.js
index b0e821b0c..941c4ec41 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -56,6 +56,7 @@ module.exports = function(grunt) {
"test/piezo.js",
"test/ping.js",
"test/pir.js",
+ "test/reflectancearray.js",
"test/relay.js",
"test/s... | 14 | 11 | 1 | [{"id": "G0", "claim": "Remove the hoisted `ReflectanceArray = require(\"./reflectancearray\")` line in lib/johnny-five.js and instead require the module inline at the export site (`module.exports.IR.Reflect.Array = require(\"./reflectancearray\");`).", "category": "design", "verdict": "supported", "priority": "P2", "s... | null |
rwaldron__johnny-five__597 | rwaldron/johnny-five | 597 | defect | 0c5b925125d3173ab8956d466df21afebde404be | 5db9bb1f473c912883b57bcb8b8e45d3f3242564 | add clear() function to ShiftRegister | - by replacing the value or values of the `ShiftRegister` with `0`'s, we effectively clear it
- added constructor option `size`, which determines whether the initial value is `0` or an array of `0`'s
- util function `numericFill()` fills an array of length `size` with `0`'s, in the most straightforward non-ES6 way that... | diff --git a/lib/shiftregister.js b/lib/shiftregister.js
index f27f14ec2..1a169bd63 100644
--- a/lib/shiftregister.js
+++ b/lib/shiftregister.js
@@ -2,6 +2,10 @@ var Board = require("../lib/board.js");
var priv = new Map();
+function numericFill(size) {
+ return new Array(size + 1).join("0").split("").map(parseFl... | 3 | 2 | 0 | [{"id": "G0", "claim": "The hand-rolled numericFill helper is unnecessary and should be removed, replacing its uses with the ES6/es6-shim Array.prototype.fill, i.e. Array(this.size).fill(0) in the constructor and Array(value.length).fill(0) in clear().", "category": "maintainability", "verdict": "supported", "priority"... | null |
rwaldron__johnny-five__803 | rwaldron/johnny-five | 803 | defect | 546904b762fe5f58c4f5950138945a83da30c7b9 | ce307e8b0b7b3744c72b0cee6793012f9c879b54 | Led.RGB: Refactor to device/controller model | Ref #742
The initial work is done. `Led.RGB` now uses the device/controller model and has full support for direct use and PCA9685. I'll be adding support for BlinkM and Esplora controllers as well. Since the majority of the work is already done, I figured I'd file the PR now to start getting feedback.
| diff --git a/lib/led/rgb.js b/lib/led/rgb.js
index 2152565a2..8811d8dab 100644
--- a/lib/led/rgb.js
+++ b/lib/led/rgb.js
@@ -1,12 +1,118 @@
-var Led = require("./led"),
- priv = new Map();
+var Board = require("../board.js");
+var nanosleep = require("../sleep.js").nano;
+
+var priv = new Map();
+
+var Controllers = {... | 1 | 1 | 0 | [{"id": "G0", "claim": "The interval property should be hidden inside the private state on both Led and Led.RGB rather than exposed as a public instance property.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rwaldron__johnny-five__821 | rwaldron/johnny-five | 821 | defect | f61015008bca38526a01351336bd68786550d563 | bf96c66de4aa92cb0c7238e155d243f2997ef58e | Led.RGB: Add intensity method | Fixes #737
Alternative to #818, storing the intensity as separate state from color.
| diff --git a/lib/led/rgb.js b/lib/led/rgb.js
index 99ae9559e..23a909e14 100644
--- a/lib/led/rgb.js
+++ b/lib/led/rgb.js
@@ -201,10 +201,19 @@ var RGB = function(opts) {
red: 255,
green: 255,
blue: 255,
+ intensity: 100,
isAnode: opts.isAnode || false,
interval: null
};
+ // red, green... | 1 | 1 | 0 | [{"id": "G0", "claim": "The [0,100] clamping in RGB.prototype.intensity should call the constrain() utility already defined in fn.js for consistency and readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rwaldron__johnny-five__858 | rwaldron/johnny-five | 858 | defect | dd90b938cf5d12a3b85a136adc5d07887dc73401 | f47e86099f338663f0382fe3e76e3ff053a62b73 | Servo-Animate | - Update Servo to use the `Animate()` class for `Servo.to()`
- Stop emitting move:complete when the calling `servo.to(n)` and n = last
- Move temporal based Servo test scripts to extended folder
Please note: running `grunt nodeunit:complete` will throw an error during the extended servo tests. This error is coming fro... | diff --git a/lib/servo.js b/lib/servo.js
index 9d62a191d..afd66fb44 100644
--- a/lib/servo.js
+++ b/lib/servo.js
@@ -24,9 +24,9 @@ var Controllers = {
value: function(pin, degrees) {
var on, off;
- // If same degrees, emit "move:complete" and return immediately.
+
+ // If same degrees re... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added local `var history = priv.get(this).history;` in Servo.prototype.to duplicates a value already available as `state.history` and should be dropped in favour of `state.history`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rwaldron__johnny-five__982 | rwaldron/johnny-five | 982 | defect | e48166fd73e9e8110261330825b634c21a4fae1c | 82e3f359dd76fd0e13c0bb4254febc58a215273a | Add temporalFallback | temporal uses 100% of the CPU so on long running animations we switch to setInterval instead of temporal (after five seconds).
Does five seconds seem good? It's completely arbitrary.
Tests look good but I still want to try with hardware so don't land this yet.
| diff --git a/lib/animation.js b/lib/animation.js
index 4d0b5de94..1d229e773 100644
--- a/lib/animation.js
+++ b/lib/animation.js
@@ -36,6 +36,19 @@ Animation.DEFAULTS = {
Animation.normalize = "@@normalize";
Animation.render = "@@render";
+/**
+ * Temporal will run up the CPU. temporalFallback is used
+ * for long ... | 5 | 5 | 0 | [{"id": "G0", "claim": "Drop the explicit `return this;` in the temporalFallback constructor, since the return is implicit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Declare the fallback as a named constructor `function TemporalFallback(...... | null |
rwengine__openrw__158 | rwengine/openrw | 158 | defect | 741efe763c0e7caf42fbd35d16919b4737d1d586 | f19e0b7ab3e0e906043017f88cec792395540b8a | MotionStates & physics cleanup | This is a subset of changes included in #119 that aren't related to vehicles. Vehicle physics requires a bit more work so these changes can be fast-tracked since they're complete.
- Remove defunct code
- Use bullet motion states to update object transformations
- make getPosition/getRotation non-virtual
- Instances (l... | diff --git a/rwengine/include/dynamics/CollisionInstance.hpp b/rwengine/include/dynamics/CollisionInstance.hpp
index 70851dc08..2aa14e6db 100644
--- a/rwengine/include/dynamics/CollisionInstance.hpp
+++ b/rwengine/include/dynamics/CollisionInstance.hpp
@@ -11,16 +11,17 @@ struct DynamicObjectData;
struct VehicleHandli... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `#warning replace with position from motionstate` compile-time directive in InstanceObject::tick should be a `/// @todo` comment plus an issue instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In VehicleObject::... | null |
rwengine__openrw__159 | rwengine/openrw | 159 | defect | 6020bc78db70170db6256570295382a31cd2e583 | 408153dae444b7dc8d56d1d5a95739247e47d69a | Parked traffic and out-of-view spawning | This adds:
- spawning of vehicles from vehicle generators
- limits spawning to outside of the view near the player (with exceptions)
Fixes #16
Issues:
- [x] The time limit on vehicle generators is not respected
- [x] Many vehicle generators are at -100.f and never get used
- [ ] Vehicle can spawn in the ground
- [x... | diff --git a/rwengine/include/data/VehicleGenerator.hpp b/rwengine/include/data/VehicleGenerator.hpp
new file mode 100644
index 000000000..edfbd7026
--- /dev/null
+++ b/rwengine/include/data/VehicleGenerator.hpp
@@ -0,0 +1,28 @@
+#ifndef RWENGINE_VEHICLEGENERATOR_HPP
+#define RWENGINE_VEHICLEGENERATOR_HPP
+
+/**
+ * St... | 7 | 7 | 1 | [{"id": "G0", "claim": "The repeated mutation of the `clear` variable in tryToSpawnVehicle is an abuse of the variable; the function should early-out (return nullptr) instead or the variable should be named differently.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {... | null |
rwengine__openrw__190 | rwengine/openrw | 190 | defect | 612a314126d553a620db8d64af2b1b9feb8afe98 | c67e7a2d5ad58627eefc2b99e204b94b6cc34f15 | Add method to modify game time properly | ...and make the time-cheaty debug keys not under/overflow the clock.
| diff --git a/rwengine/src/engine/GameWorld.cpp b/rwengine/src/engine/GameWorld.cpp
index ab3edce22..d97b7be6f 100644
--- a/rwengine/src/engine/GameWorld.cpp
+++ b/rwengine/src/engine/GameWorld.cpp
@@ -666,6 +666,25 @@ int GameWorld::getMinute()
return state->basic.gameMinute;
}
+void GameWorld::offsetGameTime(int ... | 4 | 1 | 1 | [{"id": "G0", "claim": "Pressing [ to move the clock back does not roll the hour back, it only alters the minutes, and the test cases correctly catch this (the tests fail with wrong hours).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The tests sh... | null |
rwengine__openrw__210 | rwengine/openrw | 210 | defect | f1391aa7b630247e97854a4f73b515e80f3f9132 | a5aeeb0d33bcd16d3a9721036fbbcffd65f77d86 | Overhaul GXT handling and menu text | This fixes:
- Incorrect text handling
- Text is now stored as it is loaded from the GXT
- Glyphs are looked up in the font map using the text properly
- Not localized menu text
- Use the GXT strings for the main menu and the pause menu
- Use the correct font for the menu
- Remove iconv
- [ ] Remove iconv from ... | diff --git a/rwengine/CMakeLists.txt b/rwengine/CMakeLists.txt
index 005055263..147a05b28 100644
--- a/rwengine/CMakeLists.txt
+++ b/rwengine/CMakeLists.txt
@@ -33,6 +33,7 @@ set(RWENGINE_SOURCES
src/data/Chase.hpp
src/data/CollisionModel.hpp
src/data/CutsceneData.hpp
+ src/data/GameTexts.cpp
src/data/GameTexts... | 3 | 1 | 1 | [{"id": "G0", "claim": "The GameString alias should not be built on char16_t; since the game's character encoding is font-specific and meaningless outside the GXT, the PR should work with std::string or a plain GameCharacter (uint16_t) instead.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "i... | null |
rwengine__openrw__449 | rwengine/openrw | 449 | defect | b7fb22f95c4584435924f219c70781079924671f | d2c2e2ac5ad4d0f3681f47234d9c308da5946c79 | [Ready] Got some pickups working | - [x] Health pickups give health
- [x] Armour pickups give armour
- [x] Hidden packages can be collected and give money
- [x] Script pickups that used in missions can be collected
- [x] Adrenaline pills
- [x] Set x2 player walk start animation speed on pills pickup (seems like walk start animation is not implement... | diff --git a/rwengine/CMakeLists.txt b/rwengine/CMakeLists.txt
index 3e26782b2..ec2b1bf45 100644
--- a/rwengine/CMakeLists.txt
+++ b/rwengine/CMakeLists.txt
@@ -94,8 +94,6 @@ set(RWENGINE_SOURCES
src/objects/GameObject.hpp
src/objects/InstanceObject.cpp
src/objects/InstanceObject.hpp
- src/objects/Ite... | 1 | 1 | 0 | [{"id": "G0", "claim": "CollectablePickup::onCharacterTouch should use the engine member the pickup already has instead of reaching the state through the player character.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rwengine__openrw__498 | rwengine/openrw | 498 | defect | 4a9444fdee5e638d91b34ba1e04c65afeb45f86d | b84ce6e36f25788af5350e58eafefa43494891c4 | [Ready] Payphones | Payday For Ray is now playable
To do:
- [x] Payphone class
- [x] Get world object
- [x] Figure out how games finds z coord
- [x] Figure out states
- [x] Opcodes (only that used in main.scm)
- [x] Basic functionality
- [x] ~~~Payphone wiggle animation~~~
- [x] Widescreen
- [x] Use #476
- [x] Player animati... | diff --git a/rwengine/CMakeLists.txt b/rwengine/CMakeLists.txt
index ddcf29e1d..2e143fb19 100644
--- a/rwengine/CMakeLists.txt
+++ b/rwengine/CMakeLists.txt
@@ -63,6 +63,8 @@ set(RWENGINE_SOURCES
src/engine/GameWorld.hpp
src/engine/GarageController.cpp
src/engine/GarageController.hpp
+ src/engine/Payp... | 17 | 14 | 4 | [{"id": "G0", "claim": "The payphone restore loop in SaveGame::loadGame can be written as a range-based for loop.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Block-8 payphone read loop and the debug print loop in SaveGame::loadGame can be... | null |
rwengine__openrw__540 | rwengine/openrw | 540 | defect | 83ee9ef5682f00d76173dd42fff5fde57325d051 | 4e3759c325d22a5be32d3a03af73e3e61374cf61 | Remove unneeded FileHandle (aka shared_ptr) | Been trying to convert shared_ptr to unique_ptr, but sometimes even there's no need for pointers.
Tested with address sanitizers in game, but brakes one data test:
https://gist.github.com/ShFil119/c82d46c5f548a5fd97d50194749c7770
(not sure how to fix/refactor it)
Edit:
Fixed | diff --git a/rwengine/src/engine/GameData.cpp b/rwengine/src/engine/GameData.cpp
index bab769f6e..375697c4c 100644
--- a/rwengine/src/engine/GameData.cpp
+++ b/rwengine/src/engine/GameData.cpp
@@ -288,8 +288,7 @@ void GameData::loadHandling(const std::string& path) {
SCMFile* GameData::loadSCM(const std::string& path)... | 2 | 2 | 2 | [{"id": "G0", "claim": "The check `BOOST_CHECK(handle.data != nullptr)` at tests/test_FileIndex.cpp line 70 fails when the test is run.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Copying a FileContentsInfo will cause the delete[] to run twice on... | null |
rwengine__openrw__570 | rwengine/openrw | 570 | defect | 4baeeb9ae851eb54d2190eab46339b4e44612af7 | b14bcc8a12da4d6373f3ecb9109f09983ddaeddc | Remove data dependency from LoaderIDE test suite | Part of a series to deal with #126
This PR does the following:
- Renames ObjectDataTests to LoaderIDETests
- Makes the tests against LoaderIDE more descriptive
- Removes the dependency on game data for LoaderIDE tests
- Fixes a bug where carmask was loaded as base 10 instead of base 16
Data Free Tests: +4
... | diff --git a/rwengine/src/data/ModelData.hpp b/rwengine/src/data/ModelData.hpp
index 45dfc5997..047607693 100644
--- a/rwengine/src/data/ModelData.hpp
+++ b/rwengine/src/data/ModelData.hpp
@@ -172,7 +172,7 @@ class SimpleModelInfo : public BaseModelInfo {
loddistances_[n] = d;
}
- float getLodDistanc... | 1 | 1 | 0 | [{"id": "G0", "claim": "Instead of the hard-coded std::strtol call for carsmask_, the numeral base should be a parameter of the lexical_cast template.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
rwengine__openrw__573 | rwengine/openrw | 573 | defect | f95427c136530ef042c98c641aba0f0122fa7c8e | 0a9230976d7b8b90719ae1d7b1c4d0ac59abf55b | Refactor VisualFX and fix memory leaks | Actually explosion works, because memory are leaking.
Pull fixes leaks and hidden problem of life time of explosion.
It's still far from optimal.
There's need to store handlers in two places: Pickup/ProjectileObject (ofc) and in vector for rendering.
There three options for dealing with problem.
My approach ... | diff --git a/rwengine/src/engine/GameWorld.cpp b/rwengine/src/engine/GameWorld.cpp
index ece8e5743..2cc0693eb 100644
--- a/rwengine/src/engine/GameWorld.cpp
+++ b/rwengine/src/engine/GameWorld.cpp
@@ -497,15 +497,33 @@ void GameWorld::destroyQueuedObjects() {
}
}
-VisualFX* GameWorld::createEffect(VisualFX::Eff... | 1 | 1 | 0 | [{"id": "G0", "claim": "The VisualFX cleanup loop in RWGame::tick should be moved into a GameWorld::updateEffects method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
rwengine__openrw__603 | rwengine/openrw | 603 | defect | 6aa9b3a1b77ef3cbde785bfda70fe8a07e91b4ab | 51ab961dc4ea50ee46116a011c25af32c211bd34 | Prepare tests for Sound and SoundBuffer | Also refactored SoundBuffer a bit.
- [x] sound for docker and appveyor | diff --git a/.appveyor.yml b/.appveyor.yml
index 95d115ead..84a7dc2f0 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -10,6 +10,7 @@ cache:
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
+ ALSOFT_DRIVERS: null
PYTHON: "C:\\Python36-x64"
CMAKE_GENERATOR_BASE: "Visual Studio 15 2017"
NAME_SUFFIX: "wind... | 3 | 2 | 0 | [{"id": "G0", "claim": "The setup lines repeated in each test in tests/test_Sound.cpp should be moved into a fixture that sets up the sound.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test names in tests/test_Sound.cpp should state the expec... | null |
rwengine__openrw__616 | rwengine/openrw | 616 | defect | 2670de509ff160eac218ae73d31d153b8f3876a1 | bc7219a8f636445899afa0dc27bc3a600fa6e835 | Remove raw ptrs from game objects | It removes some nasty things:
https://github.com/rwengine/openrw/compare/master...ShFil119:remove_raw_ptrs_from_objects?expand=1#diff-a996c0379ea38c4fa42528c76c60ec03R753
https://github.com/rwengine/openrw/compare/master...ShFil119:remove_raw_ptrs_from_objects?expand=1#diff-a996c0379ea38c4fa42528c76c60ec03R589 | diff --git a/rwengine/src/objects/CharacterObject.cpp b/rwengine/src/objects/CharacterObject.cpp
index b0f967987..6a4921bfb 100644
--- a/rwengine/src/objects/CharacterObject.cpp
+++ b/rwengine/src/objects/CharacterObject.cpp
@@ -64,18 +64,18 @@ void CharacterObject::createActor(const glm::vec2& size) {
tf.setI... | 2 | 1 | 0 | [{"id": "G0", "claim": "The hinge-test assertions in tests/test_Vehicle.cpp should use a plain BOOST_CHECK comparison instead of BOOST_CHECK_EQUAL against nullptr on the raw-pointer form of the smart-pointer members.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
rwengine__openrw__663 | rwengine/openrw | 663 | defect | 711aad7701d7bcc384d9929d404ed3b3b53682fc | 35ce4c9f51f6f6ae7e1506518d1aa258681dcf1a | Divide SoundSource (for future streaming) | Not sure about naming convention(especially about `Wrap`). | diff --git a/cmake/modules/FindFFmpeg.cmake b/cmake/modules/FindFFmpeg.cmake
index cca142b27..c565eeea1 100644
--- a/cmake/modules/FindFFmpeg.cmake
+++ b/cmake/modules/FindFFmpeg.cmake
@@ -72,11 +72,14 @@ endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FFmpeg DEFAULT_MSG FFMPEG_LIBRAR... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new SFX loader method name misspells \"Context\" as \"Constext\" (prepareFormatConstextSfx) and should be corrected.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fake filename \"nothint\" passed to avformat_open... | null |
rwengine__openrw__667 | rwengine/openrw | 667 | defect | 6cc8037ffb96d4f2658df1a9609511b2371ea548 | 0ee936959517d1aaa4061c1c4ab883f4aa4237eb | Convert Menu instances to std::optional | It fixes #653. | diff --git a/rwgame/MenuSystem.hpp b/rwgame/MenuSystem.hpp
index a11e9be27..a81bb2ccb 100644
--- a/rwgame/MenuSystem.hpp
+++ b/rwgame/MenuSystem.hpp
@@ -78,10 +78,9 @@ class Menu {
* @brief creates a menu from the given menu items
* @return a shared pointer to the menu with the items
*/
- static st... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on Menu::create still says it returns \"a shared pointer to the menu with the items\" although this PR changed the return type, and it needs to be fixed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The De... | null |
rwengine__openrw__679 | rwengine/openrw | 679 | defect | d5541ac91f06a267e4b0033e140058572d5eea38 | 84fdabc368f6d273b64e34cf8fbf3d56830fa536 | Use collision detection for AI vehicle behaviour | - Provide a tested API for performing area checks against physical objects.
This functionality can be re-used for weapon area check.
Future work
- Document AI vehicle behaviour. | diff --git a/rwengine/CMakeLists.txt b/rwengine/CMakeLists.txt
index 80be4543d..e9a34b127 100644
--- a/rwengine/CMakeLists.txt
+++ b/rwengine/CMakeLists.txt
@@ -49,6 +49,8 @@ set(RWENGINE_SOURCES
src/dynamics/CollisionInstance.cpp
src/dynamics/CollisionInstance.hpp
+ src/dynamics/HitTest.cpp
+ src/dyn... | 10 | 8 | 1 | [{"id": "G0", "claim": "Compare the speed with a tolerance (std::fabs(currentSpeed) < 0.1f) instead of exact equality with 0.f before cutting throttle and applying the handbrake.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use STL's std::any_of i... | null |
rwengine__openrw__680 | rwengine/openrw | 680 | defect | d5541ac91f06a267e4b0033e140058572d5eea38 | 51263c019145dea1afdd6fca415bd0d4a9471900 | Further refactor of menu managment | It also fixes weird behavior which can happen it debug mode on master. (freeze/crash) Caused by #667. | diff --git a/rwgame/MenuSystem.hpp b/rwgame/MenuSystem.hpp
index cb9330a6e..03242b14c 100644
--- a/rwgame/MenuSystem.hpp
+++ b/rwgame/MenuSystem.hpp
@@ -71,18 +71,14 @@ class Menu {
}
};
- Menu(std::vector<MenuEntry> initial, int font = MenuDefaults::kFont,
+ Menu(std::initializer_list<MenuEntry>&... | 3 | 3 | 0 | [{"id": "G0", "claim": "Some kind of comment/documentation should be added back for the Menu constructor, replacing the doxygen block the change deletes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test variable 'clickered' should be rename... | null |
rwengine__openrw__696 | rwengine/openrw | 696 | defect | dd8de77b8ed49a844c61f25d60bec6f467c2e823 | 8ea1f62c5e1284c13394cac832cbee1e286dd2a7 | Various (smaller changes) | Commit 07972a7fa76462351689ddff6c2eb5f72446bef2 is temporary(?) solution, planning use weak_ptr + shared_ptrs. It's nicely specifying where weak_ptr should be used. Or if you prefer I can drop this commit. ;) | diff --git a/rwcore/data/Clump.hpp b/rwcore/data/Clump.hpp
index 73ca53141..af4309406 100644
--- a/rwcore/data/Clump.hpp
+++ b/rwcore/data/Clump.hpp
@@ -145,10 +145,10 @@ struct Geometry {
struct Texture {
std::string name;
std::string alphaName;
- TextureData::Handle texture;
+ Tex... | 5 | 3 | 0 | [{"id": "G0", "claim": "Using '\\n' instead of std::endl needs a rationale for debug messages, where std::endl seems fine (unlike for buffers).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use a constexpr char-array indexed by an int enum instead of enco... | null |
rwengine__openrw__706 | rwengine/openrw | 706 | defect | 09d466269d32fafb865b22a2ebb13b69e9a92258 | 122b0d94a9713ce82934b79e6e488a3d1c1a03ef | Streaming audio files | To think about:
- [x] smarter use of mutexes
- [x] testing with thread sanitizer
- [x] OpenAL issue:
```
OpenAL error at ../rwengine/src/audio/SoundBufferStreamed.cpp:22: Invalid value!
OpenAL error at ../rwengine/src/audio/SoundBufferStreamed.cpp:23: Invalid operation!
``` | diff --git a/rwengine/CMakeLists.txt b/rwengine/CMakeLists.txt
index cddfe5f9e..4b638495b 100644
--- a/rwengine/CMakeLists.txt
+++ b/rwengine/CMakeLists.txt
@@ -20,6 +20,8 @@ set(RWENGINE_SOURCES
src/audio/Sound.hpp
src/audio/SoundBuffer.cpp
src/audio/SoundBuffer.hpp
+ src/audio/SoundBufferStreamed.cp... | 4 | 4 | 1 | [{"id": "G0", "claim": "Consider replacing the `bool running` flag on SoundBuffer with a state enum (Stopped/Playing).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`#include <vector>` is added to SoundBuffer.hpp but not used in that header and should b... | null |
rwengine__openrw__713 | rwengine/openrw | 713 | defect | 767f921859e1be108e626cdacec5249cd772f4b9 | e57957025488f317caf5034f3400ce0ffc6ca652 | Cleanup Atomic & Clump usage | - GameObjects now have either an Atomic or a Clump
- The transform of this object is updated to reflect where the object should be
- Accidentally fixed the player having the wrong model in the intro | diff --git a/rwengine/src/dynamics/CollisionInstance.cpp b/rwengine/src/dynamics/CollisionInstance.cpp
index b58f90437..d61de4c3b 100644
--- a/rwengine/src/dynamics/CollisionInstance.cpp
+++ b/rwengine/src/dynamics/CollisionInstance.cpp
@@ -21,30 +21,21 @@
#include "objects/GameObject.hpp"
#include "objects/VehicleIn... | 3 | 1 | 0 | [{"id": "G0", "claim": "The null-atomic static might be better implemented as a function-local static instance inserted into the body of getAtomic() above the return, rather than a static member.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same su... | null |
rwf2__Rocket__2519 | rwf2/Rocket | 2,519 | defect | b61ac6eb188f9eaec9ccc84680f9ff310ceb9487 | 9443a351088977aaf77cab2d2900245f861509f8 | Forwarded proto | PR for #2425. Some notes:
* `Protocol` is based largely on `ProtocolName` from https://github.com/hyperium/hyper-old-types/blob/0426d7ac64c955af6327279c595168c39e7b1415/src/header/common/upgrade.rs#L84
* Renamed `ip_header::deserialize` to `http_header::deserialize` to be able to re-use it
* Used https://developer.m... | diff --git a/core/http/src/header/mod.rs b/core/http/src/header/mod.rs
index b91521ff38..17e65598f9 100644
--- a/core/http/src/header/mod.rs
+++ b/core/http/src/header/mod.rs
@@ -4,10 +4,12 @@ mod media_type;
mod content_type;
mod accept;
mod header;
+mod protocol;
pub use self::content_type::ContentType;
pub us... | 21 | 19 | 6 | [{"id": "G0", "claim": "The config parameter's docs need more guidance: it must be made clear how much the header is trusted, and the docs should say the value should probably be X-Forwarded-Proto and point to its documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
rwf2__Rocket__2797 | rwf2/Rocket | 2,797 | defect | 2a1afd12f57ca435cf9018ddb08051bdc31aef6e | e50346eb70cd36bdbe2ca1565caa89fa54fdd460 | Make uniqueify_with generate deterministic macro names, to fix build failures | ### Overview
In a nutshell, some slightly exotic ways of compiling rocket with rustc fail due to nondeterminism in `rocket_codegen` leading to rustc correctly noticing that you've compiled two incompatible versions of `rocket`. The nondeterminsim is in `IdentExt::uniqueify_with`.
I believe you can fix this by jus... | diff --git a/core/codegen/Cargo.toml b/core/codegen/Cargo.toml
index dd74e4eea4..cb6fcde9df 100644
--- a/core/codegen/Cargo.toml
+++ b/core/codegen/Cargo.toml
@@ -28,6 +28,7 @@ rocket_http = { version = "0.6.0-dev", path = "../http/" }
unicode-xid = "0.2"
version_check = "0.9"
glob = "0.3"
+rustc-hash = "1.1.0"
[... | 3 | 3 | 2 | [{"id": "G0", "claim": "Hashing only the route's ident and URI makes two identical macro calls in different modules hash to the same value, so the generated uri macros collide and the code fails to compile with E0428; the Span's debug output should be hashed too, though the reviewer was unsure this suffices for routes ... | null |
rwf2__multer__29 | rwf2/multer | 29 | defect | 16e975fc38bc6f4b970ad980d52a0d01db731f9e | 3c503f7ade11523fd3f7b6febdab6ea764d40e48 | Correctly handle transport-padding after boundaries. | Fixes #25.
I'm also installing `cargo-fuzz` so that I can try it out with these changes and (if wanted) add some transport-padding to the seeds. | diff --git a/src/buffer.rs b/src/buffer.rs
index 9d56eb5..331cfa0 100644
--- a/src/buffer.rs
+++ b/src/buffer.rs
@@ -1,5 +1,5 @@
use crate::constants;
-use bytes::{Bytes, BytesMut};
+use bytes::{Buf, Bytes, BytesMut};
use futures::stream::Stream;
use std::fmt;
use std::pin::Pin;
@@ -71,6 +71,19 @@ impl StreamBuffer... | 3 | 3 | 1 | [{"id": "G0", "claim": "The final closing `--` should come before the transport padding, not after it, and the PR author got this switched around in both the added test data and the parser changes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "read... | null |
rwx-research__abq__42 | rwx-research/abq | 42 | defect | 221cfa79922cdb79b8096ec16a1f9f01c51aa184 | baf47f4056ce55d36b45f5bef133a69f138631c9 | Permit configuring maximum number of seconds to wait for test command | Adds a `--startup-timeout-seconds` flag (and `ABQ_STARTUP_TIMEOUT_SECONDS` env var) to configure the maximum amount of time to wait for the native test process to startup. | diff --git a/crates/abq_cli/src/args.rs b/crates/abq_cli/src/args.rs
index 691da382..13c2b76a 100644
--- a/crates/abq_cli/src/args.rs
+++ b/crates/abq_cli/src/args.rs
@@ -326,6 +326,13 @@ pub enum Command {
#[clap(long, default_value = "auto")]
color: ColorPreference,
+ /// The maximum number... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comment phrase \"passed test command\" is a garden-path phrase and should read \"the test executable\" instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test will definitely time out because the simulation... | null |
rwx-research__abq__59 | rwx-research/abq | 59 | defect | 75492736018ed3fe359ce6c4e39c3167436b5317 | 85f09643c2e77c6d10b8fc01c79977f12903f78d | Only record telemetry when running against remote queue | Noticed this when doing some QA for https://github.com/rwx-research/abq/pull/52
I made a bad assumption that we were recorded telemetry for all test runs. As it turns out we were only doing so when running against a remote queue (which in hindsight, seems obvious, but I was influenced by some other conversations tha... | diff --git a/crates/abq_cli/src/main.rs b/crates/abq_cli/src/main.rs
index df11fb9d..0d98e14f 100644
--- a/crates/abq_cli/src/main.rs
+++ b/crates/abq_cli/src/main.rs
@@ -409,7 +409,7 @@ async fn abq_main() -> anyhow::Result<ExitCode> {
let abq = find_or_create_abq(
entity,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test `test_explicit_run_id_against_ephemeral_queue` was passing locally, so the just-added `#[ignore]` on it is not justified.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rwx-research__captain__100 | rwx-research/captain | 100 | defect | 4df39e0186b96338cc28bb6603065a3677d57e4e | b529dd424c5755e32d9820376b058de22fd104fb | Add warnings for duplicate test IDs & misconfigured retry commands | * If Captain encounters a test result that contains a duplicate test, it emits a warning.
* If Captain retries a test, but the updated test result doesn't contain the test anymore, it emits a warning.
Both warnings can also be configured as hard failures: Either as CLI Flags (`--fail-on-duplicate-test-id` and `--fa... | diff --git a/.gitignore b/.gitignore
index bae499f5..c576b171 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
/.captain/*/flakes.yaml
/.captain/*/quarantines.yaml
/.captain/*/timings.yaml
+/.captain/recipes.json
/.direnv
/captain
/report.xml
diff --git a/cmd/captain/config.go b/cmd/captain/config.go
inde... | 5 | 3 | 1 | [{"id": "G0", "claim": "The reflection-based framework lookup inside checkIfTestIDsAreUnique is potentially unnecessary because finalResults already carries .Framework, so the recipe could be looked up directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
rwx-research__captain__115 | rwx-research/captain | 115 | defect | 0dbd7fb90bb8895e6b88e9b10fcd4f8794f67ef4 | ad4234a0d9de39b4fe03dad0efefd11cf6eed696 | Load balance the test file timings across N workers instead of applying a bin packing algorithm | Targeting total runtime / partitions for bin capacity can lead to many scenarios where you have empty bins. This is not ideal for test partitioning because we want to distribute the tests across a specified number of workers as evenly as possible. Notably, we _don't_ want to try to fill bins as full as possible leaving... | diff --git a/.mint/buildkite.yml b/.mint/buildkite.yml
index 4e432b7a..5abedb74 100644
--- a/.mint/buildkite.yml
+++ b/.mint/buildkite.yml
@@ -1,3 +1,7 @@
+base:
+ os: ubuntu 24.04
+ tag: 1.1
+
tasks:
- key: code
call: mint/git-clone 1.6.1
diff --git a/.mint/ci.yml b/.mint/ci.yml
index 0fffe8c9..5674e647 100... | 1 | 1 | 1 | [{"id": "G0", "claim": "partitionWithLeastRuntime could put every test into partition[0] when all tests have 0s duration; the author suggests also preferring a partition with fewer tests when runtimes are equal.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
rwx-research__captain__138 | rwx-research/captain | 138 | defect | 4f2d5f4638879c9bf6366364d3e699fceb25c39e | 1b35fb5aaf909281dcb4ae1d2f8b84160a154e33 | Make the pytest parser a little more permissive around order of the lines | We found a case where warning messages are being placed before `SessionStart`. This change makes the parser more permissive w.r.t. order | diff --git a/internal/parsing/python_pytest_parser.go b/internal/parsing/python_pytest_parser.go
index afd49d7..28405b0 100644
--- a/internal/parsing/python_pytest_parser.go
+++ b/internal/parsing/python_pytest_parser.go
@@ -15,11 +15,6 @@ import (
type PythonPytestParser struct{}
-type PythonPytestSessionStart st... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unchecked type assertions on testResult.Location elements will panic if the Location array lacks the expected elements or types; add bounds checking and type validation before the assertions.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"i... | null |
rwx-research__captain__143 | rwx-research/captain | 143 | defect | ed6fe9850ec7562f2432cbfa24d0a0adea55eaf5 | fa1938d80f317bfc8ede5a97fa9c3dd43af52253 | Add option to skip quarantined tests when retrying | Currently, when a quarantined test runs and fails, we retry it like any other failed test, only to quarantine it after we exhaust all retries.
This can be expensive and create long poles in test suites with slow quarantined tests, so this PR adds a `--quarantined-test-retries` flag to opt in to skipping such retries... | diff --git a/cmd/captain/run.go b/cmd/captain/run.go
index 59fa76b..23c1f69 100644
--- a/cmd/captain/run.go
+++ b/cmd/captain/run.go
@@ -20,34 +20,35 @@ import (
)
type CliArgs struct {
- command string
- testResults string
- failOnUploadError bool
- failOnDuplicateTestID ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The config field should accept a number of quarantined attempts (e.g. named QuarantinedAttempts to mirror FlakyAttempts, set to 0 to not retry quarantined tests) instead of the boolean SkipQuarantinedTestRetries added by the pull request.", "category": "design", "verdict": "supported", "priority... | null |
rwx-research__captain__160 | rwx-research/captain | 160 | defect | 978436982157622490eaf64a0eb407e3e2b7a83e | ef6044426491322147c66bd06c46dff38ff65853 | Add testcafe parser | - **Add TestCafe JSON reporter parser**
- **Add TestCafe fixture covering test/fixture meta blobs**
- **Register identity recipe for TestCafe**
- **Update .gitignore to include claude local settings**
| diff --git a/.gitignore b/.gitignore
index 04ea184..4fa2935 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,4 +8,5 @@
test/.captain
*.test
local_env.sh
-.vscode/settings.json
\ No newline at end of file
+.vscode/settings.json
+.claude/settings.local.json
\ No newline at end of file
diff --git a/.rwx/ci.yml b/.rwx/ci.... | 2 | 2 | 0 | [{"id": "G0", "claim": "Prepending cli- to the branch name for the CLI trigger's init.branch looks unnecessary since the value is only used in the concurrency pool id that already encodes the trigger, and it rewrites to a branch name that may not exist on the remote.", "category": "design", "verdict": "supported", "pri... | null |
rwx-research__captain__24 | rwx-research/captain | 24 | defect | d0efa1691db6bc1cc66da00be6e4c58ea824f82f | b9b883c6abccc1dd1b16d91899b44bc57ff1f231 | backwards compatibility testing | this PR
- checks for changes in the integration test suites between all releaesed versions after 1.10.2
- for each of those, runs the integration tests
- the integration tests prefix the top level description with the version
- and disable some over-constrained assertions within the tests
going forward, ... | diff --git a/.captain/config.yaml b/.captain/config.yaml
index abc78356..a97db957 100644
--- a/.captain/config.yaml
+++ b/.captain/config.yaml
@@ -7,3 +7,11 @@ test-suites:
github-step-summary:
results:
path: report.xml
+ backwards-compatibility:
+ command: nix develop --command mage integratio... | 6 | 2 | 0 | [{"id": "G0", "claim": "Perhaps the backwards-compatibility tests should be run against every version rather than only tags where ./test changed.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test suites should stop being tightly coupled to the CLI c... | null |
rwx-research__captain__29 | rwx-research/captain | 29 | defect | 27a9f6773971d87ba5cc140f58589e74bfd25abc | 89734d7dc6dcf127723849d67a1ff5c9d107860e | Introduce a new release process | Introduces a new release process for Captain. Instead of tracking release branches (for production), we'll **trigger a workflow** which will:
- Create a draft release (or overwrite an existing draft release, if we need to re-cut a release)
- Build the binaries
- Upload those binaries to the draft release
- Wait f... | diff --git a/.github/workflows/buildkite_agent.yaml b/.github/workflows/buildkite_agent.yaml
index 07a1f04d..6f22584a 100644
--- a/.github/workflows/buildkite_agent.yaml
+++ b/.github/workflows/buildkite_agent.yaml
@@ -16,9 +16,9 @@ jobs:
keep-derivations = true
keep-outputs = true
- ru... | 13 | 8 | 1 | [{"id": "G0", "claim": "Use `git describe` (enabled by creating annotated tags) to make the version strings set in CI and the release workflow more readable.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add comments to the extract-version-details outpu... | null |
rwx-research__captain__3 | rwx-research/captain | 3 | defect | 24540a399b7fae57f495528c0151cc1eb7780492 | d23954cc0a949aaaa75649a7c9045f4864416a2d | fix positional args for add/remove | this PR
1. primarily uses positional suite-id in integration test suite
2. fixes positional suite-id for `captain add` / `captain remove` | diff --git a/cmd/captain/config.go b/cmd/captain/config.go
index 251472f0..71c8736b 100644
--- a/cmd/captain/config.go
+++ b/cmd/captain/config.go
@@ -149,7 +149,9 @@ func findInParentDir(fileName string) (string, error) {
// InitConfig reads our configuration from the system.
// Environment variables take precedence... | 1 | 1 | 0 | [{"id": "G0", "claim": "Because cliArgs is a pointer and the mutation is not apparent from the function signature or comment, InitConfig should not mutate cliArgs: the assignment should be made one level up, before passing cliArgs, since there are only two call sites.", "category": "design", "verdict": "supported", "pr... | null |
rwx-research__captain__41 | rwx-research/captain | 41 | defect | b946c4aadc0b8ec5a474cd807e570497dfd160fc | ebf0883627e4133da41d20ec87522bb116dc76a3 | partition args can be set by provider | @tonywok let's chat to make sure these changes get into your work with `captain run` supporting partition
This PR allows `captain partition` to be run without `--index` and `--total` on CI providers that provide parallelization information
## to the reviewer:
probably easiest to review this one commit-by-commit.... | diff --git a/cmd/captain/config.go b/cmd/captain/config.go
index 348f62d8..7e131201 100644
--- a/cmd/captain/config.go
+++ b/cmd/captain/config.go
@@ -47,7 +47,8 @@ func getConfig(cmd *cobra.Command) (Config, error) {
return cfg, nil
}
-func setConfig(cmd *cobra.Command, cfg Config) error {
+// adds config to cmd'... | 3 | 1 | 0 | [{"id": "G0", "claim": "For consistency, much of cli.Config should probably be moved into the new internal/config package.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out MarkFlagRequired(\"total\") block in configurePartitionCmd can pro... | null |
rwx-research__captain__5 | rwx-research/captain | 5 | defect | ff334e249ee674e096d3268f6a64c2be128d4ca6 | ec2ec75cf369e1e693dd82d03613c6a90f571fb5 | Send up a title with all providers | This will let us have fewer cases in Cloud where we show "N/A" for the title. Right now we use the commit message for this, but we don't always have a commit message available. | diff --git a/cmd/captain/run.go b/cmd/captain/run.go
index 6e896a8c..d2c68af7 100644
--- a/cmd/captain/run.go
+++ b/cmd/captain/run.go
@@ -397,6 +397,15 @@ func addGenericProviderFlags(cmd *cobra.Command, destination *providers.GenericE
"if using a supported CI provider, this will be automatically set\n"+
"othe... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new package-level EventPayloadData type should be named GitHubEventPayloadData because it is global in the providers package.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When no title is set, the title should fall ... | null |
rwx-research__captain__6 | rwx-research/captain | 6 | defect | 70539dfbe6904290893450d953e8cd73ab7d0341 | 0d8b40639cf2f17ae8fb6650521ae0441f43446c | set delimeter from env | in line with other params, delimiter also accepts params from env
maybe we want to have this more automatic? E.g. a helper function that also sets the env var. | diff --git a/cmd/captain/partition.go b/cmd/captain/partition.go
index 02a53956..3ac992a2 100644
--- a/cmd/captain/partition.go
+++ b/cmd/captain/partition.go
@@ -45,8 +45,8 @@ func configurePartitionCmd(rootCmd *cobra.Command, cliArgs *CliArgs) error {
Long: "'captain partition' can be used to split up your test su... | 1 | 1 | 0 | [{"id": "G0", "claim": "The concatenated help string for the delimiter flag should have a space (or line break) between the joined strings so the text does not run together.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
rwx-research__captain__8 | rwx-research/captain | 8 | defect | b0f3f7d9af93c66f62a2e0b6f8546b899ec7dd75 | d8273b83da46195505252870abbc06052b9b50fc | title falls back to first line of commit message | if title isn't set but commit message is, all providers falls back to commit message
previously most providers were doing this. This PR
- ensures it happens for the generic provider
- ensures it happens late -- if the commit message is overridden somehow, the title is pulled from the latest commit message
addi... | diff --git a/cmd/captain/init.go b/cmd/captain/init.go
index c4ca40c4..23b808eb 100644
--- a/cmd/captain/init.go
+++ b/cmd/captain/init.go
@@ -85,7 +85,7 @@ func initCLIService(
logger = logging.NewDebugLogger()
}
- providerAdapter, err := cfg.ProvidersEnv.MakeProviderAdapter()
+ providerAdapter, err := cfg.... | 2 | 1 | 0 | [{"id": "G0", "claim": "TAGraves believes that in these cases the title should still be set in the provider-specific MakeProvider methods and wants to talk the change through.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The pull request removes the ti... | null |
ryaker__SparrowDB__128 | ryaker/SparrowDB | 128 | defect | 4a2f6fdd437217c1eef2af5e453c172d73dae0a3 | 74dc0398e48c2b20cb56344ea30ac7b728b629ab | feat(engine): ORDER BY spill-to-disk external merge sort (SPA-100) | ## **User description**
## Summary
- Implements external merge sort for ORDER BY on large result sets to prevent OOM on unbounded scans
- Adds SortableRow, OrdValue, and SortKeyVal types in sort_spill.rs wrapping Vec<Value> rows with an Ord-safe pre-computed sort key for use with SpillingSorter<T>
- Splits apply_order... | diff --git a/crates/sparrowdb-common/Cargo.toml b/crates/sparrowdb-common/Cargo.toml
index a596450a..a2a1cf9b 100644
--- a/crates/sparrowdb-common/Cargo.toml
+++ b/crates/sparrowdb-common/Cargo.toml
@@ -11,3 +11,4 @@ categories = ["database", "data-structures"]
[dependencies]
crc32fast = { workspace = true }
+serde... | 7 | 1 | 1 | [{"id": "G0", "claim": "The in-memory fast path compares with compare_values while the spill path compares with OrdValue, and the two orderings disagree for Null, Bool, mixed-type values and float edge cases like NaN/±0.0, so the same query can reorder rows when the row count crosses the spill threshold (nulls and bool... | null |
ryaker__SparrowDB__150 | ryaker/SparrowDB | 150 | defect | a4bc7fac5ea56139fe5e9b060c4845869f1f9efc | 7194747b56d86c67856357043533cda7a615cdb1 | feat(index): WHERE equality + range predicate acceleration (SPA-249) | ## **User description**
## Summary
- **Phase 1b**: `WHERE n.prop = literal` now hits the existing property B-tree index instead of doing a full label scan. Handles both `n.prop = lit` and `lit = n.prop` forms.
- **Phase 2 — sort-key fix**: Int64 values stored as two's-complement in 56 bits were sorting incorrectly in ... | diff --git a/crates/sparrowdb-execution/src/engine.rs b/crates/sparrowdb-execution/src/engine.rs
index b6b61820..fa9adefb 100644
--- a/crates/sparrowdb-execution/src/engine.rs
+++ b/crates/sparrowdb-execution/src/engine.rs
@@ -2654,12 +2654,44 @@ impl Engine {
let index_candidate_slots: Option<Vec<u32>> =
... | 9 | 5 | 3 | [{"id": "G0", "claim": "Merging compound-AND bounds with `.or()` picks the first bound instead of the most restrictive, so queries like `n.age > 10 AND n.age > 20` return incorrect results; use `max` for lower bounds and `min` for upper bounds.", "category": "correctness", "verdict": "supported", "priority": "P0", "sco... | null |
ryaker__SparrowDB__249 | ryaker/SparrowDB | 249 | defect | 6436d176f33f90e7e6dde926c48b30df5c1b134c | 2b3d10c2f65f793ac40a6a56fc1972180f3cbae6 | test(perf): raise macOS MATCH-CREATE threshold — fsync latency | ## **User description**
## Summary
- The `match_create_edge_oi_performance` test was failing in release mode at 13.7s (expected < 5s)
- Root cause: **fsync latency on macOS, not O(N) scan regression**
- Each `execute()` call for edge creation commits a WAL fsync (~13 ms on macOS SSD)
- 1,000 commits × 13 ms = ~13 s re... | diff --git a/crates/sparrowdb/tests/match_property_index.rs b/crates/sparrowdb/tests/match_property_index.rs
index 05b10635..65f29a28 100644
--- a/crates/sparrowdb/tests/match_property_index.rs
+++ b/crates/sparrowdb/tests/match_property_index.rs
@@ -146,7 +146,20 @@ fn match_create_edge_oi_performance() {
// Pe... | 2 | 1 | 0 | [{"id": "G0", "claim": "Extract the hard-coded timeout values (60_000 / 30_000 / 5_000) in match_create_edge_oi_performance into named constants to make each limit's purpose explicit and ease future adjustments.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.