Trigger a failure if not all files are added to SVN
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with deploy.sh around line 125 and the linked failed build log, then review how files are added to SVN and how svn:ignore affects that step. The change is done when the action detects present files that were not added and fails before deploying, with coverage for the vendor-directory scenario.
Written by the indexing model from the issue text.
Description
Is your enhancement related to a problem? Please describe.
There were some files missing from the most recent release of one of my plugins on wordpress.org, despite the .gitignore and .gitattributes configuration being correct. Everything with the build is fine right up to the point where the plugin gets deployed to the plugin directory.
The problem appears to be caused by an existing svn:ignore prop on the plugin directory, which I historically used to prevent files from being deployed before I switched to using this GitHub action. In the most recent release of the plugin I added files which matched the svn:ignore prop, hence when this action added the files they were actually ignored.
Here's the related portion of the script: https://github.com/10up/action-wordpress-plugin-deploy/blob/de0553e7b3e232ad24cf49c9548734568c5956fe/deploy.sh#L125
Describe the solution you'd like
It would be great if this action trigger a failure when some files that are present have not been added to svn, to prevent a broken release from being deployed to wordpress.org. I'm not yet sure how this could work.
Additional context
- Build where the missing files (the
vendordirectory in this case) were not added due tovendorbeing present in thesvn:ignoreprop: https://github.com/johnbillion/wp-crontrol/runs/7270118515?check_suite_focus=true#step:8:70 - Discovery of the root cause: https://github.com/johnbillion/wp-crontrol/issues/85
- Dominant language
- Shell
- Stars
- 665
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 10up/action-wordpress-plugin-deploy
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
10up/action-wordpress-plugin-deploy#172 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
10up/action-wordpress-plugin-deploy#146 · 10 comments ·
All issues in 10up/action-wordpress-plugin-deploy
Similar issues
-
area: ui good first issue javascript priority: medium refactor
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fukubie/StockLlama#49 ·
-
github_actions priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Let's document: aptOpenhelp wanted let's document new command
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tldr-pages/tldr#25447 ·
Maintainers usually reply within 1 day
-
area:server ci-cd good first issue priority:high
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
James-Burgess/framer#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day