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
scroll-tech__ceno__692
scroll-tech/ceno
692
defect
4a1af6cd14a9a3a1eca256af68511f8c98aecb04
f6197e750186e40889a4d4c4a71c51a7f9940653
Turn Transcript into trait
This PR try to turn `Transcript` into a trait so we can apply different implenents (For example, the `TranscriptSyncronized`) in the future. We try to split the trait into a basic `Transcript` trait and a extended `Forkable` (with the `fork` method being provided) one. The original `Transcript` struct has been rena...
diff --git a/ceno_zkvm/benches/riscv_add.rs b/ceno_zkvm/benches/riscv_add.rs index 8b948a48a..03f66d30b 100644 --- a/ceno_zkvm/benches/riscv_add.rs +++ b/ceno_zkvm/benches/riscv_add.rs @@ -15,7 +15,7 @@ use goldilocks::{Goldilocks, GoldilocksExt2}; use itertools::Itertools; use mpcs::{BasefoldDefault, PolynomialCommi...
5
3
0
[{"id": "G0", "claim": "The Transcript trait definition should be moved out of basic.rs into lib.rs or a separate file like common.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "commit_rolling should be a required trait method (remove the de...
null
scroll-tech__ceno__703
scroll-tech/ceno
703
defect
b5bbc84df7cf9e4f9f0be7823b380ca617ae7453
7d89a56a989ed620800afd5adcda17337b34d68a
Further break down e2e logic
Fixes #691. - Refactors e2e into smaller steps. - Introduces a `run_partial` method which takes a `prefix` argument, indicating when to stop the run of the pipeline. According to this argument, different parts of the state are yielded back. This part isn't too pretty type-wise, but ultimately I think it's not dang...
diff --git a/ceno_zkvm/benches/fibonacci.rs b/ceno_zkvm/benches/fibonacci.rs index a90521cfc..52c2f9910 100644 --- a/ceno_zkvm/benches/fibonacci.rs +++ b/ceno_zkvm/benches/fibonacci.rs @@ -7,7 +7,7 @@ use std::{ use ceno_emul::{CENO_PLATFORM, Platform, Program, WORD_SIZE}; use ceno_zkvm::{ self, - e2e::{run_e...
4
4
3
[{"id": "G0", "claim": "The keygen block (lines 361-368 of the S1 e2e.rs hunk) belongs to the key setup phase and should be moved up right after `generate_fixed_traces`, so that witness simulation/assignment and everything after count as the proving flow.", "category": "design", "verdict": "supported", "priority": "P1"...
null
scroll-tech__ceno__712
scroll-tech/ceno
712
defect
e40e2fc24eaac9b43abe2a49bd641e4e61bf43e0
7e90badabc4988022695c82c6268c391165f3d55
[Feat] Calculate proof size and number of hashes
This PR is base on #692 and provided required features to calculate the size of proofs and number of hashes Now it has been implied in the e2e test `test_single_add_instance_e2e` and `fibonacci` bench, obtained following output: > encoded zkvm proof size: 2756371, hash_num: 4411 The encoding of proof is done b...
diff --git a/Cargo.lock b/Cargo.lock index 3bfef12f7..a6ab7c5e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,6 +162,15 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "bincod...
9
5
0
[{"id": "G0", "claim": "The struct name BasicTranscriptWitStat looks like a typo and should probably be BasicTranscriptWithStat.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Introducing bincode as yet another serialisation framework alongside ...
null
scroll-tech__ceno__717
scroll-tech/ceno
717
defect
c4a6f090861a8e2d1aeb38d8e2b8426d5ec4e1ad
d854fa5963648bc7b201ee4641958f6f2e8ec210
Ecall demo with Keccak-f
**Trace generation** - Expand `StepRecord` to support multiple accesses to registers and memory (beyond standard instructions). - Introduce a module for syscall witness generation. See `fn handle_syscall(…)` - Witness generation for Keccak-f. Same format as sp1. - Runtime wrapper function `syscall_keccak_permute`...
diff --git a/Cargo.lock b/Cargo.lock index d84685eb4..605a9c71c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,6 +240,7 @@ dependencies = [ "num-traits", "strum", "strum_macros", + "tiny-keccak", "tracing", ] diff --git a/ceno_emul/Cargo.toml b/ceno_emul/Cargo.toml index 38f0a8bfd..40197036a 100644 --- a/c...
6
4
0
[{"id": "G0", "claim": "Limiting ecalls to exactly one proper argument seems like a weird limitation inherited from Risc0.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The chunks_exact/for_each loop building the u64 state could be slightly easier to re...
null
scroll-tech__ceno__72
scroll-tech/ceno
72
defect
381eee45d078628e1ecb7bcc0ddb73be65b5d9b5
b64be90c28338ccf2b9c9b59bc41c28a0f7d5686
[part2] general prover performance optimisation under gkr/sumcheck/mle
### optimisation type - [ ] `- memory consumption`, `+ throughtput` - [x] `+ memory consumption`, `+ throughtput` - [ ] `- memory consumption` , `- throughtput` - [ ] `- memory consumption` , `same throughtput` ### changed scope - parallelize sumcheck function in phase2 - introduce gate group_by fanin to...
diff --git a/gkr/Cargo.toml b/gkr/Cargo.toml index fbf956b58d..37ce41a25d 100644 --- a/gkr/Cargo.toml +++ b/gkr/Cargo.toml @@ -33,6 +33,7 @@ cfg-if = "1.0.0" default = [ ] flamegraph = ["pprof/flamegraph", "pprof/criterion"] parallel = [ ] +unsafe = [ ] [[bench]] name = "keccak256" diff --git a/gkr/benches/kecca...
4
2
0
[{"id": "G0", "claim": "Storing all layer polynomials as a pre-allocated Vec in IOPProverState might result in large memory costs.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "adds_fanin_mapping might perform better if BTreeMap were replaced with ...
null
scroll-tech__ceno__77
scroll-tech/ceno
77
defect
33e2ceec3bd9d7972d845563f79b1ba67a3d0896
5e205d2c5c81a0aeb7867e86dfb400f382758a9c
devirgo-like sumcheck on single node
### context Inspired by `Expander` extreme perf and follow deVirgo https://arxiv.org/pdf/2210.00264#page=8 `4.2 Distributed sumcheck`. This PR are experiment new thread isolation model on sumcheck, especially friendly for data-parallel circuit. The key different with `Expander` is we still just got single sumcheck p...
diff --git a/Cargo.lock b/Cargo.lock index 3b5507135c..7e5201052a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -265,6 +265,26 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +[[package]] +name = "const...
5
4
1
[{"id": "G0", "claim": "Reviewer questions whether the zero-padding of per-thread instance evaluations in mle_with_meta is needed and, given that a non-power-of-two number of instances is not supported, whether that handling should still be left in.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
scroll-tech__ceno__821
scroll-tech/ceno
821
defect
dfce3af72cb043bb4f76ec447813e604680cbc1b
7c01d2ba3666eec98cfa7b9151304ab096fbaece
Clean up 'hints' for guests
Add the functionality to chain writes to the hints stream.
diff --git a/ceno_host/src/lib.rs b/ceno_host/src/lib.rs index d6cd94ea1..814e361d8 100644 --- a/ceno_host/src/lib.rs +++ b/ceno_host/src/lib.rs @@ -127,8 +127,10 @@ impl CenoStdin { pub fn write( &mut self, item: &impl for<'a> Serialize<HighSerializer<AlignedVec, ArenaHandle<'a>, Error>>, - )...
2
1
0
[{"id": "G0", "claim": "`write_slice` should return `&mut Self` too, like the pull request's new `write`, so it can be chained.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The chained `Result::map` calls in `write()` look suspicious and should be re...
null
scroll-tech__ceno__83
scroll-tech/ceno
83
defect
10566f56ad5744b73c254edb2694be97e2596e8e
0b47beb7d49e553c83e0d1cdbb0efd8cdd60c440
devirgo style on phase 1
### optimisation type - [x] same memory consumption, + throughtput ### Change Scope - [x] merge `phase-1` two steps into single step and applied similar tricks to move parallism, refer to prev work [phase-2](https://github.com/scroll-tech/ceno/pull/77) - [x] some singer utility improvement: auto-implement phaseX_...
diff --git a/Cargo.lock b/Cargo.lock index 1aaab22292..3c1c14bc4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1275,6 +1275,9 @@ dependencies = [ "singer-utils", "strum 0.25.0", "strum_macros 0.25.3", + "tracing", + "tracing-flame", + "tracing-subscriber", "transcript", ] diff --git a/gkr-graph/src/circuit_g...
2
1
0
[{"id": "G0", "claim": "Use `#[rustfmt::skip]` (or equivalent formatting configuration) to avoid the comment being reformatted.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the whitespace in the 'override buf[b1, b2,..bt, 0]' comments, an...
null
scroll-tech__ceno__889
scroll-tech/ceno
889
defect
ab12235c432529995c1fd713189991c161f876fe
00e1f0725220cd93105d25775f23d9a07504c4ef
non uniform heap/stack
To close https://github.com/scroll-tech/ceno/issues/879, achieving the last miles of non-uniform design of ceno. ### Design rationale To achieve non-uniform, we refactor stack/heap to use structural_witness column (column without need to be committed, and verifier can evaluate it succinctly in O(log(N)), same desig...
diff --git a/ceno_emul/src/elf.rs b/ceno_emul/src/elf.rs index ce849fde7..14d8fd90e 100644 --- a/ceno_emul/src/elf.rs +++ b/ceno_emul/src/elf.rs @@ -16,7 +16,10 @@ extern crate alloc; +use std::iter::successors; + use alloc::collections::BTreeMap; +use itertools::Itertools; use crate::{CENO_PLATFORM, addr::WOR...
2
2
2
[{"id": "G0", "claim": "In probe_min_max_address_by_start_addr, the end-address comparison should be exclusive (`start_addr < e`) like the other end handling above, instead of inclusive (`start_addr <= e`).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
scroll-tech__ceno__980
scroll-tech/ceno
980
defect
1b02425d4ce65971b333beb86f215d0a7f66bc21
41efaf617ee7e48178374082948a20a61698dac0
[precompile] part2 integrate keccak precompile into e2e flow
### gkr-iop circuit This PR complete keccak precompile circuit construction, and try to separate clearly: for zkvm related circuit are construct in "keccak" opcode, while precompile only handle dedicate logic. For witness assignment also same principle, phase 1 witness are also assign separately for better modularizt...
diff --git a/Cargo.lock b/Cargo.lock index fcd3ae255..cc87a7561 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1115,6 +1115,7 @@ dependencies = [ "either", "ff_ext", "itertools 0.13.0", + "keccakf", "mpcs", "multilinear_extensions", "ndarray", @@ -1520,6 +1521,15 @@ dependencies = [ "cpufeatures", ] +[[p...
4
1
1
[{"id": "G0", "claim": "In MockProver, comparing with `expect != got` can flag a mismatch when `expect` and `got` are equal but stored as different variants (one `FieldType::Base(..)`, the other `FieldType::Ext(..)`).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
scroll-tech__ceno__991
scroll-tech/ceno
991
defect
144e9da3f4c7a0e79da1965ce17116dd626aa096
ea21ca48db983dd49f686fc4c05faa7312369dc2
Add full SHA-256 example
This full SHA-256 implementation accepts arbitrary-length inputs: ```bash RUST_LOG=info cargo run --release --package ceno_zkvm --bin e2e -- --profiling=3 --platform=ceno --public-io=30689455,3643278932,1489987339,1626711444,3610619649,1925764735,581441152,321290698 examples/target/riscv32im-ceno-zkvm-elf/release/exa...
diff --git a/examples/examples/sha256.rs b/examples/examples/sha256.rs new file mode 100644 index 000000000..ab3871805 --- /dev/null +++ b/examples/examples/sha256.rs @@ -0,0 +1,127 @@ +extern crate ceno_rt; +use ceno_rt::syscalls::syscall_sha256_extend; +use rkyv::vec::ArchivedVec; + +// SHA-256 constants +const K: [u...
1
1
1
[{"id": "G0", "claim": "Add a simple test for the full SHA-256 example that checks input/output correctness, similar to the existing keccak_no_syscall test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scroll-tech__ceno__993
scroll-tech/ceno
993
defect
144e9da3f4c7a0e79da1965ce17116dd626aa096
11673777cd379915a16dd3fe6aeebbdeebb3c6bb
refactor proving backend
Fixed the latency regressed reported in https://github.com/scroll-tech/ceno/pull/923#issue-3016452781 The reason is because PCS::trim was executed every time during prover-backend initialization. This PR refactor proving device as reusable across whole program live cycle. ### benchmark with benchmark command...
diff --git a/Cargo.lock b/Cargo.lock index e2349574c..074326c39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -340,6 +340,7 @@ dependencies = [ "console", "ff_ext", "get_dir", + "gkr_iop", "mpcs", "parse-size", "serde", diff --git a/ceno_cli/Cargo.toml b/ceno_cli/Cargo.toml index 8ba753539..b5e12645f 100644 -...
3
3
1
[{"id": "G0", "claim": "CpuProver should take ownership of the backend (e.g. pass it by value) instead of holding a &'static PB obtained by leaking it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new max_poly_size_log2 expression is wrong: when tr...
null
scrypster__muninndb__203
scrypster/muninndb
203
defect
9927f239e9cc998530629155bd44b2dfa2d4c31b
1f55fdcc1098b147d547663c7630532c6baebd57
web: graph view improvements — labels toggle, configurable limit, entity graph spacing, vault param fixes
## Summary A collection of improvements to the Web Admin graph view, plus a server-side limit fix and a vault parameter cleanup across multiple API calls. ## Changes ### Graph view — new features - **Configurable engram limit**: The memory graph "Top 50" label is replaced with a number input (`graphLimit`) th...
diff --git a/internal/transport/rest/openapi.yaml b/internal/transport/rest/openapi.yaml index 0af8627b..7aa7a72e 100644 --- a/internal/transport/rest/openapi.yaml +++ b/internal/transport/rest/openapi.yaml @@ -1574,7 +1574,8 @@ paths: in: query schema: type: integer - defa...
5
4
0
[{"id": "G0", "claim": "The test's broad strings.Contains checks for \"default: 50\" and \"maximum: 200\" across the whole OpenAPI document can produce false positives, so the assertion should be narrowed to the limit parameter under /api/engrams.", "category": "testing", "verdict": "supported", "priority": "P2", "scop...
null
scrypster__muninndb__225
scrypster/muninndb
225
defect
60cd0d4c15ce5abf8f8da618cf2cfcd9ec71a36f
dbc2b8c49ca622edb75d4323f61a8993860dc40d
Harden engine shutdown and replication drain races
This PR comes from having failing tests and hitting errors similar to ones previously fixed, and tries to give better fix coverage. ## Summary This PR hardens the engine and replication shutdown paths so teardown does not race Pebble access, and so long-running synchronous vault operations respond correctly w...
diff --git a/internal/engine/engine.go b/internal/engine/engine.go index b3e8478d..4db66849 100644 --- a/internal/engine/engine.go +++ b/internal/engine/engine.go @@ -43,13 +43,13 @@ type CognitiveForwarder interface { // Engine is the cognitive database engine implementing mbp.EngineAPI. type Engine struct { - sto...
7
7
3
[{"id": "G0", "claim": "LowestRelevanceIDs returns without checking iter.Error(), so Pebble iterator errors (including corruption/IO issues) can be silently ignored and produce incomplete candidate sets; asks to check iter.Error() after the loop and surface it to callers wrapped with scan context.", "category": "correc...
null
scrypster__muninndb__337
scrypster/muninndb
337
defect
daae5ebd1f6c84aa43caa522ba1544627d357599
75b9c0f9794d9f8323d5851c9623487b48186cdc
fix(engine): resolve ACT-R score saturation in fresh/small vaults
## Problem In vaults with recently written engrams, `computeACTR()` produces raw scores well above 1.0. The previous hard clamp collapsed every saturated score to 1.0 — all engrams scored identically, making ranking arbitrary tie-breaking. Reproduction (from issue #331 benchmark): - 13 test engrams, all freshly writt...
diff --git a/internal/engine/activation/actr_test.go b/internal/engine/activation/actr_test.go index 406c7be2..fb32585c 100644 --- a/internal/engine/activation/actr_test.go +++ b/internal/engine/activation/actr_test.go @@ -26,13 +26,12 @@ func assertNear(t *testing.T, name string, got, want, tol float64) { } // exp...
2
2
2
[{"id": "G0", "claim": "The two-pass normalization treats the symptom rather than the root cause: with the 1-minute ageDays floor, contextualPrior diverges as ageDays→0 so fresh engrams saturate regardless of content match, and per-query normalization makes scores query-relative rather than absolute (threshold semantic...
null
scs__substrate-api-client__704
scs/substrate-api-client
704
defect
3098812af70d80bdd63f82639f76e5c3e2c36312
fccc026bb6e321c411589a16ae52bf7ca585d4be
Add Encode Decode to ExtrsinicReport and use RawExtrinsicDetails
- Removed Pointer and usize from `EventDetails` as they do not implement codec Decoding / Encoding. - Added `RawEventDetails` to allow usage of EventDetails without always holding the full metadata - Changed `ExtrinsicReport` to use `RawEventDetails` instead, to make the report smaller. Otherwise, the full metadata w...
diff --git a/examples/async/examples/check_extrinsic_events.rs b/examples/async/examples/check_extrinsic_events.rs index ecdd55dc7..f5038d70f 100644 --- a/examples/async/examples/check_extrinsic_events.rs +++ b/examples/async/examples/check_extrinsic_events.rs @@ -15,7 +15,7 @@ use sp_keyring::AccountKeyring; use s...
1
1
1
[{"id": "G0", "claim": "Because the change exists to support serialization/deserialization, a test for that capability should be added so it cannot be removed without a failing test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sctplab__usrsctp__321
sctplab/usrsctp
321
defect
b78601e565d257a145ac3728baa56458c94108c9
7f7c325cf80230fe4d0b191e64b4fdbc337849cb
MinGW Support (32bit & 64bit)
This PR adds support for MinGW (32bit & 64bit). I'm not an MinGW expert so I've just done whatever seemed to be the right way. I've taken some code from PR #150 and extended/modified it. Tested in all combinations on Windows 10 (1903) * MinGW32 & MinGW64 * Clang (i386 / x64) * GCC (i386 / x64) If this PR get...
diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt index d383c3f13..0f0ed7fb4 100644 --- a/programs/CMakeLists.txt +++ b/programs/CMakeLists.txt @@ -56,6 +56,11 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_definitions(-D__APPLE_USE_RFC_2292) endif () +if (MSYS) + message(STATUS "MSYS") + add_definiti...
3
3
0
[{"id": "G0", "claim": "The added (uint32_t) casts on the result of ntohl() (here and in the other similar changes) should be removed, since ntohl() already returns an unsigned integer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The // style...
null
sctplab__usrsctp__339
sctplab/usrsctp
339
defect
1c34f3d6e7dcb5bf3534bc6559487184577b1d7f
8c78086db78da6d98bf0faba562b074bad836e38
Single thread
Based on https://github.com/sctplab/usrsctp/pull/38/commits/010fcbc6f193152607dc267c7e7e573c9bffc111
diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt index 8e372660f..230f698fd 100644 --- a/programs/CMakeLists.txt +++ b/programs/CMakeLists.txt @@ -101,6 +101,7 @@ list(APPEND check_programs http_client.c http_client_upcall.c rtcweb.c + st_client.c test_libmgmt.c test_timer.c tsctp.c diff --git...
20
19
12
[{"id": "G0", "claim": "The commits making up the pull request should attribute @ccaughie, via `git commit --author` or at least in the PR comment.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The newly added st_client.c program should be added to ...
null
sctplab__usrsctp__391
sctplab/usrsctp
391
defect
256ce79d3122ce92d73edb2d46f8eb6da664aa69
64b818831bd1ca84c5510f1deca6cc14a2d40cbc
Rename delta to elapsed_ticks.
I've started investigation of possible fix to #131 myself. To understand how to fix an issue I've started to familiarize myself with timer implementation from [`sctp_callout.c`](https://github.com/sctplab/usrsctp/blob/256ce79d3122ce92d73edb2d46f8eb6da664aa69/usrsctplib/netinet/sctp_callout.c), where changes suspecte...
diff --git a/usrsctplib/netinet/sctp_callout.c b/usrsctplib/netinet/sctp_callout.c index 3ba527071..f864eceb6 100755 --- a/usrsctplib/netinet/sctp_callout.c +++ b/usrsctplib/netinet/sctp_callout.c @@ -218,7 +218,7 @@ sctp_os_timer_stop(sctp_os_timer_t *c) } void -sctp_handle_tick(int delta) +sctp_handle_tick(int el...
2
1
0
[{"id": "G0", "claim": "The declaration of sctp_handle_tick in sctp_callout.h should omit the parameter name completely.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer is not sure what is gained by renaming the parameter delta to el...
null
sctplab__usrsctp__639
sctplab/usrsctp
639
defect
082bd0016dcb7e6a0e23fa0b38b346e4489b6903
9b9e98627a107817accb96163d50b2ac7b14f3e5
Use pthread_rwlock for RW locks in userland
This PR introduces `pthread_rwlock` instead of `pthread_mutex` to implement RW locks, as suggested in https://github.com/sctplab/usrsctp/issues/538.
diff --git a/usrsctplib/netinet/sctp_os_userspace.h b/usrsctplib/netinet/sctp_os_userspace.h index 46b618110..bd451943d 100755 --- a/usrsctplib/netinet/sctp_os_userspace.h +++ b/usrsctplib/netinet/sctp_os_userspace.h @@ -52,6 +52,7 @@ #include "user_environment.h" typedef CRITICAL_SECTION userland_mutex_t; #if WINVE...
3
3
2
[{"id": "G0", "claim": "tuexen would prefer the inp lock not be changed to a rwlock yet (no FreeBSD coverage, little expected gain) and asks to revert that part.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "tuexen asks whether the inp info lock and ipi...
null
scummvm__scummvm__6473
scummvm/scummvm
6,473
defect
93b3ed209dcb64508b9b69fead974c150190cb72
2626d66252acef4f04a41f9c1072c0c71fb30eea
TESTBED: Allow video test to handle more decoders
The decoders for avi, dxa, flc, mve, and smk are selected based on file extension. The MVE video width, height, and pixel format getters were causing infinite recursion due to the video decoder asking its tracks for the width, height, and pixel format by the same methods
diff --git a/engines/testbed/video.cpp b/engines/testbed/video.cpp index 69332415870e0..39bbe99ff97ad 100644 --- a/engines/testbed/video.cpp +++ b/engines/testbed/video.cpp @@ -22,8 +22,13 @@ #include "common/events.h" #include "common/file.h" #include "engines/util.h" +#include "video/avi_decoder.h" +#include "vide...
2
2
0
[{"id": "G0", "claim": "The new if/else-if decoder-selection chain in videoTest is misformatted: closing braces should be joined to the following else (e.g. `} else if (...) {` and `} else {`) instead of standing on their own line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "int...
null
scummvm__scummvm__6535
scummvm/scummvm
6,535
defect
07c20aa94b803cc034b6fd56f3115a2878a0b675
d0c5b608516ee8b2559a7f99d83faa4434224c7e
IMAGE: Get palette class by reference on image decoders
This expands the use of palette class by altering the getPalette() method on ImageDecoder to return a const reference to the palette class. Image decoders without palettes return an empty palette. A few decoder instances now copy palette data rather than retain a pointer. Thoughts: - Should Palette have a default ...
diff --git a/backends/graphics/opengl/pipelines/libretro.cpp b/backends/graphics/opengl/pipelines/libretro.cpp index 71aac01d36f8a..eb52c613d2e3c 100644 --- a/backends/graphics/opengl/pipelines/libretro.cpp +++ b/backends/graphics/opengl/pipelines/libretro.cpp @@ -77,14 +77,15 @@ static Graphics::Surface *loadViaImageD...
1
1
1
[{"id": "G0", "claim": "Keep hasPalette() in the ImageDecoder API as an inlined wrapper around getPalette().empty() instead of removing it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scummvm__scummvm__6605
scummvm/scummvm
6,605
defect
a1b2a443de7331c3ad62c12e6a6a673282f83057
3c160d439d620830b304156b601a427ff8d125d1
TESTBED: Small Improvements & Bugfixes
- **Make Interactive Mode configurable in GUI** I wanted to be able to run testbed in automated mode without adjusting the scummvm.ini - this is now possible: ![Screenshot 2025-05-09 at 21-52-21 ScummVM 2 10 0git (May 8 2025 12 59 31)](https://github.com/user-attachments/assets/39dd3ecf-3dd1-4bb8-9493-cd77174fe50d) ...
diff --git a/engines/testbed/config-params.cpp b/engines/testbed/config-params.cpp index f5de4817e2390..f3b88e5367cbc 100644 --- a/engines/testbed/config-params.cpp +++ b/engines/testbed/config-params.cpp @@ -53,8 +53,15 @@ void ConfigParams::initLogging(const Common::Path &dirname, const char *filename } void Conf...
5
5
2
[{"id": "G0", "claim": "Please fix code formatting in the changed files.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `if(logDir.isWritable()){` line needs a space between `if(` and `isWritable()`, and before the brace.", "category": "...
null
scummvm__scummvm__6917
scummvm/scummvm
6,917
defect
f4d7fed01338efc68a8bd1be6a6bd75ea31f9402
92a4ab40e28884a3ccc84af37f858c26043c76e7
TINYGL: Add support for texture environments
This PR adds support for a subset of texture environment operations to TinyGL. This is tested with unit tests as well as a test suite for testbed, but should ideally also be tested with actual games using TinyGL by their respective engine developer. The unit tests will not be picked up without ([5c03124](https://git...
diff --git a/graphics/tinygl/gl.h b/graphics/tinygl/gl.h index 25aa10d8e2fbd..9e33c972c184e 100644 --- a/graphics/tinygl/gl.h +++ b/graphics/tinygl/gl.h @@ -660,6 +660,23 @@ enum { TGL_ALIASED_POINT_SIZE_RANGE = 0x846D, + // --- GL 1.3 --- selected + + // Texture environments + TGL_COMBINE = 0x8570, + TGL...
1
1
0
[{"id": "G0", "claim": "Avoid the runtime conditional on the texture-environment path in putPixelTexture and instead use template variables for it.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
scummvm__scummvm__6961
scummvm/scummvm
6,961
defect
cbce7eeb32c0ddb759fba2395b1bd6ff8b41442a
deab1f9cea5ec3ec10a0baee8a2cca6e9f144ae3
Drop pre-C++11 compat code
The following PR drops several constructs we had for pre-C++11 compilers. Hopefully, each commit message in this PR is self-explanatory and contains any relevant context. The baseline I've used for this testing this is: the GCC 4.7 RISC OS target, and MSVC 2015 (which are, AFAIK, the lowest denominators we have, ...
diff --git a/common/array.h b/common/array.h index 1a8ef62df3140..733b493186eb9 100644 --- a/common/array.h +++ b/common/array.h @@ -116,8 +116,6 @@ class Array { * Common::Array<int> myArray = {1, 7, 42}; * @endcode * constructs an array with 3 elements whose values are 1, 7, and 42 respectively. - * @note -...
2
2
0
[{"id": "G0", "claim": "It might be worth deviating from MemoryReadStream in BitStreamMemoryStream anyway, to allow faster aligned memory loads.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The _NUMARGS helper this pull request enables in the SCI res...
null
scurker__currency.js__247
scurker/currency.js
247
defect
92e704d3e3642e4287cba5a8ebda1aa3cf2086d8
0c02b7d5d3c8251c2f356b12d6a5a317f15f2581
Parse currency as cents
Closes #166. A couple of notes: * Fully backward-compatible. Supports all existing defaults. * Respects the precision option * Truncates decimals passed in when `fromCents` is true. * Added docs, TypeScript, and Flow data Let me know what you think.
diff --git a/package-lock.json b/package-lock.json index 7a19a610..4f936eb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1727,8 +1727,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - ...
5
5
1
[{"id": "G0", "claim": "The readme's fromCents examples appear wrong: `currency(123, { fromCents: true, precision: 0 })` should be `123`, and the `precision: 3` example should be `0.123`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reword the r...
null
scverse__anndata__1028
scverse/anndata
1,028
defect
55a17252ad282e95cd8ec5618e4d2ee1605d2480
7e56e36363d1b3fb95d050e6aa4460bebb66c556
(feat): Support for scipy.sparse.{csr,csc}_array
Starting support for scipy.sparse csc_array and csr_array. These are the new array-like interfaces for sparse matrices from scipy. Fixes #746, #859 Still very WIP TODO: - [x] Figure out compat with scipy<1.11 - [ ] Demo of how to load an array from disk - [x] Support for `.X` - [x] Tests (figure out ...
diff --git a/anndata/_core/anndata.py b/anndata/_core/anndata.py index 2a02475bc..d3dece4b7 100644 --- a/anndata/_core/anndata.py +++ b/anndata/_core/anndata.py @@ -31,9 +31,12 @@ from .. import utils from .._settings import settings from ..compat import ( + CAN_USE_SPARSE_ARRAY, + CsrArray, CupyArray, ...
9
4
1
[{"id": "G0", "claim": "Questions whether gen_adata should add the sparse_array entry when only csr_matrix is among the requested types.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "Replace the five inline sparse-array conditionals in gen_adata with a ...
null
scverse__anndata__1516
scverse/anndata
1,516
defect
874fc378c975ebf5fe21736dbe96a448b382d0fe
2e397f6e452a42350bd4b2e1d9d6660cb74b889f
Coerce np.matrix instances to np.ndarray
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] Closes #1431 - [x] Tests added - [x] Release note added (or unnecessary) This unifies the array type coercion, which used to work differently betwen `X` and `AlignedMapping`s. @ilan-gold, does it ma...
diff --git a/docs/release-notes/0.10.8.md b/docs/release-notes/0.10.8.md index 52b743866..23aa26529 100644 --- a/docs/release-notes/0.10.8.md +++ b/docs/release-notes/0.10.8.md @@ -5,6 +5,7 @@ * Write out `64bit` indptr when appropriate for {func}`~anndata.experimental.concat_on_disk` {pr}`1493` {user}`ilan-gold` *...
4
4
1
[{"id": "G0", "claim": "The X type check in _init_as_actual should maybe be moved into coerce_array.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message listing allowed X types should be constructed from the StorageType enum instead...
null
scverse__anndata__1586
scverse/anndata
1,586
defect
daed86fa09f03c895a35dad059c39602de75ad88
7f874baeab16cf988414cc8f71f658bf96d38b50
(fix): setting `index` on `DataFrameView`
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] Closes #1201 - [x] Tests added - [x] Release note added (or unnecessary)
diff --git a/docs/release-notes/0.10.9.md b/docs/release-notes/0.10.9.md index 7b5faa0f6..6245978f8 100644 --- a/docs/release-notes/0.10.9.md +++ b/docs/release-notes/0.10.9.md @@ -9,6 +9,7 @@ * Upper bound {mod}`numpy` for `gpu` installation on account of {issue}`cupy/cupy#8391` {pr}`1540` {user}`ilan-gold` * Fix wr...
4
3
1
[{"id": "G0", "claim": "The tested behavior is backwards: setting `index` on a view should not update the original object, but the test as written encodes that the original is updated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The warning messa...
null
scverse__anndata__1608
scverse/anndata
1,608
defect
f1d5d63691e3522931ff3d55b00cd1e9153d9d42
765ba239df92eaea279e212ec42330e67d6ee170
(fix): clarify public backed sparse docstring/api
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> For https://github.com/scverse/anndata/pull/1598#pullrequestreview-2260162414 Perhaps should go in separately to `main` as it is a cleaner git blame IMO - [ ] Closes # - [ ] Tests added - [ ] Release note add...
diff --git a/benchmarks/benchmarks/sparse_dataset.py b/benchmarks/benchmarks/sparse_dataset.py index 7d217d159..42ab3847f 100644 --- a/benchmarks/benchmarks/sparse_dataset.py +++ b/benchmarks/benchmarks/sparse_dataset.py @@ -5,7 +5,8 @@ from scipy import sparse from anndata import AnnData -from anndata.experimental...
2
1
0
[{"id": "G0", "claim": "The return type of `to_memory` includes `spmatrix | SpArray` but the method never returns a `csr_array`/`csc_array` (only csr_matrix/csc_matrix); it should either return those array types or the annotation should not promise them.", "category": "correctness", "verdict": "uncertain", "priority": ...
null
scverse__anndata__1633
scverse/anndata
1,633
defect
94b2304cb2c08dd2c5f8d3cb7ee4da39d874975a
1a9ff61e494f0bce05f4169bd364306dcf7114ae
(feat): allow reading of `scipy.sparse.cs{c,r}_array`
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] Discovered in https://github.com/scverse/anndata/pull/1608#discussion_r1738686391 and following up on https://github.com/scverse/anndata/pull/1028#discussion_r1559858337 - [x] Tests added - [x] Release no...
diff --git a/docs/release-notes/1633.feature.md b/docs/release-notes/1633.feature.md new file mode 100644 index 000000000..aeaf63e3a --- /dev/null +++ b/docs/release-notes/1633.feature.md @@ -0,0 +1 @@ +Allow reading sparse data (via {func}`~anndata.read_elem` or {func}`~anndata.experimental.sparse_dataset`) into eithe...
1
1
1
[{"id": "G0", "claim": "Whether `_shall_use_sparse_array_on_read` should be captured when the dataset object is instantiated or read dynamically was raised as up for debate: the author leaned toward caching it at init, while the reviewer argued a cached value would make the setting effectively do nothing on existing ob...
null
scverse__anndata__1743
scverse/anndata
1,743
defect
6ae9de890ef81e528bfe0dc21cf71a24b22400a0
e652c449c9c219814cb5554b32969c8d22023633
(fix): lazy chunking respects -1
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] Noticed while creating the screenshot tutorial for the announcement - [x] Tests added - [x] Release note added (or unnecessary)
diff --git a/docs/release-notes/1743.bugfix.md b/docs/release-notes/1743.bugfix.md new file mode 100644 index 000000000..f8f489aff --- /dev/null +++ b/docs/release-notes/1743.bugfix.md @@ -0,0 +1 @@ +Fix chunking with -1 in `chunks` argument of {func}`~anndata.experimental.read_elem_as_dask` {user}`ilan-gold` diff --gi...
1
1
0
[{"id": "G0", "claim": "Use `zip(..., strict=True)` instead of `enumerate` + indexing when pairing chunks with shape in the chunk-size tuple.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
scverse__anndata__1843
scverse/anndata
1,843
defect
8d7beab49d04f5c1d91c847e0e1af99795d4d25f
6239f7794cc7f710c6a1c1f6e11829730f22feba
(fix): correct shape for empty element in concat with dask
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] Closes #1842 - [x] Tests added - [ ] Release note added (or unnecessary)
diff --git a/src/anndata/_core/merge.py b/src/anndata/_core/merge.py index 21bdcc414..76cb8de13 100644 --- a/src/anndata/_core/merge.py +++ b/src/anndata/_core/merge.py @@ -564,7 +564,7 @@ def _apply_to_dask_array(self, el: DaskArray, *, axis, fill_value=None): shape[axis] = len(self.new_idx) ...
2
2
0
[{"id": "G0", "claim": "The method `get_new_idx_from_old_idx` should be renamed to reflect its indexer role (e.g. `into`, `indexer`, or as ilan-gold proposed an `idx` property) since the current name does not accurately describe the API.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
scverse__anndata__1887
scverse/anndata
1,887
defect
3502bb132aa9a97b12c46170f259d7bf5eac6330
ec05d4d6a504d0255cd93f84b2404c434fb40a82
(chore): disallow `Dataset2D` writing
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> I think forcing people to load the data into memory is a good way to (a) prevent them from writing data with lost data types (since `concat` cannot preserve extension array types) and (b) save me from stalling this...
diff --git a/docs/release-notes/1887.bugfix.md b/docs/release-notes/1887.bugfix.md new file mode 100644 index 000000000..c58f025bb --- /dev/null +++ b/docs/release-notes/1887.bugfix.md @@ -0,0 +1 @@ +Disallow writing of {class}`~anndata.experimental.backed._xarray.Dataset2D` objects {user}`ilan-gold` diff --git a/pypro...
2
2
0
[{"id": "G0", "claim": "The write error message should say \"not supported yet\" to signal Dataset2D writing may be added in the future.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The single-method dispatch body should be replaced by registeri...
null
scverse__anndata__1927
scverse/anndata
1,927
defect
96a15299f6f0abade253e98733d482e1bfe78483
f546ffbd452589d10640d702b155ae75de3cd40b
feat: allow gpu io in `sparse_dataset` by removing `scipy` inheritance
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> Aside from the removed ability to write, all functionality should be ported over. - [x] Closes #1456, towards #1154 and https://github.com/scverse/anndata/issues/659#issuecomment-1033548060 - [x] Tests added ...
diff --git a/docs/release-notes/1927.breaking.md b/docs/release-notes/1927.breaking.md new file mode 100644 index 000000000..9ffd22424 --- /dev/null +++ b/docs/release-notes/1927.breaking.md @@ -0,0 +1 @@ +Remove internal use of inheritance inside {class}`~anndata.abc.CSRDataset` and {class}`~anndata.abc.CSCDataset` fr...
6
2
0
[{"id": "G0", "claim": "The reimplemented `__getitem__` may support fewer slicing cases than the former scipy sparse superclasses did (e.g. `csr_matrix(...)[:, np.ndarray([0, 1])]`).", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If an exception is ra...
null
scverse__anndata__1929
scverse/anndata
1,929
defect
3502bb132aa9a97b12c46170f259d7bf5eac6330
887205fa80d6a0fe37f88028484970e1c989ef1e
(fix): manage dask cluster from controller
I tested this locally with and without `-n auto`. Due to my 16 cores it failed pretty reliably in parallel mode and now doesn’t.
diff --git a/pyproject.toml b/pyproject.toml index c826b767e..7566e31ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,7 +91,6 @@ test = [ "pytest-randomly", "pytest-memray", "pytest-mock", - "filelock", "matplotlib", "scikit-learn", "openpyxl", @@ -102,7 +101,7 @@ test = [ ...
2
1
0
[{"id": "G0", "claim": "If the base `test` extra installs `anndata[dask,lazy]`, the separate `test-full` extra is no longer needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A local CI job running Python 3.11 without min-deps should be added, since ...
null
scverse__anndata__1992
scverse/anndata
1,992
defect
0bce9297a6acfbb9a2656e6bdf287b762d818a37
9ac03a448fbc9b091a9095a472dc947ace1595f6
(fix): setting on `Dataset2D` "just works" (like Dataframes) and is thoroughly checked
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> Since we're enforcing two dimensions on the object (in theory), we should probably be _super_ clear about that while also retaining dataframe-like operations i.e., when you try to "set a column" (in this case, xa...
diff --git a/src/anndata/_core/merge.py b/src/anndata/_core/merge.py index 1414bff98..0d9adbd50 100644 --- a/src/anndata/_core/merge.py +++ b/src/anndata/_core/merge.py @@ -781,11 +781,8 @@ def _apply_to_dataset2d(self, el: Dataset2D, *, axis, fill_value=None): {index_dim: self.new_idx}, method=None, f...
7
6
0
[{"id": "G0", "claim": "The new `concat_indices` parameter of `concat_dataset2d_on_annot_axis` should be described in the function's docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `__setitem__` docstring's escaped backslash-quotes a...
null
scverse__anndata__2025
scverse/anndata
2,025
defect
20828981ca42e53488a1ac92aa9b47eade3c7a63
ee34728d414564402d699b0b4698d106add0a39f
fix: make tests run shorter
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> Cutting down the size of generated anndata objects (that are then written to disk) cuts down test time by about 20% or so overall. Separately, as can currently be seen, tests involving `zarr-python>=3` take 6-...
diff --git a/.github/workflows/test-cpu.yml b/.github/workflows/test-cpu.yml index 894ac05b4..5262e3493 100644 --- a/.github/workflows/test-cpu.yml +++ b/.github/workflows/test-cpu.yml @@ -47,6 +47,7 @@ jobs: strategy: matrix: env: ${{ fromJSON(needs.get-environments.outputs.envs) }} + io_ma...
3
1
0
[{"id": "G0", "claim": "The comment above the max_loaded_elems fixture still says \"1000 is enough to guarantee that the feature is being used\", but the new parameter set no longer contains 1000.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
scverse__anndata__2051
scverse/anndata
2,051
defect
c29100d6a46238d4d6a9faaf4c3c3b559676208a
0be973e121dc20a5afe6aba964b1634d1434d224
fix: allow writing to v3/2 store when setting is v2/3 if possible
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> As of the `main` branch, the following ```python import anndata as ad, zarr, numpy as np adata = ad.AnnData(np.ones((10, 10))) g = zarr.open("foo.zarr") # i.e., a zarr v3 store assert ad.settings.zarr_writ...
diff --git a/docs/tutorials/zarr-v3.md b/docs/tutorials/zarr-v3.md index a5b4668e3..82d2e48d4 100644 --- a/docs/tutorials/zarr-v3.md +++ b/docs/tutorials/zarr-v3.md @@ -1,6 +1,6 @@ # zarr-v3 Guide/Roadmap -`anndata` now uses the much improved {mod}`zarr` v3 package and also allows writing of datasets in the v3 forma...
5
3
0
[{"id": "G0", "claim": "The tutorial should mention and link to an explanation of what sharding is, if it does not do so elsewhere.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In write_recarray_zarr, the stale comment `# TODO: zarr’s on-disk fo...
null
scverse__anndata__2159
scverse/anndata
2,159
defect
2fe7b3968f89eff4569afa10df216f8c14d8264b
356547fc806d0aa7ce2b9e32606681afb4c13f83
perf: add ability to write downcasted indices
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> TODO: - [ ] gather feedback in #2153 - [x] ~~tests for + run on GPU CI~~ We don't support io directly into GPU anyway! Checks - [x] Closes #2153 - [x] Tests added - [x] Release note added (or unnecessar...
diff --git a/docs/release-notes/2159.perf.md b/docs/release-notes/2159.perf.md new file mode 100644 index 000000000..195c92222 --- /dev/null +++ b/docs/release-notes/2159.perf.md @@ -0,0 +1 @@ +Add a `write_csr_csc_indices_with_min_possible_dtype` option to {attr}`anndata.settings` to enable downcasting of the `indices...
1
1
0
[{"id": "G0", "claim": "The test should build the array shape as a tuple instead of a list (shape = (num_minor_axis, 20) if format == \"csc\" else (20, num_minor_axis)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
scverse__anndata__2172
scverse/anndata
2,172
defect
6f13bc841f55fd603e644133bd490bf9bcd3077e
44942dd5e06ce352310ab5dd458e513cda58c954
fix: remove global lock on zarr dense stores from dask
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> ~~I tried to do some forensic work to establish what this was for originally, but couldn't quite figure it out. #1079 doesn't contain enough info to reproduce the issue without the lock, and all tests pass with ...
diff --git a/.github/workflows/test-cpu.yml b/.github/workflows/test-cpu.yml index c208b3428..8da4ab12b 100644 --- a/.github/workflows/test-cpu.yml +++ b/.github/workflows/test-cpu.yml @@ -43,7 +43,7 @@ jobs: strategy: matrix: env: ${{ fromJSON(needs.get-environments.outputs.envs) }} - io_ma...
3
2
0
[{"id": "G0", "claim": "If the idea of the test split is to test with different schedulers, splitting tests by io_mark would not achieve that.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The dask_distributed tests should not be run with pytest-xdist's -...
null
scverse__anndata__2218
scverse/anndata
2,218
defect
774bb8111dcdebc33477d4986e34afb5f47b4371
16ac6f5a93227f453549ac6aba3a079cd39861b7
fix: no dangling file handles in `concat_on_disk`
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] Closes #2198 - [x] Tests added - [x] Release note added (or unnecessary)
diff --git a/src/anndata/experimental/merge.py b/src/anndata/experimental/merge.py index 33cecedc7..5883de59c 100644 --- a/src/anndata/experimental/merge.py +++ b/src/anndata/experimental/merge.py @@ -2,6 +2,7 @@ import shutil from collections.abc import Mapping +from contextlib import contextmanager from functool...
4
4
0
[{"id": "G0", "claim": "Use contextlib.ExitStack instead of the hand-rolled ListContextManager and extract the body of concat_on_disk into a _concat_on_disk_inner helper to avoid the enormous function and deep indentation.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
scverse__anndata__2254
scverse/anndata
2,254
defect
532386c38dd342170be6c97556b7a7ab0df49689
46a8c6065c6b9f834382c83e299e0e29a2e1a606
fix: disallow nullable on-disk categoricals for strings
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> - [x] See https://github.com/scverse/anndata/issues/2252#issuecomment-3660515124 - [ ] Tests added - [ ] Release note added (or unnecessary)
diff --git a/src/anndata/_io/specs/methods.py b/src/anndata/_io/specs/methods.py index ff9e21eed..353861a27 100644 --- a/src/anndata/_io/specs/methods.py +++ b/src/anndata/_io/specs/methods.py @@ -1093,7 +1093,12 @@ def write_categorical( _writer.write_elem(g, "codes", v.codes, dataset_kwargs=dataset_kwargs) ...
2
1
0
[{"id": "G0", "claim": "Writing string categories should use public pandas APIs (e.g. to_numpy()) with as few full-array conversions as possible, instead of the private ._values attribute behind a redundant ternary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
scverse__anndata__2272
scverse/anndata
2,272
defect
4a62c2e3128b950e7d699506b91d8e572da20a96
102b211f72abe542362ec9c5ad034b9b89367825
fix: decode bytes in nullable-string-array index for read_lazy
# Fix `read_lazy` nullable-string-array index decoding - [x] Closes #2271 - [x] Tests added - [x] Release note unnecessary (bug not yet released) ## Summary Fixes `read_lazy()` returning `obs_names`/`var_names` as byte-string representations (`"b'cell_A'"`) instead of properly decoded strings (`"cell_A"`). ...
diff --git a/src/anndata/_io/specs/lazy_methods.py b/src/anndata/_io/specs/lazy_methods.py index b69149d14..b330fb13d 100644 --- a/src/anndata/_io/specs/lazy_methods.py +++ b/src/anndata/_io/specs/lazy_methods.py @@ -361,8 +361,12 @@ def read_nullable( Path(filename(elem)) if isinstance(elem, H5Group) else ele...
7
4
0
[{"id": "G0", "claim": "The new string-view type must be added to the generic type parameters of ZarrOrHDF5Wrapper/MaskedArray and to the isinstance(self._array, H5Array) check.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a pytest.param to te...
null
scverse__anndata__2395
scverse/anndata
2,395
defect
30f20c8588259827926df75b458d541e6b0bb434
a4e2ab4e10c0da5b03c2ba3200f3befcc78b9dc0
perf: fast path for unchunked minor axis `dask` sparse reindexing when `concat`ing
<!-- Please: 1. Fill in the following check boxes 2. Make sure checks pass (Ignore “Triage” ones) --> Someone tried annbatch shuffling-ing the whole cellxgene census which raised this bug where our outer-join, while correct, was effectively a densification operation for CSR matrices. Why? The previous iteration ba...
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index e90cfb204..66c4ada30 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -64,4 +64,4 @@ jobs: working-directory: ${{ env.ASV_DIR }} run: | asv machine --yes - asv ...
1
1
1
[{"id": "G0", "claim": "The new sparse fast path's type check could use `CSRBase` or `CSRArray | CSRMatrix`, and the fast path should be generalized to work on both CSR with axis 1 and CSC with axis 0 instead of only CSR on axis 1.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
scylladb__scylla-rust-driver__1020
scylladb/scylla-rust-driver
1,020
defect
c8db77b2148a2891741fcab27463fe50f79c3f0a
83cf7c16479747a7afc44dda533639f675be8d47
cassandra 5.0 vector type CREATE/INSERT support
makes progress towards: https://github.com/scylladb/scylla-rust-driver/issues/1014 The vector type is introduced by the currently in beta cassandra 5. See: https://cassandra.apache.org/doc/latest/cassandra/reference/vector-data-type.html Scylla does not support vector types and so the tests are setup to only compi...
diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index 4926ece5d6f..6c8a71874d1 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -31,7 +31,7 @@ jobs: run: cargo build --verbose --tests --features "full-serialization" - name: Run tests on cas...
10
7
2
[{"id": "G0", "claim": "The parse error message 'Expected integer but found non-numeric character' is misleading because '.' is a numeric character, so it should say non-integer.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The choice of u16 for t...
null
scylladb__scylla-rust-driver__1086
scylladb/scylla-rust-driver
1,086
defect
ea7c464bf1a3d10fadc1d67827dd17e1ee191b7d
e0607c8378158688f7334ca0a021cb226adc4fee
Fix panic in speculative execution
This PR fixes linked bug by simplifying the logic inside the function. The new logic always checks if the resolved task is the last one, and if so it returns, so it's not possible for the tasks to be exhausted without finishing the `select!`. This PR also adds regression test for the issue. I verified that the test...
diff --git a/scylla/src/transport/speculative_execution.rs b/scylla/src/transport/speculative_execution.rs index 65389b5eb14..ccf4feeaa7b 100644 --- a/scylla/src/transport/speculative_execution.rs +++ b/scylla/src/transport/speculative_execution.rs @@ -127,21 +127,17 @@ where } } ...
4
4
1
[{"id": "G0", "claim": "It may be possible to write a test reproducing the select! panic that the speculative-execution change fixes, since passing only completed futures to select! without a complete branch panics instead of deadlocking.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intr...
null
scylladb__scylla-rust-driver__1101
scylladb/scylla-rust-driver
1,101
defect
025342caf2cc5d56ab64ad52afd0ec1c3b813fcd
9e5eeaef79c78a9716d2c3881700a56dc799d8ca
Parametrize `Deserialize{Value,Row}` with two lifetimes: `'frame` and `'metadata` separately
Refs: #462 ## Tl;dr A second lifetime parameter is introduced to entities comprising the bottom part of the new deserialization framework: `'metadata`. ## Deserialization traits - recap `DeserializeValue` requires two types of data in order to perform deserialization: 1) a reference to the CQL frame (a `Fram...
diff --git a/scylla-cql/src/frame/response/result.rs b/scylla-cql/src/frame/response/result.rs index ab85cfa3cca..560cb269643 100644 --- a/scylla-cql/src/frame/response/result.rs +++ b/scylla-cql/src/frame/response/result.rs @@ -1013,7 +1013,7 @@ pub fn deser_cql_value( CqlValue::List(l) } ...
3
3
2
[{"id": "G0", "claim": "The rationale sentence claiming deserialized values are bound by the frame lifetime and not abstractly bound by metadata is wrong (values are bound by the metadata lifetime) and should be fixed.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
scylladb__scylla-rust-driver__1127
scylladb/scylla-rust-driver
1,127
defect
be148121a20448df1f40613c971e968d9c7eee92
5787e16ac83432fc684e33f3f6ec9e839f5eac3e
Fix concurrent DDL queries
Fixes: https://github.com/scylladb/scylla-rust-driver/issues/1126 This PR implements the third solution from the ones described in the issue. ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and...
diff --git a/scylla/src/utils/test_utils.rs b/scylla/src/utils/test_utils.rs index d745a313590..c4bfda06367 100644 --- a/scylla/src/utils/test_utils.rs +++ b/scylla/src/utils/test_utils.rs @@ -1,5 +1,12 @@ +use crate::load_balancing::{FallbackPlan, LoadBalancingPolicy, RoutingInfo}; +use crate::query::Query; +use crate...
1
1
0
[{"id": "G0", "claim": "SchemaQueriesLBP, which holds no data, should be declared as a unit struct instead of a braced empty struct.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
scylladb__scylla-rust-driver__1128
scylladb/scylla-rust-driver
1,128
defect
be148121a20448df1f40613c971e968d9c7eee92
3c0da906d9d6b5e7e65b7052aaf3178ecdcc5131
Implement timestamp generators
To achieve parity with cpp-driver we need to implement client-side timestamp generators. This pull request adds a TimestampGenerator trait and a MonotonicTimestampGenerator that implements it, together with an extension to SessionBuilder that provides an ability to set a TimestampGenerator in Session and use it to ...
diff --git a/scylla/src/transport/mod.rs b/scylla/src/transport/mod.rs index 55184aadc68..75b8266d8c0 100644 --- a/scylla/src/transport/mod.rs +++ b/scylla/src/transport/mod.rs @@ -18,6 +18,7 @@ pub mod retry_policy; pub mod session; pub mod session_builder; pub mod speculative_execution; +pub mod timestamp_generato...
16
12
0
[{"id": "G0", "claim": "The trait method `next` should be renamed to `next_timestamp`, to avoid colliding with a possible Iterator implementation and to be explicit about what is returned.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The warni...
null
scylladb__scylla-rust-driver__113
scylladb/scylla-rust-driver
113
defect
1a550e49f01e01a26f4bcf397f68ee4f89fb1d5b
12bf981972ee6789f97dd40f3af10fd826fb7132
Add support for User Defined Types (Issue #98, #105)
This PR implements support for using User Defined Types that can be used like this: ```rust // CREATE TYPE IF NOT EXISTS ks.my_type (int_val int, text_val text) // Define custom struct that matches User Defined Type created earlier // wrapping field in Option will gracefully handle null field values #[derive(Deb...
diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 9368397215b..d90a379f299 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -32,4 +32,8 @@ path = "compare-tokens.rs" [[example]] name = "select-paging" -path = "select-paging.rs" \ No newline at end of file +path = "select-paging.rs" + +[[exam...
2
2
1
[{"id": "G0", "claim": "Change the ValueTooBig error from an empty-brace struct to a unit struct so instantiations do not need curly braces.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Serializing values now involves many copies and allocations; the r...
null
scylladb__scylla-rust-driver__1236
scylladb/scylla-rust-driver
1,236
defect
a253772656919355bcb67808a3e0f815ba7811ae
8af46bffad80fb435f07ea726b149ba24d7f7d67
tests: port AUTH tests to ccm
This PR moves existing auth tests from `integration` to `ccm_integration`. The corresponding custom workflow in CI is now deleted. ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all re...
diff --git a/.github/workflows/authenticate_test.yml b/.github/workflows/authenticate_test.yml deleted file mode 100644 index 22eb7079f07..00000000000 --- a/.github/workflows/authenticate_test.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Authenticate - -on: - push: - branches: - - main - - 'branch-*' - pull_req...
2
1
0
[{"id": "G0", "claim": "The method that enables authentication should be renamed from `enable_authentication` to `enable_password_authentication` so the name says what it does (suggested via a GitHub suggestion block; alternatively, an enum-based `set_authenticator` API).", "category": "maintainability", "verdict": "su...
null
scylladb__scylla-rust-driver__1252
scylladb/scylla-rust-driver
1,252
defect
ff7bf49a64632cb1a7dcd37a4335eab7021cfb7d
37e2859dd29e2ced765769a4e5d384763fa973e1
Remove SerializedValues from public API of `scylla` crate.
Some APIs on ClusterState still accept SerializedValues instead of `impl SerializeRow` / `&dyn SerializeRow`. This is a leftover from the old serialization API, and should be changed. Why? Because there is no easy way for the user to create the SerializedValues. That means that if a user wants to calculate the token ...
diff --git a/scylla-cql/src/serialize/row.rs b/scylla-cql/src/serialize/row.rs index d5863709137..d4f266113c5 100644 --- a/scylla-cql/src/serialize/row.rs +++ b/scylla-cql/src/serialize/row.rs @@ -52,13 +52,6 @@ impl<'a> RowSerializationContext<'a> { pub fn columns(&self) -> &'a [ColumnSpec] { self.column...
6
5
3
[{"id": "G0", "claim": "The new ClusterState::compute_token unwraps the table lookup and will panic if there is no metadata for the given keyspace.table; it should return an error instead, with the error-type design (extend PartitionKeyError vs new type) settled in the thread.", "category": "correctness", "verdict": "s...
null
scylladb__scylla-rust-driver__1326
scylladb/scylla-rust-driver
1,326
defect
a3faa6f259821aa6982054a576fcfdf43a6ce12c
3898c010b64fc09734de8c649bb7669e8aecfc99
Enforce request coordinator
Fixes: https://github.com/scylladb/scylla-rust-driver/issues/1031 ## SingleTargetLoadBalancingPolicy This load balancing policy returns a single target in `pick`. The fallback always returns empty iterator. The node is picked based on the `NodeIdentifier` that user can provide when constructing the policy. ...
diff --git a/scylla/src/client/pager.rs b/scylla/src/client/pager.rs index dfc855b6fb8..dc3259f31d8 100644 --- a/scylla/src/client/pager.rs +++ b/scylla/src/client/pager.rs @@ -34,7 +34,7 @@ use crate::observability::driver_tracing::RequestSpan; use crate::observability::history::{self, HistoryListener}; #[cfg(featur...
10
8
1
[{"id": "G0", "claim": "Replace the special-cased `enforce_coordinator` field on statements with general `set_load_balancing_policy`/`unset_load_balancing_policy` methods taking `Arc<dyn LBP>`, so coordinator enforcing is not special-cased.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int...
null
scylladb__scylla-rust-driver__1378
scylladb/scylla-rust-driver
1,378
defect
af5fd9108b45942ec79d996d18dd529abac52405
0fbc8d8649a105ca5d14797cad5db558879aa3e8
Fix renaming in serialization
Until now "rust_name" updating in serialization only happened for `CqlValue`. It means that if someone tried, for example, to serialize `Secrecy<String>`, or `Option<String>`, against `Int` CQL type, the error message would just mention `String` type instead of `Secrecy<String>`, or `Option<String>`. This PR fixes t...
diff --git a/scylla-cql/src/serialize/value.rs b/scylla-cql/src/serialize/value.rs index 7ec963449ca..dc151395cfb 100644 --- a/scylla-cql/src/serialize/value.rs +++ b/scylla-cql/src/serialize/value.rs @@ -223,7 +223,7 @@ impl<V: SerializeValue + secrecy_08::Zeroize> SerializeValue for secrecy_08::Sec writer: C...
2
1
0
[{"id": "G0", "claim": "The added test helper should get a docstring explaining what it verifies, and its name is unclear and should be changed from speaking of a 'simple error' to something clearer such as verify_typeck_error_in_wrapper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
scylladb__scylla-rust-driver__1381
scylladb/scylla-rust-driver
1,381
defect
480c5d3bcdac0d19be1fc88165958315620e3089
7aaa74f6bc68c6107622f2f8ba9cb14d129ad6c0
Update dependencies
Maintenance PR that updates internal dependencies. As a bonus, I re-ordered and described dependencies in main Cargo.toml files. ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all rele...
diff --git a/scylla-cql/Cargo.toml b/scylla-cql/Cargo.toml index 77f8c3cd2a4..0f8c0b1356f 100644 --- a/scylla-cql/Cargo.toml +++ b/scylla-cql/Cargo.toml @@ -14,29 +14,52 @@ license = "MIT OR Apache-2.0" all-features = true [dependencies] +########################### +# Main, public dependencies +###################...
2
2
0
[{"id": "G0", "claim": "In the reorganized scylla-cql/Cargo.toml, the serde dependency is left without a comment saying what it is used for, unlike the other dependencies the PR annotated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lz4_fle...
null
scylladb__scylla-rust-driver__1403
scylladb/scylla-rust-driver
1,403
defect
8986057a16a728f341e283bdfd2aaf0b6e7dd984
516287d95a32c8e1002f6241a2e770aa19bfbebd
DeserializeRow: default_when_null attribute
Fixes: https://github.com/scylladb/scylla-rust-driver/issues/1399 ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.md for more details. --...
diff --git a/scylla-cql/src/deserialize/row_tests.rs b/scylla-cql/src/deserialize/row_tests.rs index 4bede04645f..6df11c5d887 100644 --- a/scylla-cql/src/deserialize/row_tests.rs +++ b/scylla-cql/src/deserialize/row_tests.rs @@ -101,14 +101,20 @@ fn test_struct_deserialization_loose_ordering() { b: Option<i32>...
5
4
2
[{"id": "G0", "claim": "The test's expected row uses `String::default().as_str()`, which creates a temporary `String` that is dropped and leaves the `&str` dangling, so it should be replaced with a string literal like `\"\"`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
scylladb__scylla-rust-driver__1428
scylladb/scylla-rust-driver
1,428
defect
3da897d6e81e785c9be145da47f31248c33a4f30
d3f4df9b373812ba40060f877a2e9f96a9d602e4
Fix clippy 1.89
As usual, clippy started to fail because of newly stabilized lints. This PR fixes that. ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.m...
diff --git a/scylla-cql/Cargo.toml b/scylla-cql/Cargo.toml index 8dde7c41a54..b05279ca078 100644 --- a/scylla-cql/Cargo.toml +++ b/scylla-cql/Cargo.toml @@ -22,7 +22,7 @@ all-features = true # used by macros. scylla-macros = { version = "=1.3.1", path = "../scylla-macros" } # AsyncRead trait used in read_response_fr...
3
2
0
[{"id": "G0", "claim": "cargo semver-checks failed to build rustdoc for the baseline revision of crate scylla because deserialize/README.md was missing, so the PR's API compatibility could not be fully checked.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim":...
null
scylladb__scylla-rust-driver__1445
scylladb/scylla-rust-driver
1,445
defect
dc580ec9b528e0554c799e532dec7b3fd145d3af
7315ced5dd5ad958315af7765d053ff4021a1d6f
Mutable metadata in PreparedStatement
This is a first of 2 PRs required to implement https://github.com/scylladb/scylla-rust-driver/issues/1374 This one makes it possible for Result Metadata in PreparedStatement to be mutable. The second one will utilize this new functionality to implement the protocol extension. Based on: https://github.com/scylladb/s...
diff --git a/scylla/src/client/caching_session.rs b/scylla/src/client/caching_session.rs index afa9d565775..a68b1ae4144 100644 --- a/scylla/src/client/caching_session.rs +++ b/scylla/src/client/caching_session.rs @@ -8,6 +8,7 @@ use crate::routing::partitioner::PartitionerName; use crate::statement::batch::{Batch, Bat...
5
1
0
[{"id": "G0", "claim": "The commit message of `caching_session: extract raw statement conversions` contains the typo `loose access`, which should read `lose access`.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer dislikes the name `ha...
null
scylladb__scylla-rust-driver__1453
scylladb/scylla-rust-driver
1,453
defect
dd05ce437d88d4d6046157e15eb6beccc3607b63
e01ed752e92ef4880f9424061dcce727d188d97e
deserialize/value: Accept shorter encoded tuples
As decided in #1452, this PR makes deserialization framework interpret tuple fields that are missing in the encoded data from DB as nulls. It also includes a regression test written by @Lorak-mmk. Partly fixes: #1452 ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put ...
diff --git a/scylla-cql/src/deserialize/value.rs b/scylla-cql/src/deserialize/value.rs index 3d980f6c270..7068ae72cfa 100644 --- a/scylla-cql/src/deserialize/value.rs +++ b/scylla-cql/src/deserialize/value.rs @@ -1340,17 +1340,39 @@ macro_rules! impl_tuple { let mut v = ensure_not_null_frame_slice::<Se...
2
1
1
[{"id": "G0", "claim": "Nested tuples with missing values (e.g. tuple<tuple<int, string, int>, int, int> containing only ((1, \"hello world\"), 2)) should be verified to deserialize correctly under the new shorter-tuple handling, and this should be covered by a test rather than assumed, ideally using a helper that inse...
null
scylladb__scylla-rust-driver__1457
scylladb/scylla-rust-driver
1,457
defect
dd05ce437d88d4d6046157e15eb6beccc3607b63
8f42aa5e5c98aef1550124b87f0a2c31186f1286
Request timeout improvements
While working on #1418, I did some minor improvements. I decided it makes sense to merge them independently of the pager timeouts functionality. One thing worth noting is that I reworked the request timeout test to use the proxy, so now it can finally be enabled (so far it was `#[ignore]`'d). ## Pre-review checkl...
diff --git a/scylla/src/client/execution_profile.rs b/scylla/src/client/execution_profile.rs index 9b428c02278..68457b86d99 100644 --- a/scylla/src/client/execution_profile.rs +++ b/scylla/src/client/execution_profile.rs @@ -240,7 +240,8 @@ pub struct ExecutionProfileBuilder { } impl ExecutionProfileBuilder { - ...
4
3
0
[{"id": "G0", "claim": "The line calling timeouting_session.batch(...).await.expect(...) exceeds 120 characters and should be broken into multiple lines for better readability.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test query 'SELEC...
null
scylladb__scylla-rust-driver__1473
scylladb/scylla-rust-driver
1,473
defect
75e242d0859526704ff9d81019c307691049160e
da491560add20c8245e0f90c2c245f6c98c3f5e6
Dont fail schema agreement on first error
Currently methods that await schema agreement propagate any error returned from `check_schema_agreement`(`_with_required_node`). Often those errors will be transient - like a broken connection. It makes sense to retry, until schema await timeout runs out. This PR implements that, and a test to validate new behavior. ...
diff --git a/scylla/src/client/session.rs b/scylla/src/client/session.rs index a9e18a9444d..952c662ebc7 100644 --- a/scylla/src/client/session.rs +++ b/scylla/src/client/session.rs @@ -2200,42 +2200,13 @@ impl Session { last_error.map(Result::Err) } - /// Awaits schema agreement among all reachable n...
9
6
0
[{"id": "G0", "claim": "Comment typo: \"successfull\" should be \"successful\" in the Some(Ok(_)) state comment.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Comment typo: \"predicatable\" should be \"predictable\" in the test's pool-size commen...
null
scylladb__scylla-rust-driver__1479
scylladb/scylla-rust-driver
1,479
defect
e4ce294c18e7e1011a3663c564976f7103e2e348
0c8ed9398652a89f1023ca920b0df6a69cceb640
Schema agreement error handling
https://github.com/scylladb/scylla-rust-driver/pull/1473 made schema agreement wait ignore all errors until timeout. This is not the desired behavior: we don't want to ignore the errors for which the chance of the error going away after retrying with delay is slim to none. This is what this PR does: now the errors ...
diff --git a/scylla/src/client/session.rs b/scylla/src/client/session.rs index a533285c101..2378588b3e4 100644 --- a/scylla/src/client/session.rs +++ b/scylla/src/client/session.rs @@ -46,18 +46,18 @@ use futures::future::join_all; use futures::future::try_join_all; use itertools::Itertools; use scylla_cql::frame::r...
6
5
1
[{"id": "G0", "claim": "The comment reads \"Agreement successfull\" where it should spell \"successful\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment reads \"Timeout occured\" where it should spell \"occurred\".", "category": "docum...
null
scylladb__scylla-rust-driver__1505
scylladb/scylla-rust-driver
1,505
defect
64d7011d32bdc6ef0336b9958ce0d920df00c85c
369b0695a90c2dbb86e1c5ee5628320abecf77d7
Introduce `scylla_unstable` cfg flag to gate all unstable features
The flag `scylla_unstable` is modeled on `tokio_unstable`. It provides a way to double-gate unstable features: now, to enable unstable functionality gated behind some feature `"unstable-feat"`, users need both to add `--cfg tokio_unstable` to `RUSTFLAGS` **and** enable feature `"unstable-feat"`. Two existing cfg fla...
diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index c16368d49c7..c7ded68d54b 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -12,6 +12,7 @@ on: env: CARGO_TERM_COLOR: always + RUSTFLAGS: --cfg scylla_unstable RUST_BACKTRACE: full jobs: ...
9
7
5
[{"id": "G0", "claim": "In the Makefile the `.PHONY` declaration names `check-without-unstable-and-features` while the target is named `check-without-unstable`, and the two should match so the target is correctly marked phony.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
scylladb__scylla-rust-driver__1529
scylladb/scylla-rust-driver
1,529
defect
29d791d0446c52fa780fa1db0ed42a2381cb7e8b
c9a20bb66b7a2d4c5797469538845a2e055a823f
Replace &String with &str where possible
Minor code style fix. &str is more general, and more idiomatic for Rust. There were 2 places that I didn't change: - CqlValue::as_ascii and CqlValue::as_text return &String, and we can't change them because of backwards compat. - Benchmark code calls SerializedValue::add_value, which takes &T. String needs to be con...
diff --git a/scylla/src/cluster/metadata.rs b/scylla/src/cluster/metadata.rs index 3f9d8758893..e5fa718d79b 100644 --- a/scylla/src/cluster/metadata.rs +++ b/scylla/src/cluster/metadata.rs @@ -281,7 +281,7 @@ enum PreColumnType { impl PreColumnType { pub(crate) fn into_cql_type( self, - keyspace_n...
1
1
0
[{"id": "G0", "claim": "Use to_owned() instead of ToString::to_string() when turning the &str keyspace_name into a String, since to_owned() carries less mental overhead for the reviewer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
scylladb__scylla-rust-driver__1530
scylladb/scylla-rust-driver
1,530
defect
a0411cc68769fe35713bb40618de20ffebc112c7
df4cb4dc309cc301b5902f57d37003fcc252a586
Prepared internal requests
This PR makes all internal requests issued by driver (excluding `USE keyspace`) prepared. Note: CC = Control Connection. ## Control Connection For schema / topology requests (which are issued using CC) this is done by making `ControlConnection` struct have internal cache (similar to `CachingSession`). I did ...
diff --git a/scylla/src/client/pager.rs b/scylla/src/client/pager.rs index fa0b92d3911..90b6c6eb210 100644 --- a/scylla/src/client/pager.rs +++ b/scylla/src/client/pager.rs @@ -1078,42 +1078,6 @@ If you are using this API, you are probably doing something wrong." Self::new_from_worker_future(worker_task, recei...
5
3
1
[{"id": "G0", "claim": "The configured `statement` (with Consistency::One set) is discarded and line 1159 prepares the raw query string instead, so the consistency setting is never applied to the prepared schema-version statement; it should call `self.prepare(statement).await`.", "category": "correctness", "verdict": "...
null
scylladb__scylla-rust-driver__1567
scylladb/scylla-rust-driver
1,567
defect
fd543e4e541dfbcac6812395c7d3ac527483064c
7cf67e677756f265c7b25af3b070b51b07ece453
custom_type_parser: fix parsing frozen types
Fixes: #1566 Frozen types were not handled correctly in the custom type parser. When a type was wrapped in `FrozenType(...)`, the parser did not set the `frozen` flag on the inner type. Even worse: `FrozenType` was not recognized at all, leading to parse errors. This commit introduces a `frozen_context` field in ...
diff --git a/scylla-cql/src/deserialize/value_tests.rs b/scylla-cql/src/deserialize/value_tests.rs index f8381cd410f..651c3deec30 100644 --- a/scylla-cql/src/deserialize/value_tests.rs +++ b/scylla-cql/src/deserialize/value_tests.rs @@ -104,6 +104,59 @@ fn test_custom_cassandra_type_parser() { ), ...
3
2
0
[{"id": "G0", "claim": "The spelling mistake \"Frozeness\" in the added comment should be fixed to \"Frozenness\" to keep the documentation clear and professional.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The chained .map(...).map(...) const...
null
scylladb__scylla-rust-driver__1576
scylladb/scylla-rust-driver
1,576
defect
e5e96fbde24702fef3f6638df16d29c382b8b51f
4faba79f52087b8230c33a7fb147bc261946fc90
appease clippy
Fixing clippy linting warnings across 5 files (removing redundant casts, simplifying iterator chains, refactoring division logic, and using sort_by_key instead of sort_by). ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can ...
diff --git a/scylla-cql/src/serialize/value_tests.rs b/scylla-cql/src/serialize/value_tests.rs index adb243748ac..7cf43e65817 100644 --- a/scylla-cql/src/serialize/value_tests.rs +++ b/scylla-cql/src/serialize/value_tests.rs @@ -1383,7 +1383,7 @@ fn test_udt_serialization_with_field_rename_and_enforce_order() { as...
3
2
0
[{"id": "G0", "claim": "The PR should keep `#[expect(unused)]` (or use `#[cfg_attr(test, expect(unused))]`) on TestUdtWithSkippedNameChecks instead of replacing it with `#[allow(dead_code)]`, because the project purposely avoids `allow` as it tends to get stuck in the codebase.", "category": "maintainability", "verdict...
null
scylladb__scylla-rust-driver__1581
scylladb/scylla-rust-driver
1,581
defect
e36b16512ce4499eed735b53d7a1584fef814c75
cc9c07de137f4ad2cce2aef5479ad64dae94d175
Fix handling of empty result metadata
In https://github.com/scylladb/scylla-rust-driver/issues/1575 it was found that driver can't deserialize results of prepared `LIST ROLES OF <role>`. This issue is a result of two problems: - Bug in Rust Driver. It doesn't handle the case where result metadata is not returned in PREPARED. This is what this PR fixes. I...
diff --git a/scylla/src/network/connection.rs b/scylla/src/network/connection.rs index 8d139527e5e..57f0f897ef1 100644 --- a/scylla/src/network/connection.rs +++ b/scylla/src/network/connection.rs @@ -33,6 +33,7 @@ use futures::{FutureExt, future::RemoteHandle}; use scylla_cql::frame::frame_errors::CqlResponseParseErr...
11
8
0
[{"id": "G0", "claim": "Fix the typo in the reprepare comment: \"provied\" should be \"provided\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the execute-response comment: \"reald\" should be \"real\".", "category": "documentat...
null
scylladb__scylla-rust-driver__1591
scylladb/scylla-rust-driver
1,591
defect
e4b5b87dc95f0491214ebdf6f338bc8138c3172d
ce62d2a71a1b521d0d13f53700e93e7bd1883755
Move book tests from `mdbook test` to doctests
`mdbook test` is generally quite fragile. We often have issues with it, often because of multiple candidate dependency files. When reading related mdbook and other issues, I saw there are 2 solutions employed most often: - Having each chapter / code block as separate crate, with Cargo.toml, and including the source fr...
diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 40aabafdb47..414d38c0730 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -1,4 +1,7 @@ -# This workflow builds the book with documentation and runs book tests +# This workflow builds the book with documentation and che...
7
3
2
[{"id": "G0", "claim": "The Book workflow now runs `make check-book-tests` (which invokes cargo) without any Rust toolchain installed, so the job is likely to fail on GitHub-hosted runners; re-add a Rust toolchain setup step before the make target.", "category": "correctness", "verdict": "supported", "priority": "P0", ...
null
scylladb__scylla-rust-driver__174
scylladb/scylla-rust-driver
174
defect
075ad419649984b7d901ae04b8bfa56783340095
cfec3b2d8bb2ea4ef2f1673ee19744a56bb6c38d
Expose a type that represents unset value
Fixes #159 by adding `struct Unset` and `enum MaybeUnset<V: Value>`. ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.md for more details. ...
diff --git a/scylla/src/frame/value.rs b/scylla/src/frame/value.rs index a40e54ad2f5..933ec39a71d 100644 --- a/scylla/src/frame/value.rs +++ b/scylla/src/frame/value.rs @@ -14,6 +14,15 @@ pub trait Value { #[error("Value too big to be sent in a request - max 2GiB allowed")] pub struct ValueTooBig; +/// Represents a...
3
3
0
[{"id": "G0", "claim": "Call Unset.serialize(buf) instead of Unset {}.serialize(buf) because it looks nicer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the trailing-whitespace cleanup of the impl_batch_values_for_tuple! invocations into...
null
scylladb__scylla-rust-driver__175
scylladb/scylla-rust-driver
175
defect
d6e5b734dd05d4505a3df745168c15c36e2a0548
1c195d18561d8952840685d1678e5360763ca481
CQL types
## Description PR adds CQL types. Add time and dates, floating point numbers, booleans and blobs, serializers and deserializers. Add test (and example of usage at the same time). I moved the commits to the new branch and created new PR, the old one is here: PR #148 (decided to move because of the issues with m...
diff --git a/scylla/src/frame/cql_types_test.rs b/scylla/src/frame/cql_types_test.rs new file mode 100644 index 00000000000..c510559e1b1 --- /dev/null +++ b/scylla/src/frame/cql_types_test.rs @@ -0,0 +1,99 @@ +use crate::transport::session::IntoTypedRows; +use crate::transport::session::Session; +use crate::SessionBuil...
2
1
1
[{"id": "G0", "claim": "The ColumnType list does not cover all types from the CQL spec; Counter, Decimal, Uuid, Varchar, Varint, Timeuuid, Time, Smallint and Tinyint were not implemented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull reque...
null
scylladb__scylla-rust-driver__204
scylladb/scylla-rust-driver
204
defect
2a7295b466211972d1ebea4dbfff7af2c9935910
cab0ba0605bc93a39a5c4eea7caa56bda6d767ff
Fix sending/receiving Inet and Blob in queries
## Description There were missing implementations for `IpAddr` and `Vec<u8>` which didn't allow to send/receive them in queries properly. Added: * `impl Value for IpAddr` * `impl FromCQLVal for Vec<u8>` * Tests for `Inet` and `Blob` ## Fixed issues: Fixes: #201 ## Pre-review checklist <!-- Make su...
diff --git a/scylla/src/frame/cql_types_test.rs b/scylla/src/frame/cql_types_test.rs index 7e8f301f365..25442683421 100644 --- a/scylla/src/frame/cql_types_test.rs +++ b/scylla/src/frame/cql_types_test.rs @@ -12,6 +12,7 @@ use num_bigint::BigInt; use std::cmp::PartialEq; use std::env; use std::fmt::Debug; +use std::...
2
2
0
[{"id": "G0", "claim": "Fetching a single row/cell from the driver requires too much ceremony, so the driver's ergonomics need work (explicitly not to be addressed in this PR).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The test SELECTs should be e...
null
scylladb__scylla-rust-driver__223
scylladb/scylla-rust-driver
223
defect
6706013f8296c36a488049ef2ffa3dab469bfbab
68d9c4a301750990abfd51fab5dd5a76e9498818
Schema agreement
## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.md for more details. --> - [x] I have split my patch into logically separate commits. - ...
diff --git a/examples/Cargo.toml b/examples/Cargo.toml index accb9a530ff..ed1f2bc82e1 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -60,3 +60,7 @@ path = "cql-time-types.rs" name = "tracing" path = "tracing.rs" +[[example]] +name = "schema_agreement" +path = "schema_agreement.rs" + diff --git a/exam...
10
10
4
[{"id": "G0", "claim": "The schema agreement code should also be tested manually on a multi-node cluster, not only on a single node.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The example should use Duration::from_secs(1) instead of Duration::new(1,...
null
scylladb__scylla-rust-driver__226
scylladb/scylla-rust-driver
226
defect
bb29777c4498affca355774fd7a81ef0ea393173
7e25d1fab7909d02c597aacfe28d68504663c746
Add resuming paging
This draft adds a way of resuming queries from previously received paging state. The paging state can be extracted from query results and passed to new queries to let them resume execution from where the previous query left off. It's an alternative way of querying to the existing `query_iter` mechanism. This series ...
diff --git a/examples/select-paging.rs b/examples/select-paging.rs index e7e007103af..8aa20d84548 100644 --- a/examples/select-paging.rs +++ b/examples/select-paging.rs @@ -1,6 +1,6 @@ use anyhow::Result; use futures::stream::StreamExt; -use scylla::{Session, SessionBuilder}; +use scylla::{query::Query, Session, Sess...
5
2
1
[{"id": "G0", "claim": "If the paging state can be smaller than the Bytes struct (4 usizes), consider switching to a smaller shared pointer type such as Arc.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The connection's paging-state-taking functions...
null
scylladb__scylla-rust-driver__25
scylladb/scylla-rust-driver
25
defect
b1b81e6dd38c9b1805de89805362c787644a4afb
de54b220ea3356556d09a3f5e9479b29fa503baf
Add response parsing
Adds initial code for response parsing. Partial parsing of some basic response frames is implemented (ERROR, READY, RESPONSE). Methods of `Connection` now wait for the response, parse and return it. Fixes #21
diff --git a/scylla/src/frame/mod.rs b/scylla/src/frame/mod.rs index 26e06693d45..aae80ca6756 100644 --- a/scylla/src/frame/mod.rs +++ b/scylla/src/frame/mod.rs @@ -1,17 +1,14 @@ pub mod request; +pub mod response; use anyhow::Result; -use bytes::{BufMut, Bytes}; -use num_enum::TryFromPrimitive; +use bytes::{Buf, B...
5
2
0
[{"id": "G0", "claim": "The frame header parsing inside read_response should be extracted into a separate function so that header parsing can happen in a different step than body parsing for future multiplexing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
scylladb__scylla-rust-driver__284
scylladb/scylla-rust-driver
284
defect
1380f34013e4e0e1cd97f2797dfb6e65a9150fab
af2362e9f027a11cbe011773f529d1f02a6e2d14
Stop parsing UDT fields when buffer is empty.
When you create an User Defined Type, then insert a frozen udt into a table, then add a field to this UDT (on both Scylla schema and Rust code) the driver will fail to parse the UDT with the error: "Invalid message: Error parsing message: failed to fill whole buffer". This is because the driver tries to read the new f...
diff --git a/scylla/src/frame/response/result.rs b/scylla/src/frame/response/result.rs index a78ccdc4bc8..d0b50cf6ec2 100644 --- a/scylla/src/frame/response/result.rs +++ b/scylla/src/frame/response/result.rs @@ -706,6 +706,13 @@ fn deser_cql_value(typ: &ColumnType, buf: &mut &[u8]) -> StdResult<CqlValue, Par ...
3
3
1
[{"id": "G0", "claim": "Remove the trailing space at the end of the added comment line in result.rs.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add the missing semicolon at the end of the `break` line.", "category": "style", "verdict": "supported", "p...
null
scylladb__scylla-rust-driver__341
scylladb/scylla-rust-driver
341
defect
75345fcf7dc6de601f8dfcfa2adb1bbd425b591a
aa73e13ce896ebd134ee15d0d6e557fdcacc09ea
statement: preserve query configuration during prepare()
When preparing a statement based on a Query instance, we should preserve the whole configuration. It's especially important for CachingSession users, because prepare() happens implicitly in this case, so there's no other way to customize the configuration for a particular query. Fixes #340 ## Pre-review check...
diff --git a/scylla/src/statement/prepared_statement.rs b/scylla/src/statement/prepared_statement.rs index a29d9b56c24..f175935d7a6 100644 --- a/scylla/src/statement/prepared_statement.rs +++ b/scylla/src/statement/prepared_statement.rs @@ -202,6 +202,11 @@ impl PreparedStatement { pub fn get_timestamp(&self) -> O...
3
3
2
[{"id": "G0", "claim": "The new inherit_config method should be pub(crate) instead of pub, since StatementConfig is not meant to be part of the public interface.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of creating a PreparedStatement with ...
null
scylladb__scylla-rust-driver__348
scylladb/scylla-rust-driver
348
defect
d809eb16ca0028c554baec692f659a0a0da66525
d8be9f486d1eb759a407fc3e1a36803507261e3c
Add convenience functions to QueryResult
### Description `QueryResult` now has helper functions for common use cases when receieving rows: ```rust impl QueryResult { /// Returns the number of received rows. /// Fails when the query isn't of a type that could return rows, same as [`rows()`](QueryResult::rows). pub fn rows_num(&self) ->...
diff --git a/docs/source/queries/result.md b/docs/source/queries/result.md index 7393246cd32..6350eab9ad3 100644 --- a/docs/source/queries/result.md +++ b/docs/source/queries/result.md @@ -51,6 +51,43 @@ if let Some(rows) = session.query("SELECT a, b from ks.tab", &[]).await?.rows { # } ``` +## Parsing using conven...
1
1
1
[{"id": "G0", "claim": "The PR's move of QueryResult removes the crate::transport::connection::QueryResult reexport, which is a breaking change for existing code, so QueryResult should also be reexported in crate::transport::connection to keep backward compatibility intact.", "category": "correctness", "verdict": "supp...
null
scylladb__scylla-rust-driver__363
scylladb/scylla-rust-driver
363
defect
f75010581ee8988bc6844cc3be1610d449800dfd
a08989aec3d8a98738a7669ac2cf948731cbee44
Add support for Duration type
Fixes: #320 This works great with Scylla but for some reason it fails with Cassandra (at least with 4.0.1). The column type code that Cassandra is sending for Duration is 0 instead of 0x15 and it is followed with type's name: "org.apache.cassandra.db.marshal.DurationType". How should we deal with it? Apart from ...
diff --git a/scylla/src/frame/response/result.rs b/scylla/src/frame/response/result.rs index 0f69b57f039..7c29b34396a 100644 --- a/scylla/src/frame/response/result.rs +++ b/scylla/src/frame/response/result.rs @@ -1,12 +1,12 @@ use crate::cql_to_rust::{FromRow, FromRowError}; use crate::frame::response::event::SchemaC...
12
12
4
[{"id": "G0", "claim": "The vint/zig-zag helper functions belong in the scylla/src/frame/types.rs module rather than value.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "vint_decode must handle incorrectly encoded data gracefully - returning Result<i...
null
scylladb__scylla-rust-driver__377
scylladb/scylla-rust-driver
377
defect
d4ea364a772f3c052dd5bc3daab1abec7c59606e
5a53e0509aefdfd702584efe87927053a69041cd
Restore clippy tests
This miniseries restores clippy checks for our tests. Tests were excluded from clippy checks a while ago due to ridiculous warnings, but these seem to be gone now with a new clippy version. Hence, let's restore the additional checks. - [x] I have split my patch into logically separate commits. - [x] All commit m...
diff --git a/scylla/src/transport/caching_session.rs b/scylla/src/transport/caching_session.rs index 5b82b45d95e..037952f55ab 100644 --- a/scylla/src/transport/caching_session.rs +++ b/scylla/src/transport/caching_session.rs @@ -250,7 +250,7 @@ mod tests { let mut rows = 0; - while let Some(_) = ite...
1
1
0
[{"id": "G0", "claim": "The test's iteration loop ignores the inner Result returned by iter.next(), so errors during iteration go unchecked; the reviewer suggests collecting with try_collect instead.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
scylladb__scylla-rust-driver__40
scylladb/scylla-rust-driver
40
defect
b0c487ce7b7c5136a82e69f7ae2cad20bee0f520
26ec0de6cfed74f32c6a48d3ebd53f46c7e57300
add executing prepared statements
It works! TODO: add repreparing statements on eviction errors. Fixes #9
diff --git a/scylla/src/frame/mod.rs b/scylla/src/frame/mod.rs index a0647609a70..91b9c36a056 100644 --- a/scylla/src/frame/mod.rs +++ b/scylla/src/frame/mod.rs @@ -1,6 +1,7 @@ pub mod request; pub mod response; pub mod types; +pub mod value; use anyhow::Result; use bytes::{Buf, BufMut, Bytes}; diff --git a/scyl...
5
5
2
[{"id": "G0", "claim": "The exported values! macro is not hygienic and should refer to the crate with $crate and use absolute paths (::std::vec::Vec, ::std::convert::Into::into) so it works when used by downstream users.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
scylladb__scylla-rust-driver__481
scylladb/scylla-rust-driver
481
defect
014c83a9d55d3beb9ac16a01ddec12cecaabe48c
509327f4163fb1be3c952293ce7a0ce0105b52dd
Add batch support to CachingSession, Add Session::prepare_batch
This PR adds a `batch` method on `CachingSession` which allows it to execute batches. The batch is taken by reference to stay consistent with `Session` and to make it possible not to copy batches that are already prepared. Apart from that I also added a `prepare_batch` method to both `Session` and `CachingSession`....
diff --git a/docs/source/queries/batch.md b/docs/source/queries/batch.md index 5f0a3de1d24..09e930e9148 100644 --- a/docs/source/queries/batch.md +++ b/docs/source/queries/batch.md @@ -40,6 +40,34 @@ session.batch(&batch, batch_values).await?; # } ``` +### Preparing a batch +Instead of preparing each query indvidua...
2
1
0
[{"id": "G0", "claim": "The reviewer asks whether a closure is any better or worse than a simple local `fn` for assert_batch_prepared, suggesting a local `fn` may be preferable.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new documentation misspel...
null
scylladb__scylla-rust-driver__484
scylladb/scylla-rust-driver
484
defect
014c83a9d55d3beb9ac16a01ddec12cecaabe48c
5dea7da0212db3a25e972af810cc0b00b1cb670b
Add ClusterData::get_endpoints
Fix #482 Actually, there are two steps for endpoints retrieving: - compute the token for a given partition key (`compute_token`) - compute the replicas for a given token (`get_token_endpoints`) `get_endpoints` is just a composition of both. I've put the functions into `ClusterData` but it is a debatable cho...
diff --git a/scylla/src/statement/prepared_statement.rs b/scylla/src/statement/prepared_statement.rs index 1fbb239b4b4..921c9ada9e3 100644 --- a/scylla/src/statement/prepared_statement.rs +++ b/scylla/src/statement/prepared_statement.rs @@ -235,12 +235,9 @@ impl PreparedStatement { /// Sets the name of the parti...
4
3
1
[{"id": "G0", "claim": "PartitionerName::from_str should keep the Option return but add an explicit branch detecting names ending in \"Murmur3Partitioner\" and return PartitionerName::Murmur3 for them, instead of relying on call sites' unwrap_or_default so that None really signals an undetected partitioner.", "category...
null
scylladb__scylla-rust-driver__5
scylladb/scylla-rust-driver
5
defect
948d27c90074193e37b7ee7e7f6216082d6bc667
a120ce490fb3f16e58a3a491cdc68b05efb04d74
[rfc] api: initial commit
This commit adds an absolute minimal implementation of a driver, capable only of handshaking with Scylla and sending queries, not even waiting for responses. On top of it, we can start discussing how the final api is going to look like. Comments welcome! This commit comes with a test which requires a running local...
diff --git a/scylla/Cargo.toml b/scylla/Cargo.toml index c5053e87cec..a8a37988c14 100644 --- a/scylla/Cargo.toml +++ b/scylla/Cargo.toml @@ -7,3 +7,5 @@ repository = "https://github.com/psarna/scylla-rust-driver" readme = "../README.md" keywords = ["database", "scylla", "cql"] categories = ["database"] +[dependencie...
2
2
1
[{"id": "G0", "claim": "The PR's hand-rolled frame/request serialization should use the helper functions added by penberg's PR #4 instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The transport test requires a running local Scylla instance...
null
scylladb__scylla-rust-driver__50
scylladb/scylla-rust-driver
50
defect
5ea4fbfc8166f4c742eb2e9f147f09f8a4a02bdd
edff8541d4ab8756d1fbe080747fc7f7ebf27d3f
prepared: add computing the partition key
In order to route the statement in a token-aware way, the partition key needs to first be extracted from the prepared statement and its bound values. The computations were verified semi-manually by comparing the output of Scylla's SELECT token(a,b,c) FROM ks.t, and 64 least significant bits of murmur3 output.
diff --git a/scylla/src/frame/response/result.rs b/scylla/src/frame/response/result.rs index 4ef3e7804ea..b95529cecb5 100644 --- a/scylla/src/frame/response/result.rs +++ b/scylla/src/frame/response/result.rs @@ -13,8 +13,8 @@ pub struct SetKeyspace { #[derive(Debug)] pub struct Prepared { pub id: Bytes, - pr...
7
4
0
[{"id": "G0", "claim": "Copying PreparedMetadata by value into every PreparedStatement may turn out to be a performance problem, in which case some indirection (a shared pointer) could be used instead.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Si...
null
scylladb__scylla-rust-driver__507
scylladb/scylla-rust-driver
507
defect
5a9ac433574511bc15f06bb998a7f517b7c0aecb
5dc158c0b801b8a39510dbfdaeeaa1daae10cd0b
Pull materialized view information when fetching schema
In order to keep information about materialized views too, system_schema.views system table is queried, instead of fetching the info only from system_schema.tables. Fixes #506 ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. ...
diff --git a/scylla/src/transport/session_test.rs b/scylla/src/transport/session_test.rs index d51237e20d7..c0739815c5d 100644 --- a/scylla/src/transport/session_test.rs +++ b/scylla/src/transport/session_test.rs @@ -1978,3 +1978,47 @@ async fn test_unprepared_reprepare_in_caching_session_execute() { all_rows.sort...
3
2
2
[{"id": "G0", "claim": "The new query against system_schema.views may return an error when running with Cassandra, which has materialized views disabled, and this case could be added to CI.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new schema...
null
scylladb__scylla-rust-driver__508
scylladb/scylla-rust-driver
508
defect
db8d52893bdef56977872a09f51fda2fa423168f
26cbab3482542a246c3cec9d4afe20f9be6b8cd5
Pick connections based on batch first statement's shard
Fixes: #448 Helps #468 To achieve this, it was useful to rework the BatchValues trait. With this rework, it's also possible to pretty easily provide cloneable `Iterator`s over `ValueList` as `BatchValues` (through `BatchValuesFromIterator`) - so #499 may get closed if this gets merged (or this PR will require upda...
diff --git a/scylla-cql/src/frame/request/batch.rs b/scylla-cql/src/frame/request/batch.rs index cee7c66ef59..6be8258e345 100644 --- a/scylla-cql/src/frame/request/batch.rs +++ b/scylla-cql/src/frame/request/batch.rs @@ -1,4 +1,4 @@ -use crate::frame::frame_errors::ParseError; +use crate::frame::{frame_errors::ParseErr...
10
8
3
[{"id": "G0", "claim": "Before merging, the batch-values-from-iterator implementation should use a separate type that is just a newtype wrapper, instead of one type serving as both the BatchValues and its iterator.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
scylladb__scylla-rust-driver__545
scylladb/scylla-rust-driver
545
defect
cb1a943816d12428ddf3a361d974ce039804a4e7
f5ec6ca91b9c1f080db8899ca822ae56d847552d
Session: refresh metadata on schema change
Fixes: #544 Added refreshing schema metadata after reaching schema agreement after a schema-changing query. ## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes....
diff --git a/scylla/src/transport/cluster.rs b/scylla/src/transport/cluster.rs index 205af1cf539..1d8ae403492 100644 --- a/scylla/src/transport/cluster.rs +++ b/scylla/src/transport/cluster.rs @@ -386,7 +386,13 @@ impl ClusterWorker { } continue; ...
1
1
1
[{"id": "G0", "claim": "Refreshing metadata via schema-change events does not fix issue #544, because the events are not synchronized with the end of the schema-altering query, so there is no guarantee that metadata returned by session.get_data() after the query finishes reflects the changes.", "category": "correctness...
null
scylladb__scylla-rust-driver__572
scylladb/scylla-rust-driver
572
defect
acf1dd949dd9a7ada240f08e4c29abf0b5a8d38a
88964801a83bda73daff82ec2da47b042f6401c7
Add support for custom authentication
Added AuthenticatorProvider and AuthenticatorSession traits. AuthenticatorProvider serves as a factory to create a new AuthenticatorSession instance for each session. AuthenticatorSession trait has 3 methods to be implemented by a user: * initial_response: to initiate a request to begin an authentication exchange....
diff --git a/.github/workflows/authenticate_test.yml b/.github/workflows/authenticate_test.yml index 5f2b271d677..cb93f3a0b65 100644 --- a/.github/workflows/authenticate_test.yml +++ b/.github/workflows/authenticate_test.yml @@ -24,4 +24,4 @@ jobs: steps: - uses: actions/checkout@v2 - name: Run tests - ...
13
12
7
[{"id": "G0", "claim": "The new AuthenticatorSession/AuthenticatorProvider traits and their items need docstrings, with method descriptions placed beside the methods and the same treatment applied to the other public types introduced.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in...
null
scylladb__scylla-rust-driver__578
scylladb/scylla-rust-driver
578
defect
88cb2a261e13dbb93759e1fc5825474256513ce5
1a0583967f18b09481ed8e611d6ac487de83845b
LWT routing optimisation
This enables optimisation of LWT queries routing. If the cluster supports the LWT mark protocol extension, then it will be negotiated and henceforth prepared statements which contain an LWT will be routed to the replicas only. Fixes: #100 ## Pre-review checklist <!-- Make sure you took care of the issues on ...
diff --git a/scylla-cql/src/frame/protocol_features.rs b/scylla-cql/src/frame/protocol_features.rs index b084462f6da..e3993ff222a 100644 --- a/scylla-cql/src/frame/protocol_features.rs +++ b/scylla-cql/src/frame/protocol_features.rs @@ -1,11 +1,13 @@ use std::collections::HashMap; const RATE_LIMIT_ERROR_EXTENSION: ...
3
3
1
[{"id": "G0", "claim": "The new public getter `is_lwt` should be renamed and documented as a ScyllaDB-only extension, since its generic name suggests to users that it might work with Cassandra too, and dead code should not be kept in the repo.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "...
null
scylladb__scylla-rust-driver__590
scylladb/scylla-rust-driver
590
defect
bfab77766bd0c6b9e16b5adef6954f678a11bae6
c17fce449377dcbcdcf53c4d82b73e52857070a7
Implement Value for Vec<&dyn Value> and Vec<Box<dyn Value>>
## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.md for more details. --> - [x] I have split my patch into logically separate commits. - ...
diff --git a/scylla-cql/src/frame/value.rs b/scylla-cql/src/frame/value.rs index 2a85c4507a1..efbcf5843d5 100644 --- a/scylla-cql/src/frame/value.rs +++ b/scylla-cql/src/frame/value.rs @@ -159,6 +159,26 @@ impl SerializedValues { Ok(()) } + /// Serializes value and appends it to the list + pub fn ...
1
1
1
[{"id": "G0", "claim": "Support for Vec<&dyn Value> and Vec<Box<dyn Value>> should be added in a more generic way, by dropping the implicit Sized bound from impl<T: Value> Value for &T and adding impl<T: Value + ?Sized> Value for Box<T>, instead of the bespoke ValueList impls and add_value_dyn added in S1.", "category"...
null
scylladb__scylla-rust-driver__591
scylladb/scylla-rust-driver
591
defect
bfab77766bd0c6b9e16b5adef6954f678a11bae6
7464e0195616418a7307ac9bdc492efc8a08884c
clippy new version's whims required some fixes
## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.md for more details. --> - [x] I have split my patch into logically separate commits. - ...
diff --git a/scylla-cql/src/frame/response/error.rs b/scylla-cql/src/frame/response/error.rs index 3984fe09e59..bc526d027c4 100644 --- a/scylla-cql/src/frame/response/error.rs +++ b/scylla-cql/src/frame/response/error.rs @@ -103,8 +103,8 @@ mod tests { let mut bytes: Vec<u8> = Vec::new(); let message_...
1
1
1
[{"id": "G0", "claim": "The pull request deletes the ref_value test in scylla-cql/src/frame/value_tests.rs without a stated reason; the reviewer asks why it was deleted and that the reason be described in the commit message.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__scylla-rust-driver__596
scylladb/scylla-rust-driver
596
defect
627111b19b620f5173aeefb4ead3df6446d09789
2aeef2a2142ece3990347a9c5eba90d89d951252
Migrate ValueList to recently-stabilized GATs
This requires bumping the MSRV to 1.65.0 This is a separate PR from #573 as discussed at https://github.com/scylladb/scylla-rust-driver/pull/573#issuecomment-1315125612. Implementation note: This requires adding a PhantomData in `BatchValuesFromIter` so that the `where Self: 'r` bound will imply the previous `'a...
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8204c36eeff..771aa5472e0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always RUSTFLAGS: -Dwarnings - rust_min: 1.59.0 # <- Update this when bumping up MSRV + rust_mi...
3
2
2
[{"id": "G0", "claim": "The newly released Clippy flags issues in the pull request's change that need to be fixed (CI runs with warnings denied via RUSTFLAGS: -Dwarnings).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The BatchValues trait doc comm...
null
scylladb__scylla-rust-driver__602
scylladb/scylla-rust-driver
602
defect
23d799414bc2caa1db9e4b0b1d1b459ab3efbdb6
ba80a9397eabe08dbdd4fc4450ee72c3cb7a9706
Cassandra 3 nodes CI & proxy features enhancements
I've made our CI Cassandra cluster consist of 3 nodes (instead of only 1). This will let us test freely on both C* and Scylla in case that the test assumes 3 nodes present; we will no longer have to opt those tests out for C*. Moveover, I've made several improvements to proxy: - rule changing is no longer async - ...
diff --git a/scylla-proxy/src/actions.rs b/scylla-proxy/src/actions.rs index f32077e517f..484bed8c6ee 100644 --- a/scylla-proxy/src/actions.rs +++ b/scylla-proxy/src/actions.rs @@ -1,4 +1,4 @@ -use std::{sync::Arc, time::Duration}; +use std::{fmt, sync::Arc, time::Duration}; use bytes::Bytes; use rand::{Rng, RngCor...
3
2
0
[{"id": "G0", "claim": "fmt_reaction should take a &str (identifying the reaction type) instead of a bool, to make it slightly more reusable and nicer at call sites.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "It is strange that obtain_shards_number c...
null
scylladb__scylla-rust-driver__621
scylladb/scylla-rust-driver
621
defect
9609a4895a393818e68565d236ebe7460fea6e1c
463db81cbe2eeb09818c4f83ed81565ce441397d
Automated proxy addresses in tests
## Pre-review checklist As tests are run concurrently on a single process, so addresses for proxy instances used in them can be assigned automatically in a non-colliding way. To this end, one atomic suffices. Fixes: #586 <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes w...
diff --git a/scylla-proxy/src/lib.rs b/scylla-proxy/src/lib.rs index b4625b623c4..7907fff5998 100644 --- a/scylla-proxy/src/lib.rs +++ b/scylla-proxy/src/lib.rs @@ -8,3 +8,5 @@ pub use actions::{ pub use errors::{DoorkeeperError, ProxyError, WorkerError}; pub use frame::{RequestFrame, RequestOpcode, ResponseFrame, Re...
2
2
0
[{"id": "G0", "claim": "The function unnecessarily restricts itself to the last octet of the loopback address (a 16-bit atomic over ~214 addresses), which is realistic to deplete in tests, and should use a U32 over the much larger loopback range so overflow no longer has to be worried about.", "category": "design", "ve...
null
scylladb__scylla-rust-driver__628
scylladb/scylla-rust-driver
628
defect
9609a4895a393818e68565d236ebe7460fea6e1c
222fa4d0a8bd60e871512fe1359722f8eb8c8e05
scylla-macros: increase hygiene
While trying to make my macros at https://github.com/wmitros/scylla-rust-udf/pull/1 more hygienic, I noticed that I also need the macros here to be more hygienic. I'm posting this mostly to find out if I'm heading in the right direction with the changes, although this patch does pass tests if it turns out being close ...
diff --git a/examples/user-defined-type.rs b/examples/user-defined-type.rs index d369fdd43bc..bbbc0466ec5 100644 --- a/examples/user-defined-type.rs +++ b/examples/user-defined-type.rs @@ -1,5 +1,4 @@ use anyhow::Result; -use scylla::cql_to_rust::FromCqlVal; use scylla::macros::{FromUserType, IntoUserType}; use scyl...
4
4
2
[{"id": "G0", "claim": "Generated code should not rely on a plain `scylla` path being in scope (the `scylla` crate should also be `::`-prefixed, e.g. `::scylla::cql_to_rust::FromCqlVal<...>`, though tests in scylla-cql that do `use crate as scylla` may force an exception).", "category": "correctness", "verdict": "suppo...
null
scylladb__scylla-rust-driver__649
scylladb/scylla-rust-driver
649
defect
8ecbd0c91f36b334e60fb155337f178c237ae1df
347855eaf50973b069b61ccd64a89dc6c0cc37b2
topology: UDTs hold complete definition of themselves
It has been requested by a customer to make `CqlType::UserDefinedType` hold a complete definition of the type. Before, the definition was distributed among multiple code locations: the type name was present inside the mentioned variant, the keyspace name was to be deduced from the context, and the fields definition...
diff --git a/scylla-cql/src/frame/response/result.rs b/scylla-cql/src/frame/response/result.rs index 3608a1fd04b..c6088131162 100644 --- a/scylla-cql/src/frame/response/result.rs +++ b/scylla-cql/src/frame/response/result.rs @@ -40,7 +40,7 @@ pub struct TableSpec { pub table_name: String, } -#[derive(Debug, Clo...
1
1
1
[{"id": "G0", "claim": "The intermediate PreCqlType and PreCollectionType types should not be public, since they are just intermediate steps before conversion to CqlType.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
scylladb__scylla-rust-driver__694
scylladb/scylla-rust-driver
694
defect
8108bbaa8167aed34de24d9e2909f1d6e067939d
30559b9920d72743664e9a8f61d4fced8a02fda1
Serverless tests
## Pre-review checklist <!-- Make sure you took care of the issues on the list. Put 'x' into those boxes which apply. You can also create the PR now and click on all relevant checkboxes. See CONTRIBUTING.md for more details. --> - [x] I have split my patch into logically separate commits. - ...
diff --git a/scylla/src/transport/session_test.rs b/scylla/src/transport/session_test.rs index eb7c2b464e8..9aadf1dbdb4 100644 --- a/scylla/src/transport/session_test.rs +++ b/scylla/src/transport/session_test.rs @@ -10,6 +10,11 @@ use crate::statement::Consistency; use crate::tracing::{GetTracingConfig, TracingInfo};...
5
5
2
[{"id": "G0", "claim": "Why are the imports used by the cloud branch placed inside create_new_session_builder while the remaining imports sit at the top of the file?", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Because create_new_session_build...
null
scylladb__scylla-rust-driver__72
scylladb/scylla-rust-driver
72
defect
97e576ac9452f020d01a58baea8f319ac0a0c66d
260aacde0fa5f374d02b4f9536211184e52b3c0f
Introduce session_test.rs instead of connection_test.rs
Session test is a more fitting name, since we effectively started testing sessions here. Also, the test cases are now a little more structured and they actually validate the results returned by Scylla. The tests passed against Scylla **and** Cassandra!
diff --git a/scylla/src/frame/response/result.rs b/scylla/src/frame/response/result.rs index c0b58b3e765..98a8b35038c 100644 --- a/scylla/src/frame/response/result.rs +++ b/scylla/src/frame/response/result.rs @@ -32,6 +32,7 @@ struct TableSpec { enum ColumnType { Ascii, Int, + BigInt, Text, Set(...
2
2
1
[{"id": "G0", "claim": "The test should unwrap the query result instead of matching on it, because three rows are expected and a None response would be a bug that should fail the test rather than be silently skipped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null