Add QA Check for Version and Changelog Correctness for New Packages (Closes #149)
This merge request addresses issue #149 by enhancing the Debian QA Plugin to include comprehensive checks for version and changelog correctness for new packages. The enhancements ensure packages adhere to Debian policies and best practices.
Key Enhancements:
-
Revision Correctness Checks:
- Implemented checks to ensure NMU revisions follow the pattern
^\d+\.\d+$
. - Validated binary NMUs and regular revisions to conform to the Debian policy.
- Implemented checks to ensure NMU revisions follow the pattern
-
Changelog Correctness Check:
- Verified that changelogs for initial releases follow the specified format and only contain "Initial release (Closes: #nnnn)".
-
ClientTracker Enhancement:
- Parsed the latest package version from the Debian tracker for accurate comparison against incoming packages.
-
Functional Tests:
- Updated functional tests to reflect the new logic and assertions for version and changelog correctness.
- Adjusted the
hello-nmu
test package to adhere to the NMU versioning scheme, resolving issues with test failures.
Changes Summary:
- Modified
debianqa.py
to add revision and changelog correctness checks. - Updated
ClientTracker
to fetch the latest version of packages from the Debian tracker. - Refined functional tests in
test_debianqa.py
and enhancedassert_in_plugin_data
to ensure accurate test results. - Adjusted
hello-nmu
package changelog to follow the NMU versioning pattern.
Closes #149.