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

Use thor capture instead of full run_command from aruba. #401

Merged
merged 6 commits into from
Mar 10, 2021

Conversation

KonnorRogers
Copy link
Collaborator

@KonnorRogers KonnorRogers commented Mar 10, 2021

  • Uses builtin thor capturing instead of spawning full processes.

So this isnt as full sweeping as I would have liked. Ideally I would have liked to rip out Aruba, but life is all about moderation. This will at least cut down on a decent number of run_command 's and should show at least a little improvement in speed. Let me know if you have any questions or comments!

I left the install and notify specs alone as they were quite...thorny...when attempting to refactor them, Aruba appears to do a lot of isolation for us.

@KonnorRogers KonnorRogers marked this pull request as ready for review March 10, 2021 01:35
Copy link
Member

@joshuap joshuap 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 to me. On my machine, rake spec:features runs about 30% faster on this branch vs. on master (standalone). The specs that have been updated to test Thor in-process are definitely a lot faster! Maybe we can figure out a way to convert more specs in the future. This is a good foothold for now. 👍

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