Skip to content

Add Github Copilot setup steps for SQL Server#37496

Merged
roji merged 3 commits into
dotnet:mainfrom
roji:SqlServerOnAgent
Jan 13, 2026
Merged

Add Github Copilot setup steps for SQL Server#37496
roji merged 3 commits into
dotnet:mainfrom
roji:SqlServerOnAgent

Conversation

@roji

@roji roji commented Jan 13, 2026

Copy link
Copy Markdown
Member

This adds a first version of copilot-setup-steps.yml to the repo, to properly set up the environment in which Github Copilot agent sessions execute; it notably starts up a SQL Server 2025 inside docker. This first PR only inserts a first version, I'll be iterating over this in subsequent PRs (once the workflow is checked into main, it's easier to iterate).

See https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment

@roji
roji force-pushed the SqlServerOnAgent branch from b26f789 to d9e613e Compare January 13, 2026 12:36
@roji
roji marked this pull request as ready for review January 13, 2026 12:39
@roji
roji requested a review from a team as a code owner January 13, 2026 12:39
Copilot AI review requested due to automatic review settings January 13, 2026 12:39
@SamMonoRT

Copy link
Copy Markdown
Member

What is the impact on existing CI infrastructure - as in longer run times, or is this purely only when using GH Copilot?

@roji

roji commented Jan 13, 2026

Copy link
Copy Markdown
Member Author

Purely only when using GH Copilot.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a GitHub Actions workflow file (copilot-setup-steps.yml) to configure the environment for GitHub Copilot agent sessions, including starting a SQL Server 2025 instance in Docker. The PR also reorganizes the solution file to better organize GitHub-related files into appropriate folders.

Changes:

  • Added .github/workflows/copilot-setup-steps.yml workflow to start SQL Server 2025 in Docker and configure the environment for Copilot agent sessions
  • Reorganized EFCore.slnx to group GitHub-related files into .github/ and .github/workflows/ folders

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/copilot-setup-steps.yml New workflow that starts SQL Server 2025 via Docker service, runs restore script, and exports connection string environment variable
EFCore.slnx Reorganized solution structure to group GitHub workflow files into dedicated folders

Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
@SamMonoRT

Copy link
Copy Markdown
Member

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 13, 2026 12:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@roji

roji commented Jan 13, 2026

Copy link
Copy Markdown
Member Author

Do we need any changes in https://github.com/dotnet/efcore/blob/main/.github/copilot-instructions.md ?

Yeah, we most probably will - but I want to iterate this in a separate PR (first want to see this actually working etc.).

@roji
roji merged commit c03c7ea into dotnet:main Jan 13, 2026
2 of 8 checks passed
@roji
roji deleted the SqlServerOnAgent branch January 13, 2026 12:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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.

3 participants