Skip to content

Remove test/scenarios and scenario-builds CI#1448

Merged
stephentoub merged 1 commit into
mainfrom
demote-scenario-ci
May 27, 2026
Merged

Remove test/scenarios and scenario-builds CI#1448
stephentoub merged 1 commit into
mainfrom
demote-scenario-ci

Conversation

@patniko
Copy link
Copy Markdown
Contributor

@patniko patniko commented May 27, 2026

Summary

Remove the test/scenarios/ directory (414 files) and associated CI workflow + justfile tasks.

Rationale

The scenario builds only verify that example programs compile against the SDK. Investigation of the last 50 CI runs showed that every failure caught by scenario-builds.yml was already caught by the per-language SDK test workflows (dotnet-sdk-tests, go-sdk-tests, java-sdk-tests, etc.), making the scenarios redundant as CI checks.

The example code will be brought back as documentation instead.

Changes

  • Deleted test/scenarios/ — 414 example files across 8 categories and 5 languages
  • Deleted .github/workflows/scenario-builds.yml — the CI workflow that built them on every PR
  • Removed scenario-build, scenario-verify, and scenario-build-lang tasks from justfile
  • Cleaned up .gitignore entries for Rust scenario build artifacts

The scenario compile checks are redundant with the per-language SDK test
workflows (dotnet-sdk-tests, go-sdk-tests, java-sdk-tests, etc.) which
already build and test the SDK on every PR. The scenarios remain in the
repo as documentation/examples and can still be verified on-demand.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 27, 2026 03:47
@patniko patniko requested a review from a team as a code owner May 27, 2026 03:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@stephentoub stephentoub added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit 91d9410 May 27, 2026
32 checks passed
@stephentoub stephentoub deleted the demote-scenario-ci branch May 27, 2026 14:35
edburns added a commit that referenced this pull request May 27, 2026
The scenario-builds infrastructure was removed from main in PR #1448
because per-language SDK test workflows (java-sdk-tests, etc.) already
cover build/test verification. Remove the orphaned Java scenario files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edburns
Copy link
Copy Markdown
Collaborator

edburns commented May 27, 2026

Hello @patniko I'll need to update WIP #1441 accordingly.

edburns added a commit that referenced this pull request May 27, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
edburns added a commit to edburns/copilot-sdk that referenced this pull request May 27, 2026
* Preserve 80-java-monorepo-add-01-remove-before-merge directory

* Complete Phase 03

* Start iterating Phase 05

* WIP: Phase 05

* WIP Phase 05: github#1423

* Add Java scenarios: Phase 1 (size S, #1-github#16)

Add 16 Java scenario implementations covering:
- modes: default, minimal
- prompts: system-message, reasoning-effort
- sessions: streaming, infinite-sessions
- tools: no-tools, tool-filtering
- transport: stdio, tcp
- callbacks: user-input
- auth: byok-openai, byok-azure, byok-anthropic
- bundling: fully-bundled, app-direct-server

All scenarios compile successfully with mvn compile.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add Java scenarios: Phase 2 (size M, github#17-github#26)

Add 10 Java scenario implementations covering:
- callbacks: hooks (pre/post tool use, session start/end), permissions
- prompts: attachments
- sessions: concurrent-sessions, session-resume
- tools: custom-agents, tool-overrides, mcp-servers, skills
- auth: gh-app (OAuth device flow)

All scenarios compile successfully with mvn compile.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Update Phase 05

* Ready to have agent do docs-validation.yml

* Use correct day

* Phase 05 Update docs-validation.yml to include Java code snippets.

* Prepare for phase 05 review

* Prepare for phase 05 review: remove prompts.

* Fix Java scenarios: update imports after package rename (com.github.copilot.sdk -> com.github.copilot)

* Abide by @patniko github#1448 and remove scenario-builds.yml.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address review feedback: idempotent Java validation, path filter, README links

- Copy .java files instead of moving them so validation is idempotent
- Add java/pom.xml to docs-validation.yml path trigger
- Update README Java install links to ./java/README.md anchors

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Change Java distribution from 'temurin' to 'microsoft'

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants