[AI-5800] Add quality gate to block PRs when size increase exceeds 1%
What does this PR do?
Implements size quality gates in the repository. Only integrations and dependencies that are packaged with the Agent are considered for size changes. For now, the threshold is set to 1%, meaning that if a pull request introduces a size increase greater than this threshold, the PR will be blocked.
Motivation
The Datadog Agent has strict size constraints. This gate will help maintain strict size control and prevent unintentional growth over time.
Review checklist (to be filled by reviewers)
- [ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
- [ ] Add the
qa/skip-qalabel if the PR doesn't need to be tested during QA. - [ ] If you need to backport this PR to another branch, you can add the
backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged
⚠️ The qa/skip-qa label has been added with shippable changes
The following files, which will be shipped with the agent, were modified in this PR and
the qa/skip-qa label has been added.
You can ignore this if you are sure the changes in this PR do not require QA. Otherwise, consider removing the label.
List of modified files that will be shipped with the agent
krakend/datadog_checks/test.txt
Codecov Report
:x: Patch coverage is 67.62342% with 282 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 91.02%. Comparing base (fba9966) to head (f07e747).
:warning: Report is 65 commits behind head on master.
Additional details and impacted files
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
⚠️ The qa/skip-qa label has been added with shippable changes
The following files, which will be shipped with the agent, were modified in this PR and
the qa/skip-qa label has been added.
You can ignore this if you are sure the changes in this PR do not require QA. Otherwise, consider removing the label.
List of modified files that will be shipped with the agent
delinea_secret_server/datadog_checks/size.txt
⚠️ Major version bump
The changelog type changed or removed was used in this Pull Request, so the next release will bump major version. Please make sure this is a breaking change, or use the fixed or added type instead.
✅ Tests
🎉 All green!
❄️ No new flaky tests detected
🧪 All tests passed
🔗 Commit SHA: f07e747 | Docs | Datadog PR Page | Was this helpful? Give us feedback!
Example of when quality gates don't pass:
@codex review
✅ Size Quality Gates Passed
These Quality Gates apply only to dependencies and integrations packaged with the Datadog Agent.
Threshold: 1.0% per platform and Python version
Compared to commit: c2b963f
Compressed Size Changes ✅
No size differences were found
Uncompressed Size Changes ✅
No size differences were found
📋 View detailed breakdown in GitHub Step Summary