Skip to content
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

Improve how we use git in eext and improve the code's testing facilities. #152

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mkisielewski-arista
Copy link
Contributor

@mkisielewski-arista mkisielewski-arista commented Jan 8, 2025

Previously the tests for code that sourced packages with git was downloading actual repositories. This PR rearranges the code a bit to make it more testable, introduces a simple executor mock, and uses it, making the whole process more contained.

It also has a small fix (97b67a2) that properly handles commits used as revisions. The new tests also cover this logic path.

The purpose of the function was missing, and the comment grammar implied that
only the pull is being done.
There was a lot of boiler plate that was hard to follow, so this patch
introduces a simple list of git commands to run. It should also yield
potentially better error messages in case of a failure.
@mkisielewski-arista mkisielewski-arista force-pushed the mkisielewski-improve-git-shenanigans branch from 4a3212b to 7f5bb57 Compare January 8, 2025 21:42
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