Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ pub fn try_acquire_code_generation_store_read_lock(
) -> Result<Option<CodeGenerationStoreLockV1>, CodeGenerationRetentionErrorV1> {
let store_root = canonical_store_root(store_root)?;
let lock = open_lock_file(&store_root.join(STORE_LOCK_FILE))?;
match lock
.try_lock_shared()
.map_err(std::io::Error::from)
{
match lock.try_lock_shared().map_err(std::io::Error::from) {
Ok(()) => Ok(Some(CodeGenerationStoreLockV1 {
file: lock,
store_root,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3244,22 +3244,22 @@ fn partitioned_codec_fixture() -> (
}

const PARTITIONED_FORMAT_STATE_DIGEST: &str =
"sha256:28f30287a415e81bf589922385146f921a539734ec0a3600bd39578ad3c8dcd3";
"sha256:8d84348830efc4452a078cfac1cc78e0ed44112a37f1025bd6f4f4bc152fe196";
const PARTITIONED_FORMAT_SEGMENTS: &[(&str, u64)] = &[
(
"sha256:924c1f0b7b171b7bf5433a6eb04767eb244e7c9decc1f2343b06a657908f3a7b",
11_070,
"sha256:e50d2733b5f594d79fdccc3e44b5d30d5efb66d14805b5fe0c67d5ceb0a1d66f",
11_071,
),
(
"sha256:1a6e240c8fcc1084d82cee42cbaa889bb479ff1df7a76432dcec2d51d66e1d1a",
5_170,
"sha256:1095d61bb8bbbf6637f85ca957a510d221aaba7923af8e60b0f3eef07042e6ff",
5_171,
),
(
"sha256:4461a4ce08e5f59299030959a2773bd48b2c2d48056c188e06867db99609847a",
6_278,
"sha256:9921ca7da5c489307887ab570a5e8d5a7cebf192b9b6664c487e9a327943e396",
6_279,
),
(
"sha256:4c54bba48f3fcf2fd0085ab5aecd8b35451a8cfc56381fa99605327165afbb15",
"sha256:52b5707b5312bcb1e29849372b0dbb882205b3289b345643620a35c1d260c246",
6_837,
),
];
Expand Down
2 changes: 1 addition & 1 deletion crates/tracedecay-privacy/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ fn compile_regex(
/// upstream rules that repeat `\w` over a wide bound
/// (`pypi-...[\w-]{50,1000}`) blow past the compiler's 10 MB program limit.
/// Expanding `\w` to its RE2 meaning fixes the semantics and the size at once
/// , every rule in the catalogue then compiles under the default limit, with
/// , every rule in the catalogue then compiles under the default limit, with
/// no memory headroom bought and no rule dropped.
////// * **`\b` / `\B`.** RE2's word boundary is ASCII. Rust's is Unicode-aware,
/// and a Unicode boundary is the one construct the lazy DFA gives up on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@
}
],
"expected_query_fallback_digests": {
"train": "sha256:d020b61b1658145487d4d1ea9622ad6075293c329e202bb351c49290bc398067",
"validation": "sha256:934459d069cc368f06ce81d950116d4c823965a95c8f752eef9d41b45a0c01cb"
"train": "sha256:5750d4a588f7a7e14c381ec3a4285400a29e164babbf88e677ce7441aaf8e9b2",
"validation": "sha256:e7a459efb1655bb71e30fd302690cd5ac7937197add94a3ac1cab5812a1f5a48"
},
"profile_matrix": [
{
Expand Down
2 changes: 1 addition & 1 deletion crates/tracedecay-query/src/search_quality/packaged.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use super::candidate_output::{
use super::evaluate::SearchEvalError;

const WORKLOAD_PATH: &str = "tests/fixtures/search_quality/query-lexical-graph-workload-v1.json";
const WORKLOAD_SHA256: &str = "20322067510f57f5fa75f68674b18290a65d0535af7da363b6b6f29384042ca4";
const WORKLOAD_SHA256: &str = "267e2bd2e9b90d258cbeed829920ab735f6af0ebc2a6e870d59eeef29b1cdb93";

const FILES: &[(&str, &[u8])] = &[
(
Expand Down
15 changes: 3 additions & 12 deletions crates/tracedecay-runtime-core/src/lifecycle_lease.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,7 @@ pub fn acquire_shared_or_inherited(operation: &str) -> Result<LifecycleLease> {

fn acquire_shared_or_inherited_at(path: &Path, operation: &str) -> Result<LifecycleLease> {
let mut file = open_lock_file(path)?;
match file
.try_lock_shared()
.map_err(std::io::Error::from)
{
match file.try_lock_shared().map_err(std::io::Error::from) {
Ok(()) => Ok(LifecycleLease {
hold: LeaseHold::File(file),
token: None,
Expand Down Expand Up @@ -384,10 +381,7 @@ fn acquire_exclusive_at_with_timeout(
#[hotpath::measure(label = "runtime_core.lifecycle.acquire_shared")]
fn acquire_shared_at(path: &Path, operation: &str) -> Result<LifecycleLease> {
let mut file = open_lock_file(path)?;
match file
.try_lock_shared()
.map_err(std::io::Error::from)
{
match file.try_lock_shared().map_err(std::io::Error::from) {
Ok(()) => Ok(LifecycleLease {
hold: LeaseHold::File(file),
token: None,
Expand All @@ -404,10 +398,7 @@ fn acquire_shared_at(path: &Path, operation: &str) -> Result<LifecycleLease> {

fn try_acquire_shared_at(path: &Path, operation: &str) -> Result<SharedLeaseAttempt> {
let file = open_lock_file(path)?;
match file
.try_lock_shared()
.map_err(std::io::Error::from)
{
match file.try_lock_shared().map_err(std::io::Error::from) {
Ok(()) => Ok(SharedLeaseAttempt::Acquired(LifecycleLease {
hold: LeaseHold::File(file),
token: None,
Expand Down
2 changes: 2 additions & 0 deletions crates/tracedecay/tests/mcp_suite/mcp_handler_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ mod session_search_test;
#[cfg(feature = "test-transport")]
mod shell_dead_code_test;
mod skills_automation_test;
#[cfg(feature = "test-transport")]
mod source_edit_rollback_test;
mod status_runtime_test;
#[cfg(feature = "test-transport")]
mod test_map_test;
Expand Down
Loading
Loading