-
Notifications
You must be signed in to change notification settings - Fork 396
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
BLT Automated Test Suite will not run locally #3438
Comments
BTW it looks like the |
You cannot run BLT commands within the VM while also debugging BLT. This is a fundamental limitation of Vagrant / NFS and I don't think there's any workaround for it. I think we should just update the documentation to clarify that you cannot test BLT in a VM in this way. Any better ideas? Specifically, there's a symlink from |
I have 4G and still get it |
I see no mention of vagrant in https://blt.readthedocs.io/en/latest/CONTRIBUTING/#developing-blt-locally. ./vendor/bin/robo release:test mentioned there works for me |
@danepowell until the documentation is updated closing this seems premature? At this point few people have a local lamp stack anymore. I haven't set one up in about 4 years. Right now it's pretty much impossible for folks to contribute to BLT. We could probably work around the symlink issue by getting the DVM for blted8 to point vendor/acquia/blt inside the vm to the /blt directory on the host. |
I think calling it impossible is a little strong. I don't use a LAMP stack very often either, but it took me all of 5 minutes to create the necessary local DBs for testing and install chromedriver, and I have no problems running the release tests locally dozens of times per day. Sounds like @alexxed was able to set it up too. The only way I'm aware of to test inside the VM is to use NFS to mount BLT from the custom location, overriding what composer provides. But that makes debugging a lot harder. Additionally, running things inside the VM is an order of magnitude slower than not. I'm usually not even able to run There's also no viable hybrid solution of running composer outside the VM and BLT tests inside, since vagrant will not mount the BLT directory via NFS over a BLT symlink on the host. These are fundamental blockers to even considering using a VM for testing. If you know of any workarounds or can point to examples of other projects that have managed to make this work, I'd love a PR. But I've thought about it a lot and never came to a better solution than what we have now. |
Both me and @ba66e77 were impacted by this. I'm not saying we are rocket scientists but we know things. Since we were blocked its likely going to be a blocker to others. If doing this inside a VM is impossible (I am skeptical) then provide instructions for getting this working in an alternate fashion. Right now the current instructions do not meet the level of rigor set by other aspects of BLT. |
The only error I saw in this issue is related to the VM. If you are having problems with the normal test instructions (which don't involve the VM), can you open a new issue with more details? And if you know of a way of testing inside the VM, PRs would be welcome for that as well. |
The instructions here seem broken :(
https://blt.readthedocs.io/en/latest/CONTRIBUTING/#developing-blt-locally
Steps to reproduce:
Fails with the following:
When I then work around by doing
I then see the following
The text was updated successfully, but these errors were encountered: