Skip to content

Refactor(eos_designs): Improve /metadata/cv_pathfinder.py and improve pytest coverage #5310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 15, 2025

Conversation

MaheshGSLAB
Copy link
Contributor

@MaheshGSLAB MaheshGSLAB commented Apr 18, 2025

Change Summary

Add pytest coverage for /metadata/cv_pathfinder.py

Related Issue(s)

Fixes #

Component(s) name

arista.avd.eos_designs

Proposed changes

Add pytest coverage for /metadata/cv_pathfinder.py. Coverage is 98% and the uncovered part will soon remove from schema as per comment(#5310 (comment))

How to test

Run tox

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@MaheshGSLAB MaheshGSLAB self-assigned this Apr 18, 2025
Copy link

Review docs on Read the Docs

To test this pull request:

# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-5310
# Activate the virtual environment
source test-avd-pr-5310/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/ansible-avd.git@cv-pathfinder-coverage#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/MaheshGSLAB/ansible-avd.git#/ansible_collections/arista/avd/,cv-pathfinder-coverage --force
# Optional: Install AVD examples
cd test-avd-pr-5310
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added state: CI Updated CI scenario have been updated in the PR state: conflict PR with conflict labels Apr 18, 2025
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the state: conflict PR with conflict label Apr 24, 2025
Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@MaheshGSLAB MaheshGSLAB changed the title Test(eos_designs): Add pytest coverage for /metadata/cv_pathfinder.py Refactor(eos_designs): Improve /metadata/cv_pathfinder.py and improve pytest coverage Apr 24, 2025
@MaheshGSLAB MaheshGSLAB requested a review from gmuloc April 29, 2025 05:01
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the state: conflict PR with conflict label Apr 30, 2025
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review May 6, 2025 06:03
@MaheshGSLAB MaheshGSLAB requested review from a team as code owners May 6, 2025 06:03
@github-actions github-actions bot removed the state: conflict PR with conflict label May 6, 2025
Copy link

github-actions bot commented May 6, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot added the state: conflict PR with conflict label May 6, 2025
Copy link

github-actions bot commented May 6, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the state: conflict PR with conflict label May 7, 2025
Copy link

github-actions bot commented May 7, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label May 15, 2025
Copy link

@gmuloc gmuloc merged commit 8893c73 into aristanetworks:devel May 15, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one approval This PR has one approval and is only missing one more. rn: Refactor(eos_designs) state: CI Updated CI scenario have been updated in the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants