Skip to content

ci(renovate): block NuGet packages with commercial license fees#50469

Open
chouetz wants to merge 2 commits intomainfrom
nschweitzer/renovate-license-blocklist
Open

ci(renovate): block NuGet packages with commercial license fees#50469
chouetz wants to merge 2 commits intomainfrom
nschweitzer/renovate-license-blocklist

Conversation

@chouetz
Copy link
Copy Markdown
Member

@chouetz chouetz commented May 7, 2026

What does this PR do?

Adds allowedVersions constraints in renovate.json to prevent Renovate from proposing updates to NuGet packages that have introduced commercial license fees:

  • FluentAssertions: capped at <8.0.0 (v8+ requires a paid license for commercial use)
  • WixToolset.Dtf.WindowsInstaller: capped at <6.0.0 (v6+ requires an Open Source Maintenance Fee for revenue-generating users)

Motivation

Two Renovate PRs were declined because the proposed versions crossed a license boundary:

Using allowedVersions (rather than enabled: false) keeps patch/minor updates flowing within the free tier, while permanently blocking the paid major versions.

Describe how you validated your changes

Verified the license change boundaries:

  • FluentAssertions fee introduced in v8.0.0 (Xceed commercial license)
  • WixToolset fee introduced in v6.0.0 (Open Source Maintenance Fee EULA announced with the v6.0.0 release)

Additional Notes

All other NuGet packages tracked in the Renovate dashboard were audited and confirmed to have free/open-source licenses (MIT, Apache 2.0, BSD-3-Clause).

@chouetz chouetz added changelog/no-changelog No changelog entry needed dependencies PRs that bump a dependency qa/no-code-change No code change in Agent code requiring validation labels May 7, 2026
@dd-octo-sts dd-octo-sts Bot added internal Identify a non-fork PR team/agent-devx labels May 7, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label May 7, 2026
@chouetz chouetz marked this pull request as ready for review May 7, 2026 10:09
@chouetz chouetz requested a review from a team as a code owner May 7, 2026 10:09
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75a0ccdce8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread renovate.json Outdated
Comment on lines +168 to +172
"allowedVersions": "<8.0.0"
},
{
"matchDepNames": ["WixToolset.Dtf.WindowsInstaller"],
"allowedVersions": "<6.0.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use NuGet range syntax for allowed versions

These rules target NuGet PackageReference dependencies, so Renovate evaluates allowedVersions with NuGet versioning rather than npm-style semver ranges. The <8.0.0 / <6.0.0 strings are not valid NuGet ranges, which causes the Renovate config validation for these dependencies to fail instead of blocking the paid major versions; use NuGet bracket ranges such as (,8.0.0) and (,6.0.0).

Useful? React with 👍 / 👎.

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.

Good catch — fixed in the latest commit. Switched to NuGet bracket notation: (,8.0.0) and (,6.0.0).

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 7, 2026

Files inventory check summary

File checks results against ancestor a4176470:

Results for datadog-agent_7.80.0~devel.git.561.c52eaa5.pipeline.111982213-1_amd64.deb:

No change detected

@github-actions github-actions Bot added medium review PR review might take time and removed short review PR is simple enough to be reviewed quickly labels May 7, 2026
Semver-style `<X.0.0` is not valid NuGet range syntax; Renovate parses
NuGet allowedVersions with the nuget versioning module which only
accepts bracket ranges. Switch to `(,8.0.0)` and `(,6.0.0)` so the
version caps on FluentAssertions and WixToolset.Dtf.WindowsInstaller
are actually enforced.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed dependencies PRs that bump a dependency internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-devx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant