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

feat(gatsby-source-wordpress): use docker for tests #30938

Merged
merged 53 commits into from
Apr 26, 2021

Conversation

TylerBarnes
Copy link
Contributor

@TylerBarnes TylerBarnes commented Apr 19, 2021

To ship gatsby-source-wordpress we previously removed docker from our tests and used a live WP url. This was done because in switching from Github actions to CircleCI, we couldn't properly expose dockers WP url to Gatsby. It turns out the reason was that we were using the custom node executor that all the other Gatsby integration tests are using. Custom executors run in a docker container and don't allow for networking with nested docker containers (due to a security hole that would open in circleCI). Switching to the machine executor runs the WP tests in a linux VM which allows for proper networking between Gatsby and our docker containers.

That fix was simple but our test setup turned out to need a bunch of other tweaks to get things running again properly, hence the long list of commits here.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 19, 2021
@TylerBarnes TylerBarnes marked this pull request as ready for review April 23, 2021 18:08
@TylerBarnes TylerBarnes requested a review from a team April 23, 2021 18:08
@TylerBarnes TylerBarnes added topic: source-wordpress Related to Gatsby's integration with WordPress and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Apr 23, 2021
@TylerBarnes TylerBarnes self-assigned this Apr 23, 2021
@TylerBarnes TylerBarnes requested a review from pieh April 23, 2021 18:26
@TylerBarnes TylerBarnes requested a review from sslotsky April 23, 2021 22:38
@TylerBarnes TylerBarnes merged commit 4e1678c into master Apr 26, 2021
@TylerBarnes TylerBarnes deleted the feat/wp-use-docker-for-tests branch April 26, 2021 17:02
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants