Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e73db5e
deps: Bump System.CommandLine from 2.0.15 to 3.0.0
dependabot[bot] Nov 22, 2026
5a17747
Nightly: fail the packaging step when a zip_with_exec.py call fails
erikdarlingdata Nov 22, 2026
dfd014c
Merge pull request #730 from erikdarlingdata/fix/nightly-zip-exit-checks
erikdarlingdata Nov 22, 2026
a779305
Deploy Web App: build and deploy in separate jobs
erikdarlingdata Nov 22, 2026
fe92edb
Merge pull request #731 from erikdarlingdata/fix/deploy-web-split-jobs
erikdarlingdata Nov 22, 2026
c546dfc
Merge pull request #714 from erikdarlingdata/dependabot/nuget/dev/Sys…
erikdarlingdata Nov 22, 2026
ef3c2f6
ci: bump anthropics/claude-code-action
dependabot[bot] Nov 23, 2026
332c9ad
Nightly: build when dev moved since the last nightly, not on a 24-hou…
erikdarlingdata Nov 23, 2026
d29681f
Nightly: update the header comment for the new change check
erikdarlingdata Nov 23, 2026
0f121b0
Merge pull request #733 from erikdarlingdata/fix/nightly-change-check
erikdarlingdata Nov 23, 2026
32c2b4e
Stats dashboard: add description and share-card tags, new menu, robot…
erikdarlingdata Nov 25, 2026
31c806d
Deploy PlanShare: ship the stats page in its own job
erikdarlingdata Nov 25, 2026
f785770
Merge pull request #735 from erikdarlingdata/fix/stats-page-deploy
erikdarlingdata Nov 25, 2026
9e53003
Merge pull request #734 from erikdarlingdata/fix/stats-dashboard-seo
erikdarlingdata Nov 25, 2026
2c90296
Stats dashboard: load the Tag Manager container used on erikdarling.com
erikdarlingdata Nov 25, 2026
89efaa0
Merge pull request #736 from erikdarlingdata/feature/stats-dashboard-…
erikdarlingdata Nov 25, 2026
95de338
Merge pull request #732 from erikdarlingdata/dependabot/github_action…
erikdarlingdata Nov 27, 2026
1a89ec0
ci: bump the actions group with 2 updates
dependabot[bot] Nov 30, 2026
f56be08
deps: Bump the patch-and-minor group with 6 updates
dependabot[bot] Nov 30, 2026
7609471
deps: Bump Microsoft.Data.SqlClient from 7.1.2 to 8.0.0
dependabot[bot] Nov 30, 2026
a3970fb
Merge pull request #737 from erikdarlingdata/dependabot/github_action…
erikdarlingdata Nov 30, 2026
187f334
Merge pull request #738 from erikdarlingdata/dependabot/nuget/dev/pat…
erikdarlingdata Nov 30, 2026
b9e8386
Move Microsoft.Data.SqlClient.Extensions.Azure to 8.0.0 with SqlClien…
erikdarlingdata Nov 30, 2026
d773ec3
Merge pull request #739 from erikdarlingdata/dependabot/nuget/dev/Mic…
erikdarlingdata Nov 30, 2026
df7757c
Capped subtree costs and estimated executions (#741)
erikdarlingdata Dec 1, 2026
bdc9a6b
Rule 40: Nested Loops inner-side executions check, and costs for proc…
erikdarlingdata Dec 1, 2026
e0b2009
Merge pull request #742 from erikdarlingdata/fix/741-capped-cost-nl-i…
erikdarlingdata Dec 1, 2026
080add3
ci: put the Claude workflows back to main's content so the review runs
erikdarlingdata Dec 1, 2026
af02aa2
Merge pull request #743 from erikdarlingdata/ci/claude-workflows-matc…
erikdarlingdata Dec 1, 2026
94500d2
Bump version to 1.33.0
erikdarlingdata Dec 1, 2026
01c64eb
Merge pull request #746 from erikdarlingdata/release/v1.33.0
erikdarlingdata Dec 1, 2026
1a0230e
Walk fixes in the app: Advice node tag once, '.' closes completion, S…
erikdarlingdata Dec 1, 2026
c77cdd3
Rule 40: singular execution count and a non-zero ratio below 0.01 (#744)
erikdarlingdata Dec 1, 2026
359e3b2
Icon map entries for the relabelled Key Lookup and RID Lookup; icon c…
erikdarlingdata Dec 1, 2026
f051392
Drop the warning-type prefix a message repeated after the surface add…
erikdarlingdata Dec 1, 2026
6d2072a
Web: lay out procedure and UDF body statements (#744)
erikdarlingdata Dec 1, 2026
fd11435
MCP get_plan_warnings: include operator warnings (#744)
erikdarlingdata Dec 1, 2026
5eb9d6d
MCP instructions and README: 37 rules, rule 40, cost_note (#744)
erikdarlingdata Dec 1, 2026
f089e63
Keep the Row goal, Local variables and Stale statistics lead-ins: the…
erikdarlingdata Dec 1, 2026
66fd4dd
Merge pull request #747 from erikdarlingdata/fix/744-walk-fixes
erikdarlingdata Dec 1, 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
59 changes: 59 additions & 0 deletions .github/workflows/deploy-planshare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Deploy PlanShare
# PlanShare is not built by ci.yml (server/** is paths-ignored) and is not in
# PlanViewer.sln, so before this workflow existed a merged PR shipped nothing.
# Production once drifted ~3.5 months behind main, missing two security fixes.
# The stats page (dashboard.html, robots.txt) drifted the same way: it was
# never shipped at all and sat on an April copy until 2026-11-25.
on:
push:
branches: [main]
Expand All @@ -26,6 +28,7 @@ env:
DEPLOY_HOST: stats.erikdarling.com
DEPLOY_USER: deploy
APP_DIR: /opt/planshare
WEB_ROOT: /var/www/stats
PUBLIC_URL: https://stats.erikdarling.com

jobs:
Expand Down Expand Up @@ -139,3 +142,59 @@ jobs:
- name: Clean up key
if: always()
run: rm -f ~/.ssh/deploy_key

# The stats page is static: nginx serves WEB_ROOT and proxies only /api/ to
# the app. It ships in its own job, so a failure here can neither block the
# binary deploy nor trigger its rollback. Root owns WEB_ROOT; the deploy user
# owns only index.html and robots.txt in it, so scp overwrites those two
# files in place and cannot add or remove anything else.
deploy-page:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Configure SSH
env:
DEPLOY_KEY: ${{ secrets.PLANSHARE_DEPLOY_KEY }}
run: |
if [ -z "$DEPLOY_KEY" ]; then
echo "::error::PLANSHARE_DEPLOY_KEY secret is not set - cannot deploy."
exit 1
fi
mkdir -p ~/.ssh && chmod 700 ~/.ssh
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
# Pinned host key: fail closed rather than trusting on first use.
echo 'stats.erikdarling.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICIrnTBiPVE5ulZiFZTBw9/DR/dPVwbAr8ZIvu47/w2J' > ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts

- name: Upload page files
run: |
scp -i ~/.ssh/deploy_key -o BatchMode=yes \
server/PlanShare/dashboard.html \
"$DEPLOY_USER@$DEPLOY_HOST:$WEB_ROOT/index.html"
# robots.txt is optional, so a tree without it still ships the page.
if [ -f server/PlanShare/robots.txt ]; then
scp -i ~/.ssh/deploy_key -o BatchMode=yes \
server/PlanShare/robots.txt \
"$DEPLOY_USER@$DEPLOY_HOST:$WEB_ROOT/robots.txt"
fi

- name: Verify through nginx
run: |
# The bytes nginx serves must match the repo file exactly.
verify() {
want=$(sha256sum < "$1" | cut -d' ' -f1)
got=$(curl -sSf -m 20 "$PUBLIC_URL$2" | sha256sum | cut -d' ' -f1)
echo "$2: repo $want, served $got"
[ "$want" = "$got" ] || { echo "::error::$PUBLIC_URL$2 does not match $1"; return 1; }
}
verify server/PlanShare/dashboard.html /
if [ -f server/PlanShare/robots.txt ]; then
verify server/PlanShare/robots.txt /robots.txt
fi

- name: Clean up key
if: always()
run: rm -f ~/.ssh/deploy_key
23 changes: 17 additions & 6 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ on:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
deploy:
# Build and deploy are separate jobs. In one job, deploy-pages can list the
# run's artifacts a fraction of a second after upload-pages-artifact finalizes
# and find none (actions/deploy-pages#451), and re-running that job uploads a
# second github-pages artifact, which deploy-pages also rejects.
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -56,6 +55,18 @@ jobs:
with:
path: publish/wwwroot

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
24 changes: 16 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Nightly Build
#
# The token that can write to the repository never sits next to build-time code (the same rule
# as dependency-submission.yml):
# check contents: read. Skips the build when dev has no commit from the last 24 hours.
# check contents: read. Skips the build when dev's tip is the commit the nightly tag points at.
# build contents: read. Restores, tests and publishes the App (package and MSBuild code runs
# here), packages the zips and SHA256SUMS.txt, and uploads releases/ as an artifact.
# publish contents: write. Checks out nothing and runs no repository code. It downloads the
Expand All @@ -31,16 +31,22 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Check for new commits in last 24 hours
# Build when dev's tip differs from the commit the nightly tag points at.
# fetch-depth: 0 also fetches tags. A "commits in the last 24 hours"
# window skipped new commits whenever GitHub started the scheduled run
# later in the day than the run before (start times drift by hours).
# A missing tag (deleted by a publish that failed half way) means build.
- name: Check whether dev moved since the last nightly
id: check
run: |
RECENT=$(git log --since="24 hours ago" --oneline | head -1)
if [ -n "$RECENT" ]; then
echo "has_changes=true" >> $GITHUB_OUTPUT
echo "New commits found — building nightly"
HEAD_SHA=$(git rev-parse HEAD)
NIGHTLY_SHA=$(git rev-parse -q --verify 'refs/tags/nightly^{commit}' || true)
if [ "$HEAD_SHA" != "$NIGHTLY_SHA" ]; then
echo "has_changes=true" >> "$GITHUB_OUTPUT"
echo "dev is at $HEAD_SHA, nightly is at ${NIGHTLY_SHA:-none}: building nightly"
else
echo "has_changes=false" >> $GITHUB_OUTPUT
echo "No new commits — skipping nightly build"
echo "has_changes=false" >> "$GITHUB_OUTPUT"
echo "Nightly is already built from $HEAD_SHA: skipping"
fi

build:
Expand Down Expand Up @@ -117,6 +123,7 @@ jobs:
if (Test-Path 'README.md') { Copy-Item 'README.md' 'publish/linux-x64/' }
if (Test-Path 'LICENSE') { Copy-Item 'LICENSE' 'publish/linux-x64/' }
python .github/scripts/zip_with_exec.py publish/linux-x64 "releases/PerformanceStudio-linux-x64-$env:VERSION.zip" --exec PlanViewer.App --exec-optional createdump
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

# Package macOS as proper .app bundles
foreach ($rid in @('osx-x64', 'osx-arm64')) {
Expand Down Expand Up @@ -148,6 +155,7 @@ jobs:
# Zip the bundle with zip_with_exec.py so the apphost inside the .app
# keeps its execute bit (Compress-Archive would strip it).
python .github/scripts/zip_with_exec.py "$wrapperDir" "releases/PerformanceStudio-$rid-$env:VERSION.zip" --exec "PerformanceStudio.app/Contents/MacOS/PlanViewer.App" --exec-optional "PerformanceStudio.app/Contents/MacOS/createdump"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}

- name: Generate checksums
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ jobs:
# fix the cause and start a fresh run (a new dev -> main merge) instead of
# re-running the same one.
- name: Sign Windows build
uses: signpath/github-action-submit-signing-request@4a84eb4ad763290f059275786f2deed97c2c672b # v3.1
uses: signpath/github-action-submit-signing-request@a2c5b60d9c75f073142b653c354b632eedce097b # v3.2
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '7969f8b6-d946-4a74-9bac-a55856d8b8e0'
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
# artifact would sign nothing and still succeed, and the collect step
# refuses to stage an empty set for that reason.
- name: Sign the executables Velopack generates
uses: signpath/github-action-submit-signing-request@4a84eb4ad763290f059275786f2deed97c2c672b # v3.1
uses: signpath/github-action-submit-signing-request@a2c5b60d9c75f073142b653c354b632eedce097b # v3.2
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '7969f8b6-d946-4a74-9bac-a55856d8b8e0'
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
id: sign-ssms
if: steps.ssms.outputs.BUILT == 'true'
continue-on-error: true
uses: signpath/github-action-submit-signing-request@4a84eb4ad763290f059275786f2deed97c2c672b # v3.1
uses: signpath/github-action-submit-signing-request@a2c5b60d9c75f073142b653c354b632eedce097b # v3.2
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '7969f8b6-d946-4a74-9bac-a55856d8b8e0'
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ authors:
website: "https://erikdarling.com"
repository-code: "https://github.com/erikdarlingdata/PerformanceStudio"
license: MIT
version: "1.32.0"
date-released: "2026-11-22"
version: "1.33.0"
date-released: "2026-12-01"
keywords:
- sql-server
- execution-plan
Expand Down
18 changes: 9 additions & 9 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
</PropertyGroup>

<ItemGroup>
<PackageVersion Include="Avalonia" Version="12.1.6" />
<PackageVersion Include="Avalonia" Version="12.2.0" />
<PackageVersion Include="Avalonia.AvaloniaEdit" Version="12.0.0" />
<PackageVersion Include="Avalonia.Controls.DataGrid" Version="12.1.2" />
<PackageVersion Include="Avalonia.Desktop" Version="12.1.6" />
<PackageVersion Include="Avalonia.Fonts.Inter" Version="12.1.6" />
<PackageVersion Include="Avalonia.Headless" Version="12.1.6" />
<PackageVersion Include="Avalonia.Themes.Fluent" Version="12.1.6" />
<PackageVersion Include="Avalonia.Desktop" Version="12.2.0" />
<PackageVersion Include="Avalonia.Fonts.Inter" Version="12.2.0" />
<PackageVersion Include="Avalonia.Headless" Version="12.2.0" />
<PackageVersion Include="Avalonia.Themes.Fluent" Version="12.2.0" />
<PackageVersion Include="AvaloniaEdit.TextMate" Version="12.0.0" />
<PackageVersion Include="BlackwellSystems.Gcf" Version="1.1.0" />
<PackageVersion Include="coverlet.collector" Version="10.1.1" />
<PackageVersion Include="Meziantou.Framework.Win32.CredentialManager" Version="3.0.13" />
<PackageVersion Include="Meziantou.Framework.Win32.CredentialManager" Version="3.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.15" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.15" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.15" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="7.1.2" />
<PackageVersion Include="Microsoft.Data.SqlClient.Extensions.Azure" Version="7.1.2" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="8.0.0" />
<PackageVersion Include="Microsoft.Data.SqlClient.Extensions.Azure" Version="8.0.0" />
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.15" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<!-- The SDK manages this package implicitly for the installer; only the legacy
Expand All @@ -43,7 +43,7 @@
<PackageVersion Include="ScottPlot.Avalonia" Version="5.1.59" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux" Version="3.119.4" />
<PackageVersion Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.5" />
<PackageVersion Include="System.CommandLine" Version="2.0.15" />
<PackageVersion Include="System.CommandLine" Version="3.0.0" />
<PackageVersion Include="TextMateSharp.Grammars" Version="2.0.5" />
<PackageVersion Include="Velopack" Version="1.2.161" />
<PackageVersion Include="xunit.v3" Version="4.0.3" />
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ The MCP server binds to `localhost` only and does not accept remote connections.
```
PerformanceStudio/
├── src/
│ ├── PlanViewer.Core/ # Analysis engine (parser, 30 rules, layout)
│ ├── PlanViewer.Core/ # Analysis engine (parser, 37 rules, layout)
│ ├── PlanViewer.App/ # Avalonia desktop GUI
│ ├── PlanViewer.Cli/ # CLI tool (planview command)
│ ├── PlanViewer.Ssms/ # SSMS extension (.vsix, .NET Framework 4.7.2)
Expand Down Expand Up @@ -625,21 +625,21 @@ Always use `--trust-cert` with local Docker instances.

## Analysis Rules

The analyzer runs 30 rules against each plan, covering:
The analyzer runs 37 rules against each plan, covering:

| Category | Rules |
|----------|-------|
| Memory | Large grants, grant vs used ratio, spills to TempDB (including exchange spills) |
| Estimates | Row estimate mismatches (10x+), zero-row actuals, row goals |
| Indexes | Missing index suggestions, key lookups, RID lookups, scan with residual predicates |
| Parallelism | Serial plan reasons, thread skew, ineffective parallelism, DOP reporting |
| Joins | Nested loop high executions, many-to-many merge join worktables |
| Joins | Nested loop high executions, nested loop inner side estimated for a different number of executions than the outer side feeds it, many-to-many merge join worktables |
| Filters | Late filter operators with impact quantification, function-wrapped predicates |
| Functions | Scalar UDF detection (T-SQL and CLR), UDF timing |
| Parameters | Compiled vs runtime values, sniffing issue detection |
| Patterns | Leading wildcards, implicit conversions (with seek plan severity upgrade), OPTIMIZE FOR UNKNOWN, NOT IN with nullable columns, OR expansion, CASE in predicates |
| Compilation | High compile CPU, compile memory exceeded, early abort |
| Objects | Table variables, table-valued functions, CTE multiple references, eager index spools, lazy spools, row count spools |
| Objects | Table variables, table-valued functions, eager index spools, lazy spools, row count spools |
| Operators | Operator self-time calculation with per-thread awareness for parallel plans |

Rules can be disabled, have their severity overridden, or have single findings suppressed per statement via a `.planview.json` config file. See [Configuration file](#configuration-file-planviewjson).
Expand Down
Loading