Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 97e10bd

Browse files
bdenhammeker12shiftedrealityhguthrieoshmyheliuk
authored
ECE tools 2002.1.5 Release (#8578)
* Added REMOTE_STORAGE deploy variable to Cloud Guide (#8230) * Update src/cloud/env/variables-deploy.md * Added REMOTE_STORAGE deploy variable documentation * Update release notes for ece-tools 2002.1.4 Merges changes from #8229 Co-authored-by: Oleg Posyniak <[email protected]> Co-authored-by: hguthrie <[email protected]> * Add release note for opcache flush option (#8240) * Add release note for opcache flush option Add information about the `opcache.enable_cli` PHP option for resetting cache configuration when deploying Magento on the Cloud platform. (MCLOUD-7015) * MCLOUD-7120: Add command which validate .magento.env.yaml locally before push * Update src/cloud/project/magento-env-yaml.md Co-authored-by: Barny Shergold <[email protected]> * Update src/cloud/project/magento-env-yaml.md Co-authored-by: hguthrie <[email protected]> * MCLOUD-7120: Add command which validate .magento.env.yaml locally before push * MCLOUD-7120: Add command which validate .magento.env.yaml locally before push * Update src/cloud/project/magento-env-yaml.md * MCLOUD-7306: Ece-tools release notes * MCLOUD-7306: WIP - Release notes update to fix a bad merge. * version and markdown fixes * Update src/cloud/project/magento-env-yaml.md Co-authored-by: hguthrie <[email protected]> * Draft of release notes and related documentation * Updated language for cache:flush step. :) * Minor updates. * Apply suggestions from code review Co-authored-by: hguthrie <[email protected]> * Updated ece-tools release notes from reviews. * Updated ece-tools release notes from reviews. * Updated ece-tools release notes from reviews. Co-authored-by: Margaret Eker <[email protected]> Co-authored-by: Oleg Posyniak <[email protected]> Co-authored-by: hguthrie <[email protected]> Co-authored-by: Oleksandr Shmyheliuk <[email protected]> Co-authored-by: Barny Shergold <[email protected]>
1 parent 4013f1e commit 97e10bd

File tree

6 files changed

+105
-4
lines changed

6 files changed

+105
-4
lines changed

src/_data/var.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ mbi: Magento Business Intelligence
2121
# Cloud product name variables
2222

2323
ece: Magento Commerce Cloud
24-
ece-release-date: November 19, 2020
24+
ece-release-date: Feb 1, 2021
2525
csuite: Magento Commerce Cloud Suite
2626
ct: ece-tools
2727
ct-repo: magento/ece-tools
28-
ct-release: 2002.1.4
28+
ct-release: 2002.1.5
2929
mcp-prod: Magento Cloud Patches
3030
mcp-package: magento/magento-cloud-patches
3131
mcp-release: 1.0.9

src/cloud/env/variables-build.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ stage:
8686
SCD_COMPRESSION_TIMEOUT: 800
8787
```
8888

89+
### `SCD_NO_PARENT`
90+
91+
- **Default**—`false`
92+
- **Version**—Magento 2.4.2 and later
93+
94+
Set to `true` to prevent generating static content for parent themes during the build phase.
95+
96+
We recommend setting `SCD_NO_PARENT: false` during the build phase so that generating static content for the parent themes does not impact site deployment or cause unnecessary site downtime. See [Static content deployment]({{site.baseurl}}/cloud/deploy/static-content-deployment.html).
97+
98+
```yaml
99+
stage:
100+
build:
101+
SCD_NO_PARENT: false
102+
```
103+
89104
### `SCD_MATRIX`
90105

91106
- **Default**—_Not set_

src/cloud/env/variables-deploy.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Deploy variables
44
functional_areas:
55
- Cloud
66
- Configuration
7-
redirect_from:
7+
redirect_from:
88
- /cloud/trouble/message-queues.html
99
---
1010

@@ -425,6 +425,26 @@ You must have a Redis service configured in the `.magento.app.yaml` file and in
425425

426426
The read-only connection is not available for use in the Integration environment or if you use the [`CACHE_CONFIGURATION` variable](#cache_configuration).
427427

428+
### `REMOTE_STORAGE`
429+
430+
- **Default**—_Not set_
431+
- **Version**—Magento 2.4.2 and later
432+
433+
Configure a _storage adapter_ to store media files in a persistent, remote storage container using a storage service, such as AWS S3. Use the remote storage option to improve performance on Cloud projects with complex, multi-server configurations that must share resources.
434+
435+
```yaml
436+
stage:
437+
deploy:
438+
REMOTE_STORAGE:
439+
driver: aws-s3 # Required
440+
prefix: cloud # Optional
441+
config:
442+
bucket: my-bucket # Required
443+
region: my-region # Required
444+
key: my-key # Optional
445+
secret: my-secret-key # Optional
446+
```
447+
428448
### `RESOURCE_CONFIGURATION`
429449

430450
- **Default**—Not set
@@ -517,6 +537,19 @@ stage:
517537

518538
{% include cloud/note-increase-scd-max-execution-time-variable.md%}
519539

540+
### `SCD_NO_PARENT`
541+
542+
- **Default**—`false`
543+
- **Version**—Magento 2.4.2 and later
544+
545+
On the deploy phase, we recommend setting `SCD_NO_PARENT: true` so that the generation of static content for parent themes does not occur during the deploy phase. This setting minimizes deployment time and prevents site downtime that can occur if the static content build fails during the deployment. See [Static content deployment]({{site.baseurl}}/cloud/deploy/static-content-deployment.html).
546+
547+
```yaml
548+
stage:
549+
deploy:
550+
SCD_NO_PARENT: true
551+
```
552+
520553
### `SCD_STRATEGY`
521554

522555
- **Default**—`quick`

src/cloud/env/variables-global.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ stage:
7575

7676
{% include cloud/note-increase-scd-max-execution-time-variable.md%}
7777

78+
### `SCD_NO_PARENT`
79+
80+
- **Default**—_Not set_
81+
- **Version**—Magento 2.4.2 and later
82+
83+
Set to `true` to prevent generating static content for parent themes during the build and deployment phases. When this option is set to `true`, less static content is generated, which improves your overall build and deployment times.
84+
85+
```yaml
86+
stage:
87+
global:
88+
SCD_NO_PARENT: true
89+
```
90+
7891
### `SCD_USE_BALER`
7992

8093
- **Default**—_Not set_

src/cloud/project/magento-env-yaml.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,20 @@ stage:
112112
deploy:
113113
CLEAN_STATIC_FILES: false
114114
```
115+
116+
## Validate configuration file
117+
118+
Use the following CLI command to validate the `.magento.env.yaml` configuration file before pushing changes to the remote Cloud environment.
119+
120+
```bash
121+
php ./vendor/bin/ece-tools cloud:config:validate
122+
```
123+
124+
The following sample response provides a list of items to correct:
125+
126+
```terminal
127+
Environment configuration is not valid. Correct the following items in your .magento.env.yaml file:
128+
The SCD_THREADS variable contains an invalid value of type string. Use the following type: integer.
129+
The SCD_STRATEGY variable contains an invalid value fast. Use one of the available value options: compact, quick, standard.
130+
The NOT_EXIST_OPTION variable is not allowed in configuration.
131+
```

src/cloud/release-notes/ece-release-notes.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,32 @@ The `{{site.data.var.ct}}` package uses the following release versioning sequenc
1717
{:.bs-callout-info}
1818
See [Upgrades and patches]({{ site.baseurl }}/cloud/project/project-upgrade-parent.html) for information about updating to the latest release of the `{{site.data.var.ct}}` package.
1919

20-
## v2002.1.4
20+
## v2002.1.5
2121
*Release date: {{ site.data.var.ece-release-date }}*<br/>
2222

23+
- {:.new}**Remote storage**—Added the [`REMOTE_STORAGE`]({{site.baseurl}}/cloud/env/variables-deploy.html#remote_storage) environment variable to enable Cloud Projects for remote storage of media files using a storage service, such as AWS S3.<!--MCLOUD-7153-->
24+
25+
- {:.new}**New cloud:config:validate command**—Added command `php vendor/bin/ece-tools cloud:config:validate` to validate the `.magento.env.yaml` configuration before pushing changes to the remote Cloud environment.<!--MCLOUD-7120-->
26+
27+
- {:.new}**Flushing the opcache**—Added support for the `opcache.enable_cli` PHP option to flush the OPcache before running the deploy hook. This configuration resets the cache configuration to ensure that the current configuration settings are applied on each deployment.<!--MCLOUD-7015-->
28+
29+
- {:.new}**Validation of Aurora DB**—Updated the database service validation so that it is compatible with the Aurora database.<!--MCLOUD-7269-->
30+
31+
- {:.new}**New SCD_NO_PARENT environment variable**—Added the `SCD_NO_PARENT` environment variable (for Magento >=2.4.2) to manage the generation of static content for parent themes.<!--MCLOUD-7284-->
32+
33+
- {:.fix}**Memory limits and commands**—Fixed an issue where `php vendor/bin/ece-tools` commands would not work if the size of the `cloud.log` file exceeded the PHP memory_limit. Instead of reading the entire `cloud.log` file into memory, we now only read a smaller subset of data from the log file.<!--MCLOUD-7275--><!--MCLOUD-7400-->
34+
35+
- {:.fix}**Custom database connections**—Fixed a `.magento.env.yaml` configuration issue in which custom database connections defined for `DATABASE_CONFIGURATION` were not used. The connection settings were not being added to `app/etc/env.php`.<!--MCLOUD-7426-->
36+
37+
- {:.fix}**Empty error logs**—Fixed an issue that caused deployments to fail if the `cloud.error.log` was empty.<!--MCLOUD-7296-->
38+
39+
- {:.fix}**MariaDB 10.3 validation**—Fixed validation of MariaDB 10.3 for Magento 2.3.6-p1.<!--MCLOUD-7416-->
40+
41+
- {:.fix}**Cache:flush logging**—Improved log entries to indicate the start and finish of the `cache:flush` step.<!--MCLOUD-7503-->
42+
43+
## v2002.1.4
44+
*Release date: November 19, 2020*<br/>
45+
2346
- {:.fix}Fixed an issue that caused deployment failure when the search engine specified in the `SEARCH_CONFIGURATION` environment variable is a value other than `elasticsearch`.<!--MCLOUD-7283-->
2447

2548
## v2002.1.3

0 commit comments

Comments
 (0)