Skip to content

Align NuGet and Dependabot cooldowns - #1128

Open
DamianEdwards wants to merge 1 commit into
mainfrom
damianedwards-dependabot-nuget-cooldown
Open

DamianEdwards wants to merge 1 commit into
mainfrom
damianedwards-dependabot-nuget-cooldown

Conversation

@DamianEdwards

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: b9d11acb62ae0e253573f9a3adb9c95165ec6835

Dimension Assessment Rationale
Change confidence 7/10 ↑ Clean restore and build succeeded with the private feed and blocked nuget.org.
↑ A clean restore with the user-disabled nuget.org source succeeded with default retry settings.
↓ Dependabot's live behavior has not been verified; an enabled, unreachable nuget.org source exceeded a 15-minute restore timeout with default retries.

Align dependency updates with the seven-day availability delay of internal NuGet proxies while allowing developers to inherit their own package sources.

  • Set a seven-day Dependabot NuGet cooldown and a 168-hour minimum publish age for nuget.org; remove the repository-only source mapping so inherited feeds can participate.
  • Allow failed sources without turning the relevant NuGet warnings into errors, and document how to disable nuget.org by name when it is blocked locally. An enabled but unreachable source can still substantially delay restore.
  • Downgrade Scalar.AspNetCore to 3.2.0, which is available from the internal proxy.

Validation: Clean restore and build of eShop.Web.slnf succeeded using an empty packages directory with nuget.org unreachable and reduced retry count. A subsequent clean restore succeeded with default retries when nuget.org was disabled in user configuration. NuGet source and vulnerability-data warnings remain visible when the source is enabled but unreachable.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 21:59

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.

🟢 Approval recommended

No active review issues remain for the NuGet dependency-update and restore changes.

No open issues 🎉

What changed in this PR

Aligns dependency updates with internal NuGet proxies’ seven-day availability delay while allowing developers to inherit their own package sources.

Changes:

  • Adds a seven-day Dependabot cooldown and a matching minimum publish age for nuget.org.
  • Enables inherited feeds and tolerates failed sources across application, test, and solution restores while keeping relevant warnings visible.
  • Downgrades Scalar.AspNetCore to 3.2.0 for internal proxy availability.
File Description
tests/​Directory.Build.props Allows failed sources in the separate test-project property scope.
nuget.config Enables inherited feeds, removes repository source mapping, sets minimum package age, and documents disabling nuget.org locally.
Directory.Solution.props Allows failed sources during solution-level restore.
Directory.Packages.props Downgrades Scalar.AspNetCore to 3.2.0.
Directory.Build.props Allows failed sources and exempts relevant NuGet warnings from warnings-as-errors.
.github/​dependabot.yml Adds a seven-day cooldown for NuGet updates.

Review effort: Balanced

Comment thread Directory.Solution.props
<Project>
<PropertyGroup>
<!-- Solution restore runs outside the project-level Directory.Build.props scope. -->
<RestoreIgnoreFailedSources>true</RestoreIgnoreFailedSources>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is unfortunate. Is this the intended design here? Having to set it in 2 places?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let me verify

@eerhardt

eerhardt commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

I ran dotnet build .\eShop.Web.slnf from the repository root and got 25 warnings. All of them are NU1507 (one per project): nuget.config defines 2 package sources (dotnet9, azure-default) without package source mapping while central package management is enabled.

Build output
Restore succeeded with 25 warning(s) in 4.8s
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\eShop.AppHost.UnitTests\eShop.AppHost.UnitTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Ordering.Infrastructure\Ordering.Infrastructure.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Identity.API\Identity.API.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\OrderProcessor\OrderProcessor.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Catalog.API\Catalog.API.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\eShop.ServiceDefaults\eShop.ServiceDefaults.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Webhooks.API\Webhooks.API.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\WebhookClient\WebhookClient.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Basket.API\Basket.API.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\PaymentProcessor\PaymentProcessor.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\WebApp\WebApp.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Webhooks.FunctionalTests\Webhooks.FunctionalTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Basket.FunctionalTests\Basket.FunctionalTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Basket.UnitTests\Basket.UnitTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\EventBus\EventBus.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\WebAppComponents\WebAppComponents.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Ordering.Domain\Ordering.Domain.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\IntegrationEventLogEF\IntegrationEventLogEF.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\Ordering.API\Ordering.API.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Catalog.FunctionalTests\Catalog.FunctionalTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\eShop.AppHost\eShop.AppHost.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\src\EventBusRabbitMQ\EventBusRabbitMQ.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Ordering.UnitTests\Ordering.UnitTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Ordering.FunctionalTests\Ordering.FunctionalTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default
    D:\git\copilot-worktrees\dotnet_eShop\damianedwards-dependabot-nuget-cooldown\tests\Application.UnitTests\Application.UnitTests.csproj : warning NU1507: There are 2 package sources defined in your configuration. When using central package management, map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet9, azure-default

Each project's build step then repeats its same NU1507 warning.

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