Repository navigation
Fix Medusa updates and report pytest coverage on PRs. - #8
Merged
Merged
Conversation
Git clones now fetch the GitHub release tag instead of a shallow master pull, arsenal commands get full dispatch tests, and CI posts coverage as a sticky PR comment plus a coverage-ubuntu artifact. Co-authored-by: Cursor <cursoragent@cursor.com>
Checkout, coverage comments, and arsenal smoke now use inline git/Python like the rest of the workflow, because actions/* is blocked by org policy. Co-authored-by: Cursor <cursoragent@cursor.com>
Test coverage
Lowest-coverage files:
pytest-cov on ubuntu-latest. |
Drop the org-policy note so the comment only shows pytest-cov on ubuntu-latest. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Git clones now fetch the GitHub release tag instead of a shallow master pull, arsenal commands get full dispatch tests, and CI posts coverage as a sticky PR comment plus a coverage-ubuntu artifact.
Summary
Describe the change and why it matters.
Testing
python -m pytestdroidreaver --helpSummary
Medusa (and other git-installed tools) were reporting “—” for Installed and
updateonly rangit pullon a shallow master clone, so they never moved onto the GitHub Latest release tag (e.g. Medusav3.9.6). Install/update now fetch that tag (or re-download the matching zip), record it as the installed version, and keep Medusa out of the Frida pin group soupdate medusadoes not bump Frida.Arsenal dispatch is covered end-to-end: every registry tool/alias is a Click command,
run/info/arsenalwiring is tested, and live--version/--helpprobes use~/.droidreaver/tools(gitignored). OptionalDROIDREAVER_ARSENAL_INSTALL=gitleaks,adbpre-installs a small set; CI caches that dir on an ubuntu smoke job.Coverage no longer depends on GitHub Code Quality (Team/Enterprise). Ubuntu CI writes Cobertura XML + HTML, uploads a coverage-ubuntu artifact, and posts a sticky PR comment with line/branch % and the weakest files.
Also in this change: arsenal Click
--helpno longer leaked the last tool’s description (loop closure); Windows PATH/is_dirskips inaccessible dirs; uninstall/remove for managed tools.Testing
python -m pytestdroidreaver --helpdroidreaver status --offlineArsenal suite:
python -m pytest tests/test_arsenal.py tests/test_coverage_comment.py tests/test_install_direct.py tests/test_registry.py -qLive probes skip when a binary is missing. To install then probe: