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

Allow skip of sail checks #224

Merged
merged 3 commits into from
Aug 23, 2021
Merged

Allow skip of sail checks #224

merged 3 commits into from
Aug 23, 2021

Conversation

cdarken
Copy link
Contributor

@cdarken cdarken commented Aug 23, 2021

When setting the SKIP_SAIL_CHECKS env variable the docker exec will speed up a bit

@driesvints
Copy link
Member

Why?

@powellblyth
Copy link

Hi @driesvints
when I looked into this, the primary reason for speed differences (Intel Mac) between docker-compose tasks and sail tasks was the time taken by docker to respond to the docker-compose ps and docker info commands.

If there was a way to reduce these, then sail could become quicker.

I wondered about instead of pre-emptively checking whether docker is running on each command, we could instead try to interpret the failure mode of the command to determine the problem, or move these to a sail check command to speed it up.

@powellblyth
Copy link

powellblyth commented Aug 23, 2021

If there was a way to reduce these, then sail could become quicker.

that only explains half the PR though
EDIT - oops, that comment is invalid, sorry

@cdarken
Copy link
Contributor Author

cdarken commented Aug 23, 2021

@powellblyth what would be the other half?

@powellblyth
Copy link

@cdarken Ooops my bad, I think I had a second similar PR on my screen. I'll edit that out. Thanks .

@cdarken
Copy link
Contributor Author

cdarken commented Aug 23, 2021

Why?

About 2x speedup on my machine.
Not something to scowl at, I'd say.

@clytras
Copy link

clytras commented Aug 23, 2021

@driesvints you can check again the #191 issue that you were rush to close to see why.

There you and even Taylor himself propose us to create PRs. So this is a PR to address that issue.

That's why there is a reason to keep an issue open, so people to be able to discuss about potential solutions and everybody agree to a solution so when a PR comes-in we won't ask "why" because there was a conversation regarding the problem and people related to the project have come to agree to a solution.

This is a good start to make Sail ~4 seconds faster by disabling docker-compose initial checks that do delay every single sail command on each run.

@driesvints
Copy link
Member

@clytras no issue was linked so I had no idea what this was about.

That's why there is a reason to keep an issue open, so people to be able to discuss about potential solutions and everybody agree to a solution so when a PR comes-in we won't ask "why" because there was a conversation regarding the problem and people related to the project have come to agree to a solution.

I appreciate it that you want to provide suggestions here but that's not how we work. Anyone can always send in a PR. Like @cdarken has done here. A closed issue isn't locked either and anyone can still continue to discuss there if they like.

@taylorotwell taylorotwell merged commit 267fafe into laravel:1.x Aug 23, 2021
@taylorotwell
Copy link
Member

Renamed to SAIL_SKIP_CHECKS so all the Sail related environment variables start with SAIL_.

@clytras
Copy link

clytras commented Aug 23, 2021

@driesvints Yes of course. Please don't be offended by my comments; I get blunt sometimes and I wish I've had the time to make a PR but I couldn't even have time to think of an efficient way to address this issue.

I do appreciate from the bottom of my heart all the work that you and Taylor and everyone else that are contributing to this amazing project are doing here and I do want to contribute as well in the future.

Thank you for all the valuable work you're doing for all the community 💪

@driesvints
Copy link
Member

@clytras no offence taken. We also appreciate you trying to help out with improving the packages :)

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.

5 participants