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

Release script: update list of files that ship with each release #12832

Merged
merged 4 commits into from
Jun 24, 2019

Conversation

jeherve
Copy link
Member

@jeherve jeherve commented Jun 24, 2019

Fixes #12808

Changes proposed in this Pull Request:

  • - Make sure the release script can process globs in .svnignore
  • - Do not ship the scss directory
  • - Do not ship the Unit Tests, Unit Test config files, and readme files that ship with each package in vendor/automattic.
  • - Do not ship any css/*.css.map files.

Once we take care of that first item, the following existing rules from the .svnignore file will be respected:

extensions/**/*.css
extensions/**/*.gif
extensions/**/*.jpeg
extensions/**/*.jpg
extensions/**/*.js
extensions/**/*.json
extensions/**/*.jsx
extensions/**/*.md
extensions/**/*.png
extensions/**/*.sass
extensions/**/*.scss
extensions/**/*.svg

As a result, we will not be shipping any more unbuilt block files with the plugin. We should make sure this is okay, and won't cause any issues with block translations: p1561379577167900-slack-jetpack-crew


The easiest way to handle that first item seems to be to rely on recent versions of Bash (not shipped by default with Mac OS), that support globstar. Since there are only a handful of us pushing releases out, I think it's not too bad of a thing to require. I opted to suggest an installation via Homebrew when one does not run an up to date version of Bash since Mac OS is the majority around these parts. @zinigor I realize this excludes you. :( What do you think about this?

Testing instructions:

  • On this branch, run yarn build-production
  • Run curl -O https://gist.githubusercontent.com/jeherve/2692e31475aa339233f98387b743208c/raw/eddd55b9a6ea3626cc1442e4d4ee9b37354f7448/12832.diff && git apply 12832.diff
  • Run ./tools/12832.sh
  • Run cd /tmp/12832
  • Check that all files are there in the vendor/automattic/ directory, except for test files.

Proposed changelog entry for your changes:

  • None

jeherve added 3 commits June 21, 2019 18:25
.svnignore uses the ** pattern to match any subdirectory, but that pattern
is only supported from Bash 4, with globstar.

Let's require release leads to use a recent version of Bash, or install it if they don't have it yet.
@jetpackbot
Copy link

jetpackbot commented Jun 24, 2019

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: July 2, 2019.
Scheduled code freeze: June 25, 2019

Generated by 🚫 dangerJS against e95b1c6

@jeherve jeherve added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. and removed [Status] In Progress labels Jun 24, 2019
zinigor
zinigor previously approved these changes Jun 24, 2019
Copy link
Member

@zinigor zinigor left a comment

Choose a reason for hiding this comment

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

Other than my one comment, this works as expected, thank you!

.svnignore Show resolved Hide resolved
@zinigor zinigor added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Jun 24, 2019
@jeherve jeherve merged commit ee0fcec into master Jun 24, 2019
@jeherve jeherve deleted the update/svnignore branch June 24, 2019 20:49
@matticbot matticbot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Jun 24, 2019
jeherve added a commit that referenced this pull request Jun 24, 2019
* Add more files to svnignore as we don't need them on prod

* Require Bash 4 to run the deploy to SVN script

.svnignore uses the ** pattern to match any subdirectory, but that pattern
is only supported from Bash 4, with globstar.

Let's require release leads to use a recent version of Bash, or install it if they don't have it yet.

* Do not ship package tests and readme files

* Add more package files to list of files excluded from the release

Co-Authored-By: Igor Zinovyev <[email protected]>
@jeherve
Copy link
Member Author

jeherve commented Jun 24, 2019

Cherry-picked to branch-7.5 in e40baa8

jeherve added a commit that referenced this pull request Jun 25, 2019
* Add more files to svnignore as we don't need them on prod

* Require Bash 4 to run the deploy to SVN script

.svnignore uses the ** pattern to match any subdirectory, but that pattern
is only supported from Bash 4, with globstar.

Let's require release leads to use a recent version of Bash, or install it if they don't have it yet.

* Do not ship package tests and readme files

* Add more package files to list of files excluded from the release

Co-Authored-By: Igor Zinovyev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove files that don't have to ship with the release
4 participants