• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haidaraM / ansible-playbook-grapher / 12403270720
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/ruff-0.15.8
DEFAULT BRANCH: master
Ran 18 Dec 2024 11:44PM UTC
Jobs 6
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Dec 2024 11:43PM UTC coverage: 94.479% (+0.2%) from 94.304%
12403270720

push

github

web-flow
feat: Add support for excluding specific roles in the graph view (#219)

## Premise
When running the ansible-playbook-grapher on a project folder, where a
certain role is referenced by a lot of other roles or tasks then the
resulting graph might be confusing especially when grouping the roles by
their names (a lot of arrows crossing each other). So far there was no
option to exclude specific roles from the graph view, so I implemented a
feature for this.

## Changes
- Add entry for the new option ```--exclude-roles``` in README.md
- Add the option and post processing in ```cli.py``` and adjust
```grapher.py``` and ```parser.py``` accordingly
- Update docstrings accordingly
- Add logic to exclude certain roles from being rendered
- Lint project with the corresponding make target
- Add cli and parser tests
- Add methods in ```graph_model.py``` to get all roles of a composite
role (needed for the additional tests)

## Screenshots
without ```--exclude-roles```

![group-roles-by-name](https://github.com/user-attachments/assets/d23d384c-d33d-45a6-97a4-b2e300f1968f)

with ```--exclude-roles fake_role```

![group-roles-by-name-wout-fake_role](https://github.com/user-attachments/assets/30aee2a8-7639-475a-a016-5c963b09cc4f)

---------

Co-authored-by: David Merkl <dme@ordix.de>
Co-authored-by: Mohamed El Mouctar Haidara <elmhaidara@gmail.com>

924 of 978 relevant lines covered (94.48%)

5.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 py3.11-ansible2.18.* - 12403270720.1 18 Dec 2024 11:45PM UTC 0
94.48
GitHub Action Run
2 py3.11-ansible2.16.* - 12403270720.2 18 Dec 2024 11:45PM UTC 0
94.48
GitHub Action Run
3 py3.12-ansible2.18.* - 12403270720.3 18 Dec 2024 11:45PM UTC 0
94.48
GitHub Action Run
4 py3.10-ansible2.16.* - 12403270720.4 18 Dec 2024 11:45PM UTC 0
94.48
GitHub Action Run
5 py3.10-ansible2.17.* - 12403270720.5 18 Dec 2024 11:45PM UTC 0
94.48
GitHub Action Run
6 py3.11-ansible2.17.* - 12403270720.6 18 Dec 2024 11:45PM UTC 0
94.48
GitHub Action Run
Source Files on build 12403270720
Detailed source file information is not available for this build.
  • Back to Repo
  • 42195b4f on github
  • Prev Build on main (#12362724771)
  • Next Build on main (#12421713611)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc