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 standalone role bootstrapping #30

Merged
merged 1 commit into from
Jul 25, 2021
Merged

Fix standalone role bootstrapping #30

merged 1 commit into from
Jul 25, 2021

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Jul 24, 2021

  • Fixes a bug introduce when we added support for project_dir and we still continued to rely on CWD in few places.
  • Adds tests for covering this use-case

@ssbarnea ssbarnea requested a review from webknjaz as a code owner July 24, 2021 08:26
@ssbarnea ssbarnea added the bug Something isn't working label Jul 24, 2021
@ssbarnea ssbarnea force-pushed the fix/api branch 6 times, most recently from afb37ae to a6504ba Compare July 24, 2021 09:47
@ssbarnea ssbarnea added this to the 1.0.0 milestone Jul 24, 2021
@ssbarnea ssbarnea force-pushed the fix/api branch 2 times, most recently from efe89e2 to 76372f4 Compare July 24, 2021 17:04
@@ -122,6 +122,7 @@ def exec(self, args: Union[str, List[str]]) -> CompletedProcess:
check=False,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
env=os.environ,
Copy link
Member

Choose a reason for hiding this comment

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

This happens by default. Why did you add it?

.gitmodules Outdated
@@ -0,0 +1,3 @@
[submodule "test/assets/ansible-role-mysql"]
Copy link
Member

Choose a reason for hiding this comment

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

It'd go for git subtree or put the synching logic into the pytest setup. Making the contributors do this is fragile.

@ssbarnea
Copy link
Member Author

There is a lot of debugging junk i need to remove. I think I found the culprit yesterday, mainly submodules cloning no longer works with checkout v2. Instead I will just create a mini embedded role for testing.

@ssbarnea ssbarnea force-pushed the fix/api branch 2 times, most recently from 293a6c8 to 914db58 Compare July 25, 2021 07:07
@ssbarnea ssbarnea merged commit e10c06a into main Jul 25, 2021
@ssbarnea ssbarnea deleted the fix/api branch July 25, 2021 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants