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

fix: make check repositories work with dict and str repositories #63

Merged

Conversation

diivi
Copy link
Collaborator

@diivi diivi commented Mar 28, 2023

@diivi
Copy link
Collaborator Author

diivi commented Mar 28, 2023

What else in the config file expects repository paths? Maybe that can be changed with this too.

@witten
Copy link
Collaborator

witten commented Mar 28, 2023

I think this is it! (At some point it might make sense to move this into the repositories list, although I'm trying to avoid nesting an entire config file under repositories:)

Are there any tests that can/should be updated along with this fix?

Copy link
Collaborator

@witten witten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.. Nice use of repositories_match! See my question about potential tests though.

@diivi
Copy link
Collaborator Author

diivi commented Mar 28, 2023

nothing to change for the tox tests; I am getting this error when I run the end to end tests though:

image

@witten
Copy link
Collaborator

witten commented Mar 28, 2023

nothing to change for the tox tests

What I was hoping for is: Is there a way to make a failing unit (or integration) test in master, apply your fix, and observe that the failing test now passes? Just something to give us more confidence in the fix.. I totally agree though that just looking at your change, it does appear correct.

I am getting this error when I run the end to end tests though:

Huh, super weird. End-to-end tests run just fine here. It's looking like apk isn't found in your container image...? I have no idea what might cause that. You didn't accidentally switch the image from Alpine to something else, did you? 😄 But more seriously, any other local changes that might impact this?

@diivi
Copy link
Collaborator Author

diivi commented Mar 28, 2023

any other local changes that might impact this?

I don't really think so, apart from updating the branch and running scripts/run-full-tests for the first time instead of the earlier dev-tests, I haven't changed anything.

@witten
Copy link
Collaborator

witten commented Mar 28, 2023

Oh, try running run-end-to-end-dev-tests instead! I should probably make it so users can run run-full-tests by itself. (See the comments at the top.)

@witten
Copy link
Collaborator

witten commented Mar 28, 2023

Looks great, thank you!

@witten witten merged commit 9d71bf9 into borgmatic-collective:master Mar 28, 2023
@witten
Copy link
Collaborator

witten commented Mar 28, 2023

FYI I've added a check to run-full-tests that errors out if it's run manually (not in a test environment).

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.

2 participants