Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6633d17
fix(node): bound REST blob reads
Sep 7, 2026
95d295c
test(node): cover blob authorization denials.
Sep 7, 2026
d824cfa
fix(node): Hide Git diagnostics from blob error responses.
Sep 9, 2026
3d7032b
fix(node): close REST blob admission and error gaps
Sep 9, 2026
fc2d043
fix(node): acquire blob permits pre-DB and cover route/fallback arms
Sep 10, 2026
c63527c
fix(node): confirm blob absence against a readable store
Sep 12, 2026
8977ed4
fix(node): bound REST blob response delivery
Sep 12, 2026
e1fe66e
test(git): distinguish every bounded ref fallback
Sep 12, 2026
4344b77
docs(node): describe the cat-file blob read path
Sep 12, 2026
49aebb2
fix(node): prevent caching of authorized blob content
Sep 12, 2026
c566455
fix(node): pin non-blob denial and map unreadable store to 503
Sep 12, 2026
df5a283
style(repos): simplify blob semaphore permit assertion for clippy
Sep 13, 2026
f0d0025
fix(git): classify unreadable store with ProbeError and tighten blob …
Sep 13, 2026
eb1222d
test(node): assert full blob admission release after read errors
Sep 14, 2026
c15acf5
test(git): require probe completion before reprobe budget denial
Sep 14, 2026
77e9b76
test(node): make Windows regression fixtures portable
Sep 14, 2026
5d238ca
fix(sync): use a supported Windows promisor blob filter
Sep 14, 2026
2c7f60a
test(git): route write-then-exec fixtures through write_blob_probe_fi…
Sep 15, 2026
2bb398e
test(sync): assert configured partialclonefilter and pin platform con…
Sep 15, 2026
bbab52e
test(api,git): close write-fd window in exec'd fixtures
Sep 17, 2026
ad003b3
fix(api): clamp authorize_repo_read with acquire timeout in get_blob
Sep 18, 2026
a2c996a
docs(config): describe the blob authorization deadline
Sep 20, 2026
5f588c1
test(api): bound the blob authorization timeout regression
Sep 20, 2026
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
Prev Previous commit
Next Next commit
test(api,git): close write-fd window in exec'd fixtures
Write fakegit through a child process to avoid ETXTBSY on exec and use hard_link for the compiled git shim.

Refs #407
  • Loading branch information
euxaristia
euxaristia committed Sep 17, 2026
commit bbab52e5d2620acc2e2a1eaa6b95a6bd8e967d9a
19 changes: 14 additions & 5 deletions crates/gitlawb-node/src/api/repos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4345,12 +4345,21 @@ mod tests {

#[cfg(unix)]
fn write_fake_git(dir: &std::path::Path, body: &str) -> String {
use std::os::unix::fs::PermissionsExt;
use std::io::Write;
let p = dir.join("fakegit");
std::fs::write(&p, body).unwrap();
let mut perm = std::fs::metadata(&p).unwrap().permissions();
perm.set_mode(0o755);
std::fs::set_permissions(&p, perm).unwrap();
let mut writer = std::process::Command::new("sh")
.args(["-c", "cat > \"$1\" && chmod 755 \"$1\"", "fixture-writer"])
.arg(&p)
.stdin(std::process::Stdio::piped())
.spawn()
.unwrap();
writer
.stdin
.take()
.unwrap()
.write_all(body.as_bytes())
.unwrap();
assert!(writer.wait().unwrap().success());
p.to_str().unwrap().to_string()
}

Expand Down
3 changes: 2 additions & 1 deletion crates/gitlawb-node/src/test_git_shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ pub(super) fn create(name: &str, behavior: Behavior<'_>) -> GitShim {
.expect("Git fixture instance");
let file_name = format!("git-shim{}", std::env::consts::EXE_SUFFIX);
let executable = directory.path().join(&file_name);
std::fs::copy(compiled.path().join(file_name), &executable).expect("copy native Git fixture");
std::fs::hard_link(compiled.path().join(file_name), &executable)
.expect("hard link native Git fixture");
let config = match behavior {
Behavior::Delay(milliseconds) => format!("delay\n{milliseconds}"),
Behavior::Hang => "hang\n".to_owned(),
Expand Down
Loading