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

[CICD-761] Actually fix excludes #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

cseeman
Copy link
Member

@cseeman cseeman commented Oct 10, 2024

JIRA Ticket

CICD-761

What Are We Doing Here

Customer reports that mu-plugins are being deleted when deploying with the GitHub Action. The plugins that are mentioned as being deleted are already part of our global excludes list in wpengine/site-deploy.

Reported in: wpengine/github-action-wpe-site-deploy#91

To fix this, we are removing out the relative folder structure that was on the excludes list. This will help the rsynch command properly exclude the files, no matter what the folder structure happens to be.

@cseeman cseeman requested a review from a team as a code owner October 10, 2024 21:43
Copy link

changeset-bot bot commented Oct 10, 2024

🦋 Changeset detected

Latest commit: 1786fbc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@wpengine/site-deploy Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cseeman cseeman self-assigned this Oct 10, 2024
@cseeman cseeman force-pushed the CICD-761/apm-fix-excludes branch from bca4aa4 to 841bd05 Compare October 15, 2024 15:25
@cseeman cseeman force-pushed the CICD-761/apm-fix-excludes branch 2 times, most recently from d7d5b1a to 4f7574b Compare November 26, 2024 20:52
cseeman and others added 4 commits November 26, 2024 14:56
Working on making the remote relative solution and tests of make
relative remote function. This should help with the excludes not working
by changing the folder structure.
Removed out the extra targets in the Docker file.

Also outlines next testing steps for scenerios and better checks for the
workspace folder structure.

Co-authored-By: Michael Day <[email protected]>
Co-authored-By: Andrew Matthews <[email protected]>
With the help of Michael, it was determined that the easiest way to make
sure that the excludes files is fully used for the rsynch command, is to
make sure to use the file name, but not the full file path. This will
make sure the files are excluded, no matter which folder location you
attempt to deploy to. So default base of the wordpress install will
work, or if you use within wp-content or other folder locations.

Removing out the testing calls for now too, until we can get a better
mocking framework in place to make sure synch_files can be full tested.

Co-authored-By: Michael Day <[email protected]>
@cseeman cseeman force-pushed the CICD-761/apm-fix-excludes branch from 4f7574b to 10723dd Compare November 26, 2024 20:56
Adding in changeset through the GItHub UI. Locally kept on having npm dependency issues running `npx changeset`
@@ -0,0 +1,74 @@
#!/bin/bash
Copy link
Member Author

@cseeman cseeman Dec 2, 2024

Choose a reason for hiding this comment

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

Try removing this commit, delete tests/ structure and integration test and add the removal commit on a graveyward.md for future reference, including docker compose file.

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