Skip to content

Setup autosync workflow#4221

Open
cheenamalhotra wants to merge 7 commits into
mainfrom
dev/cheena/autosync
Open

Setup autosync workflow#4221
cheenamalhotra wants to merge 7 commits into
mainfrom
dev/cheena/autosync

Conversation

@cheenamalhotra
Copy link
Copy Markdown
Member

Description

Introduces new pipeline that should trigger daily to open a PR or update a previously opened PR with latest commits from github's main branch.

Auto-Sync Pipeline build: https://dev.azure.com/SqlClientDrivers/ADO.Net/_build/results?buildId=148903&view=results

An exmaple PR is here: dotnet-sqlclient#7339

cheenamalhotra and others added 2 commits April 21, 2026 23:23
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 22, 2026 06:38
@cheenamalhotra cheenamalhotra requested a review from a team as a code owner April 22, 2026 06:38
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Apr 22, 2026
@cheenamalhotra cheenamalhotra added this to the 7.1.0-preview1 milestone Apr 22, 2026
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.

Pull request overview

Adds an Azure DevOps scheduled “autosync” pipeline that mirrors dotnet/SqlClient GitHub commits into the internal ADO repo by force-updating a dedicated sync branch and creating/updating an active PR to internal/main.

Changes:

  • Introduces a new ADO pipeline (github-sync-pipeline.yml) scheduled to run daily and callable manually.
  • Adds a PowerShell sync script that fetches GitHub commits, force-pushes to an ADO sync branch, then creates/updates an ADO PR and posts an update thread.

Reviewed changes

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

File Description
eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Implements Git fetch/force-push and ADO REST API PR create/update + comment posting.
eng/pipelines/github-sync-pipeline.yml Defines the scheduled pipeline job that runs the sync script with System.AccessToken.

Comment thread eng/pipelines/github-sync-pipeline.yml
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/github-sync-pipeline.yml Outdated
Copilot AI review requested due to automatic review settings April 22, 2026 07:08
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.

Pull request overview

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

Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/github-sync-pipeline.yml
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Apr 22, 2026
@paulmedynski paulmedynski self-assigned this Apr 22, 2026
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/github-sync-pipeline.yml
@github-project-automation github-project-automation Bot moved this from In review to In progress in SqlClient Board Apr 22, 2026
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 22, 2026 20:09
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.

Pull request overview

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

Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.39%. Comparing base (8cd5dda) to head (625a0fe).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4221      +/-   ##
==========================================
- Coverage   65.99%   64.39%   -1.60%     
==========================================
  Files         276      271       -5     
  Lines       42951    65745   +22794     
==========================================
+ Hits        28344    42335   +13991     
- Misses      14607    23410    +8803     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 64.39% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1 Outdated
Comment thread eng/pipelines/github-sync-pipeline.yml
mdaigle
mdaigle previously approved these changes Apr 28, 2026
@cheenamalhotra cheenamalhotra added the Author attention needed PRs that require author to respond or make updates to PR. label May 8, 2026
Copilot AI review requested due to automatic review settings May 11, 2026 19:25
@cheenamalhotra cheenamalhotra moved this from In progress to In review in SqlClient Board May 11, 2026
@cheenamalhotra cheenamalhotra removed the Author attention needed PRs that require author to respond or make updates to PR. label May 11, 2026
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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread eng/pipelines/github-sync-pipeline.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 11, 2026 20:35
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.

Pull request overview

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

Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
Comment thread eng/pipelines/scripts/Sync-GitHubToAdo.ps1
@cheenamalhotra cheenamalhotra dismissed paulmedynski’s stale review May 12, 2026 19:29

Requesting review again

@paulmedynski paulmedynski enabled auto-merge (squash) May 13, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

6 participants