Skip to content

[ci] Removed duplicate test runner - #94

Merged
nemesifier merged 1 commit into
masterfrom
issues/39-single-runner
Nov 30, 2026
Merged

nemesifier merged 1 commit into
masterfrom
issues/39-single-runner

Conversation

@nemesifier

Copy link
Copy Markdown
Member

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • N/A I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • N/A I have updated the documentation.

Reference to Existing Issue

Related to openwisp/openwisp-actions#39.

Description of Changes

Remove the unused legacy runtests.py entry point. CI and documented commands already use ./runtests for nose2 discovery and focused tests. Contributors invoking the old script should use ./runtests instead.

Screenshot

N/A

@nemesifier

Copy link
Copy Markdown
Member Author

/review

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request deletes runtests.py. This removes its nose2 installation check and its main-script calls to discover and run tests.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • openwisp/netengine#93: Changes the ./runtests entry point that PR #94 identifies as the replacement for runtests.py.
  • openwisp/netengine#89: Removes Python 2 coding declarations from the same file that PR #94 deletes.

Suggested reviewers: purhan

Merge Risk: Minimal · up to f6382

This removes an unused duplicate test runner script. CI and the documented commands already use ./runtests, so the change is low risk and ready to merge.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title "[ci] Removed duplicate test runner" uses the required [ci] prefix and describes the change. The PR deletes runtests.py, a legacy test runner, and the description says CI and docs already us…
Description check Passed The description follows the repository template. It has the checklist, a reference to a related issue, a description of the change, and a screenshot section marked N/A. The author checked the contribu…
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.
Ui Changes, Regression Test, Docs Passed The check has three parts: screenshots for visible UI changes, regression tests for application code changes, and documentation for new or changed features. - UI screenshots: Not applicable. The d…
Full details: Title check

Explanation

The title "[ci] Removed duplicate test runner" uses the required [ci] prefix and describes the change. The PR deletes runtests.py, a legacy test runner, and the description says CI and docs already use ./runtests. The title is accurate and specific. It does not reference the linked issue (openwisp-actions#39) by terminology, but the title still summarizes the main change.

Full details: Description check

Explanation

The description follows the repository template. It has the checklist, a reference to a related issue, a description of the change, and a screenshot section marked N/A. The author checked the contributing guidelines box and marked the tests and documentation items as N/A. The manual testing box is unchecked, and the description does not state that manual testing was done. The reference uses 'Related to' rather than the template's 'Closes' wording, which is acceptable because the PR removes a file rather than closing the issue. The description explains what was removed and what contributors should use instead.

Full details: Ui Changes, Regression Test, Docs

Explanation

The check has three parts: screenshots for visible UI changes, regression tests for application code changes, and documentation for new or changed features. - UI screenshots: Not applicable. The diff only deletes runtests.py (git diff --name-status shows a single D runtests.py). No user-facing UI or REST API output changes. - Regression test: Not required. The deleted file is a legacy nose2 wrapper that only runs test discovery. It is test and CI tooling, not application code, and CI-related changes are exempt. Removing it adds no behavior that a regression test would cover. - Documentation: Not required. The deleted entry point is not a documented feature. docs/source/topics/usage.rst and AGENTS.md both document ./runtests, which the PR leaves in place. A repository-wide search finds no remaining references to runtests.py, so no docs point to the removed script. No insecure or manipulative content appears in the PR metadata, description, or diff.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: ef7e502d-8a13-4cc7-828b-6e522c96bb67
Commits

Reviewing files that changed from the base of the PR and between 007a1d8 and f6382d0.

Files selected for processing: 1

  • runtests.py
Files with no reviewable changes: 1

  • runtests.py

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Recent review details

Context from checks skipped due to timeout: 4

  • GitHub Check: CodeRabbit
  • GitHub Check: Python==3.12
  • GitHub Check: Python==3.11
  • GitHub Check: Python==3.13

@openwisp-companion

openwisp-companion Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Waiting for CI to complete before reviewing f6382d0.

Update: review completed.

@openwisp-companion openwisp-companion Bot 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.

AI review of f6382d0 provided by github-copilot / gpt-6.1-terra

Verdict: Looks good

Remove the duplicate test runner

  • No actionable findings. Removing the legacy runner supports the standard test entry point, ./runtests.
  • CI and the documented full-suite command use ./runtests. Contributors using runtests.py will need to switch.

Security perimeter: NO. A security review is not needed, run /final-review next.

@nemesifier

Copy link
Copy Markdown
Member Author

/final-review

@openwisp-companion

openwisp-companion Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Update: review completed.

@openwisp-companion openwisp-companion Bot 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.

AI final-review of f6382d0 provided by github-copilot / gpt-6.1-terra

Verdict: Ready to merge

No findings

Addressed
  • None. Earlier reviews raised no actionable findings.
Outstanding
  • None
Unclear
  • None

@nemesifier
nemesifier merged commit e0f777c into master Nov 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant