Ankit Jain
90d · built 2026-11-30
Performance
What Ankit Jain shipped in the selected window, measured in ETV, and how it compares with the 90 days before it.
Effective capacity
+9.2engineers
delivers like 10.2 (10.2x pre-AI)
Output (ETV)
39.1ETV
+143.4% vs 16.1 prior
Features share
25.4%
−1.3 pp vs prior window
Fixes share
5.5%
+2.0 pp vs prior window
Work mix
25.4% Features3.9% Maintenance58.8% Tests6.4% Docs5.5% Fixes
63 commits over 90 days, ending 2026-11-30.
Where this dev ranks
Percentile against the global top-100 leaderboard (all-time totals).
- By commits
- Top 88 %
- By Features share
- Top 72 %
Daily performance
Daily ETV, stacked by Features, Maintenance, Tests, Docs and Fixes.
Repository spread
Where this developer's commits land. Concentrated work (top1 > 80%) vs polymath spread (top1 < 30%).
Most impactful commits
Top 10 by ETV in the last 90 days.
- 22.5ETVReplace CI failure analysis scripts with a typed analyzer (#21347) ## Description The existing CI failure-analysis agent workflow spreads collection, validation, and publication across shell scripts, inline Bash, and extensive `jq` expressions. That makes it difficult to understand the data flow, debug failures, or review whether a proposed analysis can safely update history and issues. This PR replaces that logic with the C# tool `AnalyzeCiFailure`. The workflow calls explicit commands; typed evidence and proposal contracts, validation, rendering, and publication policy live in testable C# code. ### Tool surface Run commands with: ```bash dotnet run --project tools/AnalyzeCiFailure/AnalyzeCiFailure.csproj --configuration Release -- <command> ``` | Command | What it does | Required arguments | |---|---|---| | `collect` | Fetch run/job metadata, logs, annotations, test artifacts, and prior cause history; generate evidence and diagnosis context. | `--repo`, `--run-id` | | `replay` | Regenerate diagnosis views from captured evidence without contacting GitHub. | `--evidence-dir` | | `validate` | Check an agent proposal against the independently collected evidence, without publication. | `--repo`, `--evidence-dir`, `--analysis-dir` | | `publish` | Validate again, check fresh history and issue destinations, then publish history, issues, and applicable PR comments. | `--repo`, `--evidence-dir`, `--analysis-dir` | | `workflow check-completion` | Check collection/publication job results for an accepted terminal outcome. Alias: `workflow require-publication`. | Reads workflow result environment variables. | | `workflow rerun` | Validate the proposal and fresh run/PR state before authorizing a rerun. | `--repo`, `--evidence-dir`, `--analysis-dir` | - `collect --run-attempt` pins an attempt; omission selects the latest attempt. - `--working-dir` selects the checkout used for relative paths and subprocesses; it defaults to the current directory. - `--github-output` writes Actions step outputs for `collect`, `replay`, and `publish`; it does not select the evidence directory. - `publish --history-dir` selects a new history checkout; the default is a private temporary directory. `--observed-at` defaults to the current UTC time. ### Workflow sequence ```text collect → evidence artifact → agent proposal → publish → check-completion ``` 1. **Collect:** a trusted sparse checkout runs `collect`. Available evidence is retained even when another artifact cannot be acquired. Unexplained missing required results produce a limited-evidence report and block publication. 2. **Diagnose:** when evidence is ready, the agent reads the prepared context and writes only a decision proposal. It does not construct authoritative evidence or choose issue destinations. 3. **Publish:** a separate trusted checkout downloads evidence independently of the proposal. `publish` validates their relationship, preflights destinations, records occurrences, updates issues/comments, and records resulting issue links. 4. **Check completion:** `workflow check-completion` rejects unhandled relevant failures. A successfully written limited-evidence report is an accepted non-publication outcome. 5. **Retain diagnostics:** collection and publication upload bounded progress, decision, and recovery artifacts. Operational reports link to the inspected source CI run. `replay` and `validate` support local investigation without publication. The rerun path uses `workflow rerun`, but rerun effects are disabled in this workflow. ### Fixes included - Main-scope publication omits the optional `pr_numbers` input instead of sending an empty value that the safe-output tool rejects. - Missing or malformed artifacts no longer discard unrelated captured failures; confirmed runner loss is distinguished from unexplained evidence gaps. - Mocha hook/harness errors remain diagnostic context without hiding completed assertion failures or inventing failed-test references. - More than ten independent causes produce one aggregate run-level issue while retaining individual cause history. - Secret redaction handles long setting prefixes without quadratic backtracking. Hook-heavy reports stop reprocessing diagnostic text after the per-job cap, count omissions, and continue collecting completed failures. - Sparse-bootstrap verification checks generated replay output; Windows executable lookup handles `.exe`; durable execution IDs are redacted and bounded. ### Validation - Analyzer suite — **1,168 passed**: ```bash MSBUILDTERMINALLOGGER=false ./.dotnet/dotnet test --project tests/AnalyzeCiFailure.Tests/AnalyzeCiFailure.Tests.csproj --no-launch-profile -- --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' ``` - Release analyzer build — **passed, zero warnings/errors**: ```bash MSBUILDTERMINALLOGGER=false ./.dotnet/dotnet build tools/AnalyzeCiFailure/AnalyzeCiFailure.csproj --configuration Release --no-restore ``` - Workflow infrastructure: **771 passed**; test-selection routing: **366 passed**. - Pinned `gh-aw` v0.89.17 compilation reproduced the committed workflow twice. - Historical hosted validation used read-only profiles; publication previews intercepted mutations. Production issue creation and rerun effects were not exercised by those runs. ### Security considerations The tool processes untrusted CI logs, archives, and agent proposals before privileged history/issue updates. Trusted checkouts, independent evidence transfer, exact coverage/provenance checks, bounded extraction, redaction, and fresh destination checks enforce those boundaries. Structural validation does not prove the agent's causal diagnosis is correct. ### Issues fixed - Grouped flaky causes now validate each current observation without requiring a combined legacy `test_name` to equal one individual test. Fixes #20332. - Cause issues and occurrence rows use their associated jobs rather than the first failed job in the run. Fixes #19881. Main-scope `publish_data` calls no longer require a fabricated or empty PR number: `pr_numbers` is optional and omitted when there is no subject PR. This addresses the same reported input-validation failure in: Fixes #21415 Fixes #21339 Fixes #21312 Fixes #21293 Fixes #21257 Fixes #21224 Fixes #21016 Fixes #20587 ### Related work remaining open - #19578: the complete prior-cause catalogue addresses context availability, but inconsistent semantic cause reuse remains unresolved. - #21467: recurring operational issue tracking for incomplete evidence. - #21468: publication support for hook-only and log-only job failures. - #21469: structured results inside oversized diagnostic archives. - #21470: consistent grouping of identical shared-fixture failures. ## Checklist - Is this feature complete? - [ ] Yes. Ready to ship. - [x] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [x] Yes - [ ] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [x] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [x] No - [ ] No --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · 8d79e4e4 · 2026-11-03
- 3.1ETVfix(ci): Retry transient failures in current-main CI Transient infrastructure failures in rolling main CI required manual reruns. Retrying without checking every failed job could also obscure real test failures or rerun an obsolete commit. Add a narrow current-main policy alongside the existing PR/manual policy. Require every real failed job to match the infrastructure allowlist, limit main to one retry, and revalidate the run identity, attempt and current main SHA immediately before requesting a rerun. Reject registry-only eligibility when a known test or validation step failed. Job-wide diagnostics cannot distinguish a failed pull from a recovered pull followed by an unrelated test failure. Keep analysis read-only and isolate rerun/comment permissions in the output-gated execution job. Automatic PR retries additionally require the failed commit to remain the open PR's current head. Validation includes 223 policy tests and nine controlled live GitHub scenarios using equivalent workflow code and simulated registry diagnostics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · 100acc9d · 2026-11-05
- 1.7ETVbuild: unify bundle build, publish and packaging in MSBuild (#21304) ## Description GitHub Actions and Azure Pipelines carry separate publish, signing, and packaging steps for the same native bundle. This PR consolidates that work in `eng/Bundle.proj`, so both CI systems use one implementation instead of growing parallel lists of workflow and pipeline steps. The shared MSBuild flow publishes the components, signs prepared outputs, assembles the embedded bundle, and builds and packages the native CLI. Callers supply their RID, version, configuration, and signing mode; component reuse and the ordering of those operations stay in the shared build. CreateLayout accepts explicit prepared component paths so assembly uses the intended payload and fails on invalid explicit inputs. Components are signed before embedding, and the CLI is signed before distribution packaging. Official Assemble signs the three Linux Dashboard NuGet containers and stages the four producer-signed Windows/macOS containers without modifying them. ### Validation Validation head: `97719af00186e44771ca776dd6871d621eea68f0`. GitHub CI/native hosting tested merge `e6b1aae613675bb356325fc2133b08c539805c94`, whose parents are this head and target `100acc9` and whose source tree matches the head. Official and standalone builds pinned the exact head. Upstream main subsequently advanced to `be803a1`. A fresh merge-tree check found no conflicts with this head, without changing the branch, index, or worktree. Integration with that newer base has not been rebuilt or retested; the runs below cover the explicitly identified baseline. **CI, native hosting, real signing, and independent artifact checks passed. The standalone full-solution build failed, and a broader local coordinator test run was incomplete; validation is not all green.** | Check | Result | |---|---| | Focused layout, bundle wrapper, tray, routing, native-publishing, and retry tests | **741 passed**, zero failed/skipped; macOS 27.2 ARM64, SDK `11.0.100-rc.2.26504.105` | | Incoming IDE-capability tests | **3 passed**, zero failed/skipped | | [GitHub CI](https://github.com/microsoft/aspire/actions/runs/41960698568) | **Passed on attempt 1**; 443 successful jobs, 3 skipped, 446 total. All **115 standard test-runner native-archive consumers** passed; another 53 extension/polyglot and 2 installer consumers also passed. | | [Native hosting](https://github.com/microsoft/aspire/actions/runs/41960699040) | **Passed**; Linux native AOT/generated SDK, IPC, CLI, Docker/DCP, Dashboard, Compose and cleanup scenarios; **81/81 Windows product/named-pipe tests** | | [Official signed build 3126923](https://dev.azure.com/dnceng/internal/_build/results?buildId=3126923) | **Succeeded**, all six stages; seven producer logs and Assemble ordering inspected; **159 final Microsoft Author-signed NuGet release packages** verified in the pipeline | | Downloaded GitHub products | **Passed**, six RID sets; **26 stable artifact IDs**, archive/tool/npm binary equality, Dashboard NuGet/runtime equality, architecture/permissions, ZIP integrity, and installer hashes | | Downloaded official products | **Passed**, seven RID sets; manifest reconciliation of **159 NuGets/49 blobs**, nine SHA512 sidecars and installer hashes; **7/7 independent Dashboard NuGet signature verifications**; **3 Linux payloads preserved and 4 producer-signed containers unchanged** | | [Standalone full build/pack](https://github.com/radical/aspire/actions/runs/41960989760) | **Failed** with CS0618 in the AzureApiManagement playground AppHost. Independent default Bundle diagnostics passed: native CLI, extraction/repeat setup, **144 package ZIP/version checks**, Dashboard HTTP, and TerminalHost RPC/cleanup. | GitHub product version: `17.0.0-pr.21304.g97719af0`. Official product version: `17.0.0-preview.1.26554.21`. Detailed execution, artifact, failure, review, and limitation evidence: [validation report](https://github.com/microsoft/aspire/pull/21304#issuecomment-6648243559). Focused infrastructure command - **passed, 741/741**: ```bash TMPDIR=/tmp DOTNET_ROOT="$PWD/.dotnet" MSBUILDTERMINALLOGGER=false \ ./.dotnet/dotnet test \ --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj \ --no-launch-profile -- \ --filter-class '*.CreateLayoutTests' \ --filter-class '*.TrayBundleTests' \ --filter-class '*.AutoRerunTransientCiFailuresTests' \ --filter-class '*.Hex1bNativePublishingTests' \ --filter-class '*.BundleBuildWrapperTests' \ --filter-class 'Infrastructure.Tests.TestTriggerMap.*' \ --filter-not-trait 'quarantined=true' \ --filter-not-trait 'outerloop=true' ``` Incoming IDE-capability command - **passed, 3/3**: ```bash TMPDIR=/tmp DOTNET_ROOT="$PWD/.dotnet" MSBUILDTERMINALLOGGER=false \ ./.dotnet/dotnet test \ --project tests/Aspire.Hosting.Dotnet.Tests/Aspire.Hosting.Dotnet.Tests.csproj \ --no-launch-profile -- \ --filter-method '*.DebugSessionWithoutProjectCapabilityCoordinatesBuildForProcessLaunches' \ --filter-method '*.ExternalBuildDebugSessionCreatesCoordinatedBuild' \ --filter-not-trait 'quarantined=true' \ --filter-not-trait 'outerloop=true' ``` ### Call-outs - The standalone harness's `SkipNativeBuild=true ./build.sh --build --pack -c Release` failed because `AddProject<TProject>` is obsolete in the playground AppHost. A targeted AppHost build at merged base `87ef7df` reproduced the same `AppHost.cs(11,15): error CS0618` on macOS ARM64 with the pinned SDK. Relevant source/build/SDK inputs remain identical at target `100acc9` and this head. This specific compiler failure predates the PR, but the standalone workflow remains failed. The baseline was not a full-solution or Ubuntu full-workflow reproduction; the fork-only harness did not validate Azure deployment. - The broader local `DotnetProjectBuildCoordinatorTests` class run was stopped after repeated build-resource timeouts and is not passed. Its cause is not established. Separate current CI Hosting.Dotnet runs passed on Linux (477 passed, 14 skipped) and Windows (475 passed, 7 skipped). - A bounded independent Claude Sonnet 5.5 review found no issues in the migrated retry matchers; Max was requested, but execution effort is not exposed. Current main's force-mode bypasses selective live retry classification; the rules are covered by behavioral tests. - Eight npm PGP sidecars were structurally checked, not independently cryptographically verified. Official Dashboard/TerminalHost runtime smokes passed for Linux x64, Windows x64, and macOS ARM64; four RID smokes were skipped. Structural checks do not establish cross-architecture execution or Windows ARM64 tray UI. - Official SDL ran in no-break mode. Component Governance emitted 15- and 19-alert summaries across jobs, not distinct-alert totals, and some jobs did not wait for queued new-component processing. Agent-image patch, SBoM Dockerfile-recognition/Maven, and pinned ILCompiler NU1903 warnings remain. - Automatic-main `PostBuildSign=true`, main-only SDL enforcement, source indexing, and production release promotion/publication are not established by this manual personal-branch run. ### Security considerations This changes signing orchestration. NuGet-container signatures and native executable signatures are separate contracts. Official signing and final Dashboard-package provenance were checked, but the successful build is not a security clearance or a completed comprehensive CI-confidence verdict. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · 9b8d7c09 · 2026-11-07
- 1.3ETVci: enforce actionlint for handwritten workflows (#20610) ## Description **Handwritten GitHub Actions workflow errors can currently merge without a blocking schema and expression check.** ### What the Actionlint gate does This adds Actionlint v1.7.12 directly to the main CI workflow. The job: - Runs on `ubuntu-latest` on every normal CI invocation, not only when workflow files change. - Lints all 59 handwritten top-level workflow files under `.github/workflows` through `lint-handwritten-workflows.sh`, which both CI and the updater call so they always lint the same file set. The script fails if no files match. - Excludes the nine generated `*.lock.yml` and agentics-maintenance workflows, which remain owned by `validate-agentic-workflows.yml`. - Validates referenced local action metadata while checking the consuming workflows. - Disables ShellCheck and pyflakes so this first gate is limited to core GitHub Actions schema, expression, event, input/output, dependency, and runner-label validation. - Retries transient GitHub release-asset failures before verifying the repository-pinned archive checksum. - Runs independently of `prepare_for_ci`, so `skip_workflow` can still avoid expensive build/test work but cannot hide an Actionlint failure. - Participates in `Final Results` and the red-main `CI_GREEN` contract. The installation pattern follows [`dotnet/skills`](https://github.com/dotnet/skills/blob/44ea5f1ffca45206f66df7730327a920b20d645c/.github/workflows/actionlint.yml): download a versioned upstream release archive and verify a checksum pinned in the repository before extraction. Actionlint's [v1.7.12 usage documentation](https://github.com/rhysd/actionlint/blob/v1.7.12/docs/usage.md#use-actionlint-on-github-actions) explicitly recommends preparing the executable with its download script for GitHub Actions. This uses the same direct upstream-release model while additionally pinning the expected archive bytes in this repository. ### Failures found in the current baseline Running Actionlint v1.7.12 against the intended handwritten workflow set on `origin/main` reproduced these failures: ```text .github/workflows/specialized-test-runner.yml:25:18: input "enablePlaywrightInstall" of workflow_call event has the default value "false", but it is also required. if an input is marked as required, its default value will never be used [events] .github/workflows/specialized-test-runner.yml:111:28: property "generate_tests_matrix" is not defined in object type {check_cli_archive: ...; check_nugets: ...; generate_tests_matrix_raw: ...; inject_properties: ...} [expression] .github/workflows/deployment-tests.yml:73:15: could not parse action metadata in ".github/actions/enumerate-tests": line 4: unexpected key "type" for definition of input "buildArgs" [action] .github/workflows/deployment-tests.yml:111:14: label "8-core-ubuntu-latest" is unknown. if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label] ``` The runner-label failure was also reported for other existing workflows that use the same repository-specific runner. The `specialized-test-runner.yml` fixes are behavior-neutral: - The removed `Check if any test requires GitHub token` step read `steps.generate_tests_matrix.outputs.runsheet`. That step id does not exist (the real one is `generate_tests_matrix_raw`), so it always evaluated to `false`. - Its `requiresGitHubToken` job output had no consumers. - Per-test tokens are unaffected: `run-tests.yml` reads each matrix entry's own `requiresGitHubToken` property. - Both callers (`tests-outerloop.yml`, `tests-quarantine.yml`) pass `enablePlaywrightInstall` explicitly, so the dropped `default` was never used. ### Fixes for the baseline failures | Failure | Fix | |---|---| | `enumerate-tests/action.yml` declared `type: string` on a composite-action input. Action metadata inputs are strings and do not support a `type` field. | Remove the unsupported field. This does not change the input's runtime value or behavior. | | `enablePlaywrightInstall` was both required and given `default: false`. A required caller must always provide the value, so the default was unreachable. | Remove the default and retain the explicit required contract. Both callers already pass `true`. | | `check_github_token` referenced nonexistent `steps.generate_tests_matrix`, queried the wrong canonical-matrix path, and exposed an output that no downstream job consumed. | Remove the dead aggregate step and output. Per-test token behavior remains unchanged: the matrix passes `properties` to `run-tests.yml`, which still sets `GH_TOKEN` when that test's `requiresGitHubToken` or `requiresCliArchive` property is true. | | Existing workflows use the repository-specific `8-core-ubuntu-latest` runner label, which Actionlint cannot discover. | Register the label in `.github/actionlint.yaml`. Actionlint itself still runs on `ubuntu-latest`; this configuration only teaches the parser that the existing label is valid. | The two existing Infrastructure.Tests contracts for `Final Results` and red-main tracking are updated to include Actionlint. A newly added test that only repeated the Actionlint job condition was removed. ### Updating Actionlint The version and Linux AMD64 archive SHA-256 live in `.github/actionlint-version.json`. CI reads them with `jq` and validates the version format before downloading. The pin lives outside `.github/workflows`, so a bot PR only needs Contents:write. The Aspire bot app does not have workflow-write access. `update-actionlint.yml` runs weekly on a schedule. Manual `workflow_dispatch` defaults to `mode=validate`, which runs only `check` and is safe from a fork. `mode=propose` runs `update` only from the upstream default branch. Scheduled and propose runs share a concurrency group: - **`check` job (no secrets):** reads the latest published release from the GitHub API. - Exits as a no-op when the pin is current. - Fails on a downgrade, a malformed tag, a draft or prerelease, a missing or duplicate `linux_amd64` asset, an unexpected download URL, or a non-`sha256:` digest. - Downloads the archive, verifies its bytes against the API digest, then runs the candidate through the same `lint-handwritten-workflows.sh` as CI. - **`update` job:** rewrites the pin and opens a draft PR through `./.github/actions/create-pull-request` with an Aspire bot token scoped to `contents` and `pull-requests` write. A `create-issue-on-failure` job files or updates one deduplicated `automation-broken` issue when any step of a scheduled run fails. It reuses the shared `report-pipeline-failure.js` reporter from `deployment-tests.yml` and `tests-daily-smoke.yml`. The scheduled-workflow watchdog lists the updater as a `selfReports` backstop, so it only covers `startup_failure` and `timed_out` runs and never double-files. The shared reporter's issue title is now `Scheduled run failing: <name>` instead of `Nightly run failing: <name>`, because it now also serves a weekly workflow. This also changes the titles of new deployment E2E and daily smoke failure issues. Dedup keys off the hidden per-workflow marker, so already-open issues are still found. `.github/actionlint-version.json` routes to Infrastructure.Tests. ### Security considerations Pinning a third-party GitHub Action to a commit SHA pins the wrapper source, but does not by itself pin the Actionlint binary that the wrapper downloads. This workflow verifies the expected SHA-256 before extracting or executing the archive, so replaced or substituted release bytes fail closed. It also avoids introducing another third-party Action and the corresponding repository/enterprise Action allow-list coordination. The pinned checksum was verified against the upstream v1.7.12 checksum manifest and GitHub release asset digest. The updater's API digest comes from the same upstream release, so it is not an independent trust anchor. A reviewer still approves each bump, and the committed hash makes CI detect any later substitution of the archive. The local `create-pull-request` action reference carries a `zizmor: ignore[self-repository]` because Actionlint v1.7.12 rejects zizmor's preferred `$/` syntax. With that, zizmor 1.30.1 reports no findings for `update-actionlint.yml`, and every changed existing workflow or action has the same or fewer findings than on `main`. **Validation** - `./restore.sh` — passed. - `bash .github/workflows/lint-handwritten-workflows.sh` — passed for all 59 handwritten workflows with Actionlint v1.7.12. - `actionlint -shellcheck= -pyflakes=` on every changed workflow — passed. - `uvx zizmor@1.30.1 --offline` on every changed workflow and action, compared per file with `main` — no findings in `update-actionlint.yml`; `ci.yml` and `enumerate-tests/action.yml` unchanged; `specialized-test-runner.yml` has one fewer finding. - `curl --fail --location --retry 3 --retry-all-errors ...` followed by pinned SHA-256 verification — passed for the upstream Linux AMD64 archive. - Upstream `actionlint_1.7.12_linux_amd64.tar.gz` checksum verification — passed. - Actionlint v1.7.12 upstream usage and installation documentation — verified that executable download is the recommended GitHub Actions/shell-script installation model. - `dotnet/skills` workflow at `44ea5f1ffca45206f66df7730327a920b20d645c` — verified the same versioned-archive and repository-pinned-checksum pattern. - `dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-class "*.UpdateActionlintTests" --filter-class "*.LintHandwrittenWorkflowsScriptTests" --filter-class "*.ExtensionWorkflowTests" --filter-class "*.MonitorScheduledWorkflows*" --filter-class "*.ReportPipelineFailure*" --filter-class "*.TestTriggerMapTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"` — passed, 228 tests (the reporter wording change re-ran `ReportPipelineFailure*`, `MonitorScheduledWorkflows*` and `UpdateActionlintTests`: 83/83). - PR-triggered `Outerloop Tests` and `Quarantined Tests` runs, which exercise `specialized-test-runner.yml` — passed. - `RUNNER_TEMP=<tmp> GITHUB_OUTPUT=<tmp>/out node .github/workflows/update-actionlint.js check` against the live API — passed: `updated=false`, `previous-version=1.7.12`. - Removing the updater's digest verification makes the harness accept a mismatched archive. `CheckFailsWhenDownloadDoesNotMatchDigest` covers that regression. - Removing the `*.lock.yml` exclusion from `lint-handwritten-workflows.sh` fails two `LintHandwrittenWorkflowsScriptTests` cases. - `dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-method "*.EveryLocalActionUsedByAWorkflowIsAccountedFor" --filter-method "*.EnumerateTestsActionSelectsManagedTestProjectsButNotNonDotnetJobs" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"` — passed, 2 tests. - End-to-end run of `update-actionlint.yml` in a fork. The validation-only branch changed only the owner guard, the triggers, the PR base, and the token source (`github.token` instead of the bot app), and started from a pin of 1.7.11: - [Success path](https://github.com/radical/aspire/actions/runs/36950155703): found 1.7.12, verified `actionlint_1.7.12_linux_amd64.tar.gz` against the release digest, linted 59 handwritten workflows with the candidate, and opened a draft PR whose only change was the pin. - A second success run force-updated the same branch and logged `Pull request #119 already exists`; no duplicate PR was created. - [Failure path](https://github.com/radical/aspire/actions/runs/36950224239): app-token minting failed because the fork has no bot secrets, and `create-issue-on-failure` filed one `Scheduled run failing: Update actionlint` issue labeled `automation-broken` and `area-engineering-systems`. A second failure run commented on that issue instead of filing a new one. - [`monitor-scheduled-workflows.yml` dry run](https://github.com/radical/aspire/actions/runs/36950367697) in a fork, with the PR's config checked out: passed and evaluated `update-actionlint.yml` (noop, no scheduled runs yet). Upstream dispatch cannot test this, because the monitor checks out `main`. - Not covered by the fork runs: whether the Aspire bot app has `contents` and `pull-requests` write on `microsoft/aspire`. The first scheduled run after merge will show that; if minting or PR creation fails, the failure-issue path opens an `automation-broken` issue. Refs #18036 ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [x] Yes - [ ] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [x] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [x] No - [ ] No --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · d2b0c75d · 2026-10-07
- 1.1ETVtest(dashboard): run Playwright tests as non-blocking outerloop (#20642) ## Description Dashboard Playwright tests run in a browser-driven, timing-sensitive environment. This PR separates them from the regular Dashboard test suite and runs them in the outerloop lane. Recognized test failures remain visible in results without failing the scheduled run, while build, setup, runner, malformed-result, and unexpected empty-run failures remain blocking. - Moves the browser-driven Dashboard tests into `Aspire.Dashboard.Playwright.Tests` and selects the project for outerloop runs. - Enables `NonBlockingTestFailures` for this project and validates Microsoft.Testing.Platform exit codes and TRX files before making recognized test outcomes non-blocking. - Filters marked non-gating test artifacts before scheduled outerloop failure classification so they are not included in gating-failure issues. - Keeps Native AOT Dashboard validation blocking. - Removes an obsolete shared-source include so the extracted Playwright project builds. A separate project isolates the browser suite without applying `continue-on-error` to the entire job. No product dependencies are introduced. ### Validation - `Aspire.Dashboard.Playwright.Tests` project build: passed with 0 warnings and 0 errors. - Focused Infrastructure.Tests suite: 201 passed. Addresses #20640 Addresses #20641 Addresses #20644 ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [x] Yes - [ ] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [ ] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [ ] No - [x] No --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: cd22c3aa-82c7-4428-9ca4-ca9af142519c Copilot-Session: da2fb89c-73ca-4d5b-84a3-4745c3731257github.com-microsoft-aspire · 9cc6730e · 2026-10-13
- 0.8ETVFix remaining Outerloop failures in DCP, CLI, and Dashboard tests (#20466) Four repeat failures remained in the Outerloop workflow: ```text The SDK 'Aspire.AppHost.Sdk/14.0.0-ci' specified could not be found. ``` ```text Watch task over Kubernetes ContainerExec resources terminated unexpectedly. Polly.Timeout.TimeoutRejectedException: The operation didn't complete within the allowed timeout of '00:01:00'. ``` ```text Expected rows not found: apiservice, webfrontend, cache ``` ```text ScrollButtons_SmoothScrollHidesImmediately_AndReachesNewBottom timed out after reaching the limit of 30000ms. ``` **Root causes** LocalArchive test installs must preserve the package build identity. PR packages use a `pr-N` hive that matches the CLI's baked channel. Non-PR CI packages such as `14.0.0-ci` use the local hive, but their CLI archive retains a baked `daily` identity. User configuration does not override the environment, install-sidecar, or assembly identity, so generated AppHosts selected daily feeds and could not resolve the CI SDK from the local hive. DCP watch connections can stall while waiting for their initial HTTP response. Each connection attempt needs the API timeout so a stalled request is canceled and retried, while an established stream must remain active until its longer periodic restart. Factory or enumeration cancellation unrelated to that periodic restart must propagate instead of being silently retried. The template tests matched `.main-grid .resource-row`. Fluent data-grid copies the configured row class onto optimized plain cells, so the locator returned both `tr` rows and `td` cells. A matched cell has no descendant grid cells, causing resource extraction to fail even though the dashboard displayed healthy resources. The smooth-scroll test required observing an intermediate native animation frame. Windows headless Chromium can skip that frame under load even though the scroll request and `scrollend` behavior are correct. **Fix** LocalArchive installs now let the installer derive `pr-N` or `local` from the package version. Non-PR archives explicitly override `ASPIRE_CLI_CHANNEL`, `ASPIRE_CLI_VERSION`, and `ASPIRE_CLI_PACKAGES` so generated projects consume the local package directory. PR archives retain their automatically selected `pr-N` identity. Focused tests cover both package identities, both install command paths, and the exact local identity override. DCP watches now apply the API timeout to each connection attempt and retry timeout failures until the periodic restart token is canceled. Once connected, the watch stream remains governed by the periodic restart token. `PeriodicRestartAsyncEnumerable` recreates factories canceled by that restart token, while cancellation from any other source propagates without retrying. Focused regressions require a second connection attempt after a deliberately stalled watch and cover both periodic-enumerable overloads. Template resource checks now restrict the locator to `.main-grid tr.resource-row` and keep grid-cell lookups scoped to each matched row. The Playwright test captures the requested smooth-scroll destination and dispatches `scrollend` explicitly after growing the content, preserving the product contract without depending on compositor timing. **Validation** - `CliInstallStrategyTests`: 61 passed - `Aspire.Deployment.EndToEnd.Tests` build: succeeded - `Aspire.Templates.Tests` build: succeeded - `KubernetesServiceTests` and `PeriodicRestartAsyncEnumerableTests`: 14 passed - Stalled-watch retry regression: 10/10 repeated runs passed - Independent cancellation regressions: 20/20 repeated runs passed - `DashboardInteractionsTests`: 13 passed - Smooth-scroll regression: 10/10 repeated runs passed **Surprises** The intermittent terminal WebSocket failures are intentionally unchanged. They moved between operating systems and test cases across reruns, and no reproducible root cause was established. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · f48a7b12 · 2026-09-25
- 0.7ETVfix(ci): tighten PR test selection to avoid unnecessary full runs (#20322) ## Description This PR tightens PR test selection for inputs that were unnecessarily selecting the full regular PR-CI matrix. The audit used `select-tests-selection-Linux` artifacts so fork PRs and PRs without selector comments were included. The rule of thumb stays conservative: if an input can affect broad build/test behavior, or if the consumer boundary is unclear, it still selects `ALL`. ### What changed | Class | New behavior | |---|---| | Artifact producer workflows | `.github/workflows/build-packages.yml` selects NuGet artifact consumers; `build-cli-native-archives.yml` selects native CLI archive consumers. Native dashboard validation is only on the CLI-archive route. | | Dev/AzDO/scheduled-only inputs | `.config/dotnet-tools.json`, `eng/Version.Details.xml`, and scheduled/deployment-only local actions are skipped by the regular GitHub PR-CI prefilter. | | `eng/common` | All `eng/common/**` changes select `ALL` because this is shared Arcade/build infrastructure. | | Regular PR-CI local actions | `enumerate-tests` selects all managed .NET test projects only; `check-changed-files` and `select-tests` select `Infrastructure.Tests`; `setup-deno` selects Hosting.JavaScript and extension E2E; macOS keychain setup remains `ALL`. | | Broad/safety-sensitive inputs | `Aspire.slnx`, `.gitattributes`, shared MSBuild/build inputs, shared test fixtures, and matrix/runner infrastructure still select `ALL`. | ### Safety checks added - Artifact-consuming test projects and selector-gated jobs are derived from the evaluated graph and `tests.yml` wiring. - `DOTNET_TESTS` is pinned to managed test projects only and does not trigger non-.NET derived jobs. - Regular PR-CI local actions are tested against their explicit consumer routes. - `eng/common/**`, `.gitattributes`, and `Aspire.slnx` full-matrix behavior is pinned. - New skip-entirely paths have focused prefilter assertions. ### Notes for reviewers - `src/Shared/Utf8JsonWriterExtensions.cs` was identified as an orphan shared-source file that can hit the run-all fallback when touched. This PR does not remove or enforce orphan shared files; that should be investigated separately if needed. - The catch-all `ALL` rules are split by rationale so future changes can narrow one class without re-auditing unrelated inputs. ### Verification ```bash dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-namespace "*.TestTriggerMap" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" ``` Result: `273/273` passed. Fixes # (issue) ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [x] Yes - [ ] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [ ] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [ ] No - [x] No --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · 5cc2f854 · 2026-09-24
- 0.7ETVtest(ci): enforce selective test trigger dependencies (#19926) * test(ci): enforce selective test trigger dependencies Exercise SelectTests dependency boundaries through computed selections and explanations. Add regression coverage for CLI E2E, polyglot, TypeScript API compatibility, and test-support project boundaries without changing the canonical trigger map. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * Clarify selector PR comments Keep PR comments focused on PR-gated test projects and jobs while retaining the computed cause rationale for explaining selections. Advisory-only targets remain available in the step summary and explain output without adding noise to the PR discussion. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * Clarify affected-project selector contract Document that affected_project_rules apply only to production/non-test projects, including the exclusion of non-matrix test fixtures and support projects. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * Fix production-project selector variable Use the production-only affected project set when applying affected_project_rules after the stacked rebase. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * Complete stacked selector test setup Pass the complete test-project universe to all real-map acceptance selectors so non-matrix support projects remain excluded from production rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * Complete remaining selector test setup Pass the full test-project universe to the final real-map acceptance selector. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * docs(ci): align selector design with PR comment output Update the selector design document and nearby comments so they match the current contract: affected_project_rules are driven only by production/non-test projects, and PR comments intentionally show PR-gated selections while the step summary, --explain output, and JSON artifact keep the advisory details. This addresses the remaining Copilot feedback on the selector contract without changing selector behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * test(ci): cover non-matrix test project filtering Add a Layer 1 integration test that routes through Selection.Run with a non-runnable project under tests/ and a broad affected_project_rules glob. The test would fail if tests/ support projects were omitted from the all-test-project set and allowed to drive production-project job rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * docs(ci): align trigger-map project-rule comment Update the trigger-map maintenance comment and checklist wording to match the selector contract: affected_project_rules are driven by production/non-test projects, while projects under tests/ are handled by Layer 1 test selection or explicit test rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78 * docs(ci): align trigger-map review guidance Affected project rules now evaluate only production/non-test projects, but the repository review guidance still directed every non-matrix project consumer to those rules. That could produce inert mappings for projects under tests. Update the guidance to use affected project rules for production consumers and path or derived-target rules for non-graph test inputs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(ci): classify referenced test support projects Layer 1 includes ProjectReference nodes that are not listed in Aspire.slnx. Test-project classification only used solution entries, so a referenced test-support project could be treated as production and trigger broad affected-project rules. Carry test-project identity from the evaluated graph into the selector and cover a support project referenced by a solution test but omitted from the solution. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * docs(ci): clarify affected test project classification Describe the graph-derived set as affected test projects included in the MSBuild graph but potentially omitted from Aspire.slnx. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * docs(ci): name affected test project contract precisely Rename the selector parameter and field to reflect that Layer 1 supplies only affected test project names, keeping the constructor contract aligned with its production caller. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78github.com-microsoft-aspire · 13f0541f · 2026-09-14
- 0.6ETVci: Run extension and CLI E2E only for actual consumers (#19882) * fix(ci): route heavy E2E jobs to actual consumers CLI test-only changes and unrelated Hosting projects selected the class-sharded extension and CLI E2E jobs, while runtime-loaded packages, templates, and copied fixtures were invisible to the ProjectGraph. Replace broad project-family routing with audited consumers. Keep dedicated package directories resilient, split CLI archives by consumed RID, route loose runtime inputs, and align affected-project terminology with the selector's non-matrix behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: faf6b9eb-1978-4fbc-aaa5-c880a2fb1fc4 * test(ci): cover heavy E2E routing boundaries Add focused real-map coverage for the heavy-job boundaries instead of duplicating complete consumer lists as test oracles. The regressions fail if CLI test-only or unrelated Hosting changes select heavy E2E work, if representative runtime/package consumers stop selecting it, or if installer scripts regain the extension E2E edge. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: faf6b9eb-1978-4fbc-aaa5-c880a2fb1fc4 * docs(ci): codify selective-routing maintenance Document how runtime-only package, template, fixture, and scheduling dependencies must be audited when the ProjectGraph cannot represent them. Record the resilience policy for package directories, concise reason fields, non-matrix affected-project semantics, and focused regression coverage so future routing changes remain safe without mirrored lists. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: faf6b9eb-1978-4fbc-aaa5-c880a2fb1fc4 * test(ci): derive heavy E2E archive routing from workflows RID-specific CLI and extension E2E routing was protected by expected target lists duplicated in selector tests. Those snapshots catch routing changes but cannot detect workflow consumers changing independently. Derive expected archive inputs from the workflow dependency graph and the extension E2E matrix. Use synthetic future package and template paths to enforce broad-directory resilience without enumerating the current RID and template inventories. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: faf6b9eb-1978-4fbc-aaa5-c880a2fb1fc4 * test(ci): identify CLI archive producers by workflow Archive routing parity identified producers by the build_cli_archive_ job-name prefix. A renamed producer could therefore escape the parity check while the tests continued to pass. Inspect every consumer dependency and classify archive producers by the reusable workflow they invoke instead, keeping parity independent of job naming. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: faf6b9eb-1978-4fbc-aaa5-c880a2fb1fc4 * fix(ci): run extension E2E for Blazor changes Extension browser-debugger tests generate an AppHost that references Aspire.Hosting.Blazor. The selective trigger map omitted that project, so Blazor-only runtime asset changes could skip extension E2E. Add the project and matching path fallback to the extension E2E consumer list, and cover the no-Layer-1 path selection in the focused real-map regression. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: faf6b9eb-1978-4fbc-aaa5-c880a2fb1fc4github.com-microsoft-aspire · 2206cd76 · 2026-09-14
- 0.5ETVAdd deterministic CI validation for agentic workflows (#20458) ## What was missing **Agentic-only changes could bypass deterministic compilation, generated-file drift checks, lint, and repository contracts.** Stale executable workflows, edited action-pin output, or shell errors could reach main without a blocking validation job. The main CI skip gate intentionally excludes agentic Markdown sources and generated locks, but those files lacked a dedicated validation path. Compile-time lint diagnostics alone also do not reliably fail the pinned compiler. ## The fix **Add path-triggered `Validate Agentic Workflows` validation with four blocking stages:** 1. **Compile:** use the pinned gh-aw release to validate all sources, purge orphaned generated workflows, and refresh action pins. 2. **Check drift:** reject modified, deleted, or untracked generated locks, maintenance workflows, and action-pin output. 3. **Lint:** run explicit `gh aw lint --shellcheck`; the pinned gh-aw toolchain owns actionlint and its compatibility handling. 4. **Test:** run the **17 `Category=AgenticWorkflow` behavioral contracts**, excluding quarantined and outerloop tests. **Trait-scoped contracts keep the dedicated job relevant and readable.** They cover generated-workflow consistency, trigger/drift behavior, and shared process execution without running unrelated intentional failure transcripts from all of `Infrastructure.Tests`. Class-level opt-in avoids a brittle method-name list while retaining semantic coverage. Selector-routing coverage remains in normal main CI when the map or lint policy changes. ## Scope call-outs **Reproducibility requires source, compiler, and generated output to agree.** Bootstrap and validation use **gh-aw v0.89.15**; Markdown action references match the intended action versions already merged on main. All eight locks, the maintenance workflow, and the action-pin cache are regenerated with that compiler. No action SHA is introduced beyond main's existing set. The compiler also emits runtime/tool and container updates, activation permissions for blocked-version reporting, and telemetry, execution-artifact, and AI-credit accounting changes. **These generated behaviors have not been validated end to end against remote services.** Two Markdown shell cleanups establish the all-lock lint baseline. A narrowly scoped exception remains for the compiler's omitted stale-check output in four locks; other compatibility handling stays with gh-aw. ## Validation **Local validation on macOS arm64 with the repository-local .NET 11 RC SDK:** - **17** agentic contracts, **160** separate selector tests, and **299** affected-workflow contracts passed, with no failures or skips. - Two independent pristine compilations produced **zero drift**, with all ten generated/cache artifacts byte-identical. - All **8** locks passed `gh aw lint --shellcheck`. **Current head: `8d6908bc33563dcd64f13db9f6f4a62105360e1c`.** - [Dedicated validation](https://github.com/microsoft/aspire/actions/runs/36181464978): **passed**. Full logs confirm zero drift, eight lint-clean workflows, exactly **17 passed / 0 failed / 0 skipped**, and no `SelectTests FAILED` transcripts. - [Main CI](https://github.com/microsoft/aspire/actions/runs/36181466187): **passed**, including Infrastructure.Tests, package builds, stabilization, and all six native CLI archive builds. Fixes #20446 ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [x] Yes - [ ] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [ ] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [ ] No - [x] No --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>github.com-microsoft-aspire · 9272b28a · 2026-09-25