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
6 changes: 3 additions & 3 deletions .github/workflows/bun-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ on:
permissions:
contents: read

# Supersede stale PR runs. The `main` guard is load-bearing: main runs are the
# ONLY rust-cache writers (save-if), so they must never be cancelled mid-save.
# Supersede stale PR runs only: main runs are the ONLY rust-cache writers
# (save-if), so push, dispatch and schedule runs are never cancelled mid-save.
concurrency:
group: bun-patch-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
CARGO_PROFILE_DEV_DEBUG: '0'
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ on:
permissions:
contents: read

# Supersede stale runs on force-push / rapid PR updates. The `main` guard is
# load-bearing: main runs are the ONLY rust-cache writers (save-if), so they
# must never be cancelled mid-save.
# A newer push to the same PR supersedes its older run; nothing else is
# cancelled. Push, dispatch and schedule runs always finish: main runs are
# the ONLY rust-cache writers (save-if) and must not die mid-save, and a
# dispatched base-branch run is the base's only CI verdict.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
clippy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ permissions:

concurrency:
group: go-compat-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
SOCKET_NO_CONFIG: '1'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pdm-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ permissions:

concurrency:
group: pdm-compat-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
SOCKET_NO_CONFIG: '1'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/poetry-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ permissions:

concurrency:
group: poetry-compat-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
SOCKET_NO_CONFIG: '1'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/vlt-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ on:
permissions:
contents: read

# Supersede stale PR runs; main runs are the only rust-cache writers, so they
# are never cancelled mid-save.
# Supersede stale PR runs only: main runs are the only rust-cache writers, so
# push, dispatch and schedule runs are never cancelled mid-save.
concurrency:
group: vlt-compat-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
CARGO_PROFILE_DEV_DEBUG: '0'
Expand Down
5 changes: 3 additions & 2 deletions crates/socket-patch-cli/tests/covgap_commands_scan_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1484,8 +1484,9 @@ async fn scan_hosted_paths_run_once_per_project_directory() {

let (code, stdout, stderr) = run_scan_human(tmp.path(), &mock.uri(), &["apps/*"]);
assert_eq!(code, 0, "stdout={stdout}; stderr={stderr}");
for app in ["apps/a", "apps/b"] {
let header = format!("== {} ==", std::path::Path::new(app).display());
// glob rebuilds matches with the native separator (`apps\a` on Windows).
for app in ["a", "b"] {
let header = format!("== {} ==", Path::new("apps").join(app).display());
assert!(stdout.contains(&header), "missing {header:?}: {stdout}");
}
assert_eq!(stdout.matches("Redirected 0 packages").count(), 2, "{stdout}");
Expand Down
5 changes: 4 additions & 1 deletion crates/socket-patch-cli/tests/e2e_nuget_dotnet_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ fn fresh_checkout(from: &Path, to: &Path) {
for f in ["app.csproj", "nuget.config", "packages.lock.json"] {
std::fs::copy(from.join(f), to.join(f)).unwrap_or_else(|e| panic!("copy {f}: {e}"));
}
copy_tree(&from.join(".socket"), &to.join(".socket"));
// v5 hosted mode writes no `.socket/`: the lock pins are its whole state.
if from.join(".socket").is_dir() {
copy_tree(&from.join(".socket"), &to.join(".socket"));
}
strip_manifest(to);
let blobs = to.join(".socket/blobs");
if blobs.exists() {
Expand Down
Loading