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
18 changes: 15 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,14 @@ jobs:

# --version exits before builtin extensions are loaded. Start the
# non-interactive runtime far enough to surface extension diagnostics,
# but allow the expected no-models exit in CI.
# but allow the expected no-models exit in CI. Run from a clean temp
# cwd so repo-local config (e.g. .mcp.json) can't leak into the smoke
# run and hang startup.
work_dir="$RUNNER_TEMP/atomic-linux-binary-smoke-cwd"
rm -rf "$work_dir"
mkdir -p "$work_dir"
set +e
output=$(printf '' | "$smoke_dir/atomic/atomic" --no-session 2>&1)
output=$(cd "$work_dir" && printf '' | "$smoke_dir/atomic/atomic" --no-session 2>&1)
status=$?
set -e
echo "$output"
Expand Down Expand Up @@ -164,9 +169,16 @@ jobs:

# --version exits before builtin extensions are loaded. Start the
# non-interactive runtime far enough to surface extension diagnostics,
# but allow the expected no-models exit in CI.
# but allow the expected no-models exit in CI. Run from a clean temp
# cwd so repo-local config (e.g. .mcp.json) can't leak into the smoke
# run and hang startup.
$workDir = Join-Path $env:RUNNER_TEMP "atomic-windows-binary-smoke-cwd"
Remove-Item -Recurse -Force $workDir -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Path $workDir | Out-Null
Push-Location $workDir
$output = "" | & $atomic --no-session 2>&1 | Out-String
$status = $LASTEXITCODE
Pop-Location
Write-Host $output
if ($output -match "Failed to load extension") {
exit 1
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,13 @@ jobs:
exit 1
}
done
# Run from a clean temp cwd so repo-local config (e.g. .mcp.json)
# can't leak into the smoke run and hang startup.
work_dir="$RUNNER_TEMP/atomic-binary-smoke-cwd"
rm -rf "$work_dir"
mkdir -p "$work_dir"
set +e
output=$(printf '' | "$smoke_dir/atomic/atomic" --no-session 2>&1)
output=$(cd "$work_dir" && printf '' | "$smoke_dir/atomic/atomic" --no-session 2>&1)
status=$?
set -e
echo "$output"
Expand Down Expand Up @@ -145,8 +150,15 @@ jobs:
throw "Missing release archive path: $requiredPath"
}
}
# Run from a clean temp cwd so repo-local config (e.g. .mcp.json)
# can't leak into the smoke run and hang startup.
$workDir = Join-Path $env:RUNNER_TEMP "atomic-binary-smoke-cwd"
Remove-Item -Recurse -Force $workDir -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Path $workDir | Out-Null
Push-Location $workDir
$output = "" | & $atomic --no-session 2>&1 | Out-String
$status = $LASTEXITCODE
Pop-Location
Write-Host $output
if ($output -match "Failed to load extension") {
exit 1
Expand Down
7 changes: 7 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"mcpServers": {
"deepwiki": {
"url": "https://mcp.deepwiki.com/mcp"
}
}
}
Loading