Skip to content

Add contribution checks, cross-platform CPU CI, and Dependabot - #82

Merged
D-Ogi merged 3 commits into
mainfrom
ci/contributor-validation
Sep 16, 2026
Merged

D-Ogi merged 3 commits into
mainfrom
ci/contributor-validation

Conversation

@D-Ogi

@D-Ogi D-Ogi commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Problem and resulting behavior

Contributions currently have no automated test baseline or documented evidence requirements. Add CPU checks on Windows, Linux, and macOS, plus contribution guidance and a PR template that distinguish completed checks from proposed test plans.

Changes

  • Add 17 tests for coordinate conversion, synthetic mask behavior, invalid inference tasks, UI JSON and locale assets, and Unix script line endings.
  • Add a Python 3.12 CI matrix with isolated test dependencies, pip check, a focused correctness lint baseline, compilation, and Bash/PowerShell syntax checks.
  • Document change-specific requirements for fresh application installs, GUI interaction, image processing, and model/device integration.
  • Configure weekly Dependabot updates for Python requirements and pinned GitHub Actions, with PR limits and a small pytest/Ruff update group.
  • Keep model downloads and privileged runners out of PR automation; use read-only workflow permissions and pinned action revisions.

Validation

Windows / Python 3.12.10: all 17 tests passed in a fresh test environment; pip check, Ruff, Python compilation, Bash syntax checks, and PowerShell parsing passed. Linux/macOS execution is delegated to the new CI matrix.

The workflow does not validate full application installation, launch the GUI, or run inference. Those checks remain explicitly required evidence for relevant changes while dependency/backend issues are addressed. Repository branch protection is unchanged.

Summary by CodeRabbit

  • Tests

    • Added CPU-only coverage for geometry processing, polygon masks, invalid tasks, and repository assets.
    • Added validation for translation files and platform-specific script formatting.
  • Chores

    • Added automated cross-platform checks for tests, linting, compilation, and script syntax.
    • Added configuration for consistent test discovery and code-quality checks.
    • Added local tooling exclusions and scheduled update automation.
  • Documentation

    • Added contributor guidance and a pull request template covering scope, validation, compatibility, and review responsibilities.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: c1967342-9427-4156-a29c-ecc2ecc653b2

📥 Commits

Reviewing files that changed from the base of the PR and between 0d30cc3 and d6ba756.

📒 Files selected for processing (3)
  • .github/dependabot.yml
  • .github/workflows/ci.yml
  • CONTRIBUTING.md

📝 Walkthrough

Walkthrough

The pull request adds CPU-focused tests, test and lint configuration, cross-platform CI checks, repository asset validation, ignored test artifacts, Dependabot settings, and contributor documentation.

Changes

Validation Workflow

Layer / File(s) Summary
CPU test foundation
requirements-test.txt, pyproject.toml, .gitignore, tests/*
Pinned CPU test dependencies, pytest and Ruff settings, local test-tool exclusions, utility tests, and repository asset tests are added.
Cross-platform CI validation
.github/workflows/ci.yml
GitHub Actions runs CPU checks on Ubuntu, Windows, and macOS. The workflow runs dependency checks, Ruff, compilation, pytest, and platform-specific script syntax checks.
Contribution and dependency maintenance
.github/pull_request_template.md, CONTRIBUTING.md, .github/dependabot.yml
The pull request template and contributor guide define change, validation, compatibility, security, and review information. Dependabot monitors Python and GitHub Actions dependencies on a weekly schedule.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 0d30c

The added validation workflow and contributor guidance introduce no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title accurately describes the contribution checks and cross-platform CPU CI, but it also claims that Dependabot was added. The changeset contains no Dependabot configuration or related changes. Remove “and Dependabot” from the title, or add the intended Dependabot configuration and related changes.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 2 files. (6 skipped: 6 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/contributor-validation

Comment @coderabbitai help to get the list of available commands.

@D-Ogi D-Ogi changed the title Add contributor test requirements and cross-platform CPU CI Add contribution checks, cross-platform CPU CI, and Dependabot Sep 16, 2026
@D-Ogi
D-Ogi merged commit 86f2e34 into main Sep 16, 2026
4 checks passed
CaffeeLake pushed a commit to CaffeeLake/WatermarkRemover-AI that referenced this pull request Sep 30, 2026
)

Add contributor validation requirements, a pull request template, CPU tests on Windows/Linux/macOS, and weekly dependency updates.
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.

1 participant