Skip to content

Conversation

@salmanmkc
Copy link
Contributor

@salmanmkc salmanmkc commented Sep 9, 2025

Update labels for dotnet dependency management

## .NET Core/SDK Automated Upgrade Management
- Weekly automated checking for new .NET Core/SDK releases
- Intelligent global.json and project file updates with compatibility validation
- Multi-version support with build verification across all .NET projects

## Key Features
- ✅ **Multi-source monitoring**: Official releases API + package manager updates
- ✅ **Smart compatibility**: Preserves project compatibility while upgrading dependencies
- ✅ **Build validation**: Full solution build verification after .NET updates
- ✅ **Version pinning**: Updates global.json SDK version with compatibility checks
- ✅ **Package updates**: NuGet package upgrades with conflict resolution

## Update Strategy
- **Weekly schedule**: Mondays at 8 AM for consistent .NET maintenance
- **Manual triggers**: On-demand updates for critical security releases
- **Graduated response**: Different handling for LTS vs current releases
- **Rollback safety**: Build failures prevent PR creation

## Integration Benefits
- **Release compatibility**: Ensures runner builds with latest .NET versions
- **Security updates**: Automated security patch integration
- **Build stability**: Validates compatibility before suggesting changes
- **Development workflow**: Reduces manual .NET maintenance overhead

## Dependencies
- **Requires**: Labels from actions#4024 (dependency, needs-manual-review)
- **Integrates with**: Overall monitoring from actions#4025
- **Complements**: NPM security management from actions#4027

This workflow ensures .NET dependencies stay current and secure while maintaining build compatibility for the monthly runner release cycle.
Copilot AI review requested due to automatic review settings September 9, 2025 12:58
@salmanmkc salmanmkc requested a review from a team as a code owner September 9, 2025 12:58
Copy link
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

This PR introduces an automated .NET SDK dependency management workflow to streamline weekly .NET Core/SDK updates with intelligent compatibility validation and build verification.

Key Changes:

  • Automated weekly .NET SDK updates via GitHub Actions workflow
  • Smart version detection and compatibility checking
  • Automated updates to global.json, devcontainer configuration, and development scripts
  • Pull request creation with proper labeling for dependency tracking

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create -B main -H feature/dotnetsdk-upgrade/${{ needs.dotnet-update.outputs.DOTNET_LATEST_MAJOR_MINOR_PATCH_VERSION }} --title "Update dotnet sdk to latest version @${{ needs.dotnet-update.outputs.DOTNET_LATEST_MAJOR_MINOR_PATCH_VERSION }}" --label "dependency" --body "
Copy link

Copilot AI Sep 9, 2025

Choose a reason for hiding this comment

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

According to the custom coding guidelines, changes should be accompanied by non-trivial tests. This workflow lacks test coverage to verify the .NET SDK upgrade functionality works correctly.

Copilot generated this review using guidance from repository custom instructions.
## Schedule Optimization
- **Updated time**: Monday 12 AM (midnight) → 8 AM UTC
- **Reasoning**: Independent of Node.js/NPM, runs in parallel with other updates
- **Position**: Third in dependency update sequence

## Optimal Monday Schedule (Option A)
- 6 AM UTC: Node.js updates (foundation)
- 7 AM UTC: NPM security audit (depends on Node.js)
- **8 AM UTC: .NET SDK updates** ← Updated (independent)
- 9 AM UTC: Docker/Buildx updates (independent)
- 10 AM UTC: Dependency monitoring (summary)

This timing allows .NET updates to run independently while maintaining the coordinated Monday morning dependency management approach.
@salmanmkc salmanmkc merged commit 720f16a into actions:main Sep 9, 2025
9 checks passed
fmartinez255 pushed a commit to TiVo/actions-runner that referenced this pull request Oct 14, 2025
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.

2 participants