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

Commit 739bed8

Browse files
bdenhamoshmyheliukmaeker12jfrontainandriyShevtsov
authored
ECE-Tools 2002.1.3 docs and release notes (#8161)
* MCLOUD-6939: Errors occur running magento commands in composer cloud docker installation (#8007) * Added variable to skip composer dump-autoload command processing when deploying a Magento Cloud project to a Cloud Docker environment. * MCLOUD-7072: Add CLI command for generating .magento.env.yaml (#8040) * MCLOUD-7072: Add CLI commands for creating and updating .magento.env.yaml * Apply suggestions from code review Co-authored-by: Barny Shergold <[email protected]> Co-authored-by: Margaret Eker <[email protected]> * MCLOUD-6805: ECE-Tools release notes WIP: updating variables * MCLOUD-6805: ECE-Tools release notes First draft * MCLOUD-6805: ECE-Tools release notes Fixed double slash on link * added links to two hot fixes * Update services-mysql.md (#8144) Co-authored-by: Margaret Eker <[email protected]> * Update Magento Cloud Docker instructions for adding custom PHP extensions (#8145) * [Doc] Adding new PHP extensions #155 (#7929) * Clean up instructions for adding PHP extensions - Move extension configuration attribute descriptions and examples to a separate section * Fixed markdown syntax * Fix link definitions * Fix link syntax * Apply suggestions from code review Co-authored-by: Yevhen Miroshnychenko <[email protected]> Co-authored-by: Barny Shergold <[email protected]> Co-authored-by: hguthrie <[email protected]> * MCLOUD-6805: ECE-Tools release notes Updated entry for MCLOUD-7098 * MCLOUD-6805: ECE-Tools release notes Fixed merge conflicts * Added docs for SKIP_COMPOSER_DUMP_AUTOLOAD * Apply suggestions from code review Co-authored-by: Margaret Eker <[email protected]> * MCLOUD-6805: ECE-Tools release notes Added release notes entry for #7191 * Update error-codes information with current info (#8152) * Update error-codes information with current info - Replaced file with error-code.md file generated from the ece-tools package * Fixed error messages * Add source file for generating the error code ref Co-authored-by: Barny Shergold <[email protected]> * Fixed comment syntax on internal note * MCLOUD-6805: ECE-Tools release notes Added release not for MCLOUD-7193 * MCLOUD-6805: ECE-Tools release notes Fixed silly empty bullet * MCLOUD-6805: ECE-Tools release notes Per review, updated additional ece-tools docs changes that are unassociated with the release notes. * MCLOUD-6805: ECE-Tools release notes Per review, removed extra space from yaml code block. * MCLOUD-6805: ECE-Tools release notes Per review, tweaking the wording for writeable Cloud Docker environments. * MCLOUD-6805: ECE-Tools release notes Per review, forgot to clarify the pronoun that. * MCLOUD-6805: ECE-Tools release notes Per review, removed extra space, missed it first time around. * MCLOUD-6805: ECE-Tools release notes Ordered 'new' release note before fixed * MCLOUD-6805: ECE-Tools release notes Added links to documentation. * MCLOUD-6805: ECE-Tools release notes Added links to documentation. * Apply suggestions from code review Co-authored-by: Margaret Eker <[email protected]> Co-authored-by: Oleksandr Shmyheliuk <[email protected]> Co-authored-by: maeker12 <{ID}+{username}@users.noreply.github.com> Co-authored-by: jfrontain <[email protected]> Co-authored-by: Andrii Shevtsov <[email protected]> Co-authored-by: Margaret Eker <[email protected]> Co-authored-by: Yevhen Miroshnychenko <[email protected]> Co-authored-by: Barny Shergold <[email protected]> Co-authored-by: hguthrie <[email protected]>
1 parent 7bb4e9c commit 739bed8

File tree

6 files changed

+127
-29
lines changed

6 files changed

+127
-29
lines changed

src/_data/var.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Enterprise Cloud Edition (ECE) ---> Commerce Cloud
1010
# Enterprise Edition for B2B ---> Commerce for B2B
1111

12-
#NOTE: The new product name variables use the old product name abbreviations (e.g., ce, ee, ece, b2b).
12+
#NOTE: The new product name variables use the old product name abbreviations (e.g., ce, ee, ece, b2b).
1313

1414
# Product Name variables
1515

@@ -21,11 +21,11 @@ mbi: Magento Business Intelligence
2121
# Cloud product name variables
2222

2323
ece: Magento Commerce Cloud
24-
ece-release-date: August 5, 2020
24+
ece-release-date: November 9, 2020
2525
csuite: Magento Commerce Cloud Suite
2626
ct: ece-tools
2727
ct-repo: magento/ece-tools
28-
ct-release: 2002.1.2
28+
ct-release: 2002.1.3
2929
mcp-prod: Magento Cloud Patches
3030
mcp-package: magento/magento-cloud-patches
3131
mcp-release: 1.0.8

src/_includes/cloud/error-codes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-Note: The error code tables in this file are auto-generated from source code. To request changes to error code descriptions or suggestions, submit a GitHub issue to the magento/ece-tools repository.->
1+
<!--Note: This topic is auto-generated from the https://github.com/magento/ece-tools/blob/e3b13ca023afe324cd93d0caa2fd62d5683b60b9/config/schema.error.yaml source code. To request changes to error code descriptions or suggestions, submit a GitHub issue to the magento/ece-tools repository.-->
22

33
## Critical Errors
44

@@ -71,9 +71,10 @@ Critical errors indicate a problem with the Magento Commerce Cloud project confi
7171
| 129 | install-update: reset-password | Unable to read reset password template | |
7272
| 130 | install-update: cache_type | Command failed: `php ./bin/magento cache:enable` | Command `php ./bin/magento cache:enable` runs only when Magento was installed but `./app/etc/env.php` file was absent or empty at the beginning of the deployment. Check the `cloud.log` for more information. Add `VERBOSE_COMMANDS: '-vvv'` into `.magento.env.yaml` for more detailed command output. |
7373
| 131 | install-update | The `crypt/key` key value does not exist in the `./app/etc/env.php` file or the `CRYPT_KEY` cloud environment variable | This error occurs if the `./app/etc/env.php` file is not present when Magento deployment begins, or if the `crypt/key` value is undefined. If you migrated the database from another environment, retrieve the crypt key value from that environment. Then, add the value to the [CRYPT_KEY](https://devdocs.magento.com/cloud/env/variables-deploy.html#crypt_key) cloud environment variable in your current environment. See [Add the Magento encryption key](https://devdocs.magento.com/cloud/setup/first-time-setup-import-import.html#encryption-key). If you accidentally removed the `./app/etc/env.php` file, use the following command to restore it from the backup files created from a previous deployment: `./vendor/bin/ece-tools backup:restore` CLI command ." |
74-
| 132 | | Can not connect to the Elasticsearch service | Check that credentials for elasticsearch are correct and service is running |
74+
| 132 | | Can not connect to the Elasticsearch service | Check for valid Elasticsearch credentials and verify that the service is running |
7575
| 133 | validate-config | Remove Magento Braintree module configuration which is no longer supported in Magento 2.4 and later versions. | Support for the Braintree module is no longer included with Magento 2.4.0 and later. Remove the CONFIG__STORES__DEFAULT__PAYMENT__BRAINTREE__CHANNEL variable from the variables section of the .magento.app.yaml file. For Braintree support, use an official Braintree Payments extension from the Magento Marketplace instead. |
7676
| 134 | validate-config | Magento 2.4.0 requires Elasticsearch service to be installed | Install Elasticsearch service |
77+
| 135 | validate-config | The search engine must be set to Elasticsearch for Magento >= 2.4.0 | Check the SEARCH_CONFIGURATION variable for the `engine` option. If it is configured, remove the option, or set the value to "elasticsearch". |
7778

7879
### Post-deploy stage
7980

src/cloud/env/variables-build.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,21 @@ stage:
184184
{:.bs-callout-info}
185185
Because Baler is currently in alpha release, we do not recommend using it in Production environments.
186186

187+
### `SKIP_COMPOSER_DUMP_AUTOLOAD`
188+
189+
- **Default**— _Not set_
190+
- **Version**—Magento 2.1.4 and later
191+
192+
Set to `true` to skip the `composer dump-autoload` command during a {{ site.data.var.mcd-prod }} installation. This variable is only relevant for {{ site.data.var.mcd-prod }} containers with writable file systems. In such cases, skipping the command prevents errors from other commands trying to access code from the deleted `generated` directory.
193+
194+
When Magento runs `composer dump-autoload`, it creates autoload files with links to generated classes in the `generated` folder. In production environments with read-only files systems, this is not a problem. However, for {{ site.data.var.mcd-prod }} installations with writable file systems (created only for testing and development using `./vendor/bin/ece-docker build:compose --with-test`), you can run the `bin/magento -n setup:upgrade` command without the `--keep-generated` option, which deletes the `generated` directory. If the directory is deleted, the `composer dump-autoload` command fails because the autoload contains links to files in the deleted directory.
195+
196+
```yaml
197+
stage:
198+
build:
199+
SKIP_COMPOSER_DUMP_AUTOLOAD: true
200+
```
201+
187202
### `SKIP_SCD`
188203

189204
- **Default**— _Not set_

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,48 @@ When a failure occurs because of an unexpected value in the `.magento.env.yaml`
6767
```
6868

6969
Make any corrections, commit, and push the changes. If you do not receive an error message, then the changes to your configuration file pass the validation.
70+
71+
## Create configuration file from CLI
72+
73+
You can generate a `.magento.env.yaml` configuration file for a Cloud environment using the following `ece-tools` CLI commands.
74+
75+
```bash
76+
php ./vendor/bin/ece-tools cloud:config:create # Creates a new configuration file
77+
```
78+
79+
```bash
80+
php ./vendor/bin/ece-tools cloud:config:update # Updates values in the configuration file
81+
```
82+
83+
Both commands require a single argument, a JSON-formatted array that specifies a value for at least one build, deploy, or post-deploy variable. For example, the following command sets values for the `SCD_THREADS` and `CLEAN_STATIC_FILES` variables.
84+
85+
```bash
86+
php vendor/bin/ece-tools cloud:config:create '{"stage":{"build":{"SCD_THREADS":5}, "deploy":{"CLEAN_STATIC_FILES":false}}}'
87+
```
88+
89+
This command creates a new .magento.env.yaml file with the following settings:
90+
91+
```yaml
92+
stage:
93+
build:
94+
SCD_THREADS: 5
95+
deploy:
96+
CLEAN_STATIC_FILES: false
97+
```
98+
99+
You can use the `cloud:config:update` command to update the new file. For example, the following command changes the `SCD_THREADS` value and adds the `SCD_COMPRESSION_TIMEOUT` configuration:
100+
101+
```bash
102+
php vendor/bin/ece-tools cloud:config:update '{"stage":{"build":{"SCD_THREADS":3, "SCD_COMPRESSION_TIMEOUT":1000}}}'
103+
```
104+
105+
The updated file contains the following configuration:
106+
107+
```yaml
108+
stage:
109+
build:
110+
SCD_THREADS: 3
111+
SCD_COMPRESSION_TIMEOUT: 1000
112+
deploy:
113+
CLEAN_STATIC_FILES: false
114+
```

src/cloud/reference/ece-tools-reference.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,45 @@ php ./vendor/bin/ece-tools list
1919

2020
```terminal
2121
Available commands:
22-
build Builds application
23-
db-dump Creates backup of database
24-
deploy Deploys application
25-
help Displays help for a command
26-
list Lists commands
27-
patch Applies custom patches
22+
build Builds application.
23+
db-dump Creates database backups.
24+
deploy Deploys application.
25+
help Displays help for a command.
26+
list Lists commands.
27+
patch Applies custom patches.
2828
post-deploy Performs after deploy operations.
29-
run Execute scenario(s)
29+
run Execute scenario(s).
3030
backup
31-
backup:list Shows the list of backup files
31+
backup:list Shows the list of backup files.
3232
backup:restore Restore important configuration files. Run backup:list to show the list of backup files
33-
build
34-
build:generate Generates all necessary files for build stage
35-
build:transfer Transfer generated files into init directory
33+
build.
34+
build:generate Generates all necessary files for build stage.
35+
build:transfer Transfers generated files into init directory.
36+
cloud
37+
cloud:config:create Creates a `.magento.env.yaml` file with the specified build, deploy, and post-deploy variable configuration. Overwrites any existing `.magento,.env.yaml` file.
38+
cloud:config:update Updates the existing `.magento.env.yaml` file with the specified configuration. Creates `.magento.env.yaml` file if it does not exist.
3639
config
3740
config:dump [dump] Dump configuration for static content deployment.
3841
cron
39-
cron:disable Disable all Magento cron processes and kills currently running
40-
cron:enable Enable Magento cron processes
41-
cron:kill Kill all Magento cron processes
42+
cron:disable Disable all Magento cron processes and kills currently running.
43+
cron:enable Enable Magento cron processes.
44+
cron:kill Kill all Magento cron processes.
4245
cron:unlock Unlock cron jobs that stuck in "running" state.
4346
dev
4447
dev:git:update-composer Updates composer for deployment from git.
4548
env
46-
env:config:show Display encoded cloud configuration environment variables
49+
env:config:show Display encoded cloud configuration environment variables.
50+
error
51+
error:show Display info about error by error id or info about all errors from the last deployment.
4752
module
48-
module:refresh Refresh config to enable newly added modules
53+
module:refresh Refresh config to enable newly added modules.
4954
wizard
50-
wizard:ideal-state Verifies ideal state of configuration
51-
wizard:master-slave Verifies master-slave configuration
52-
wizard:scd-on-build Verifies SCD on build configuration
53-
wizard:scd-on-demand Verifies SCD on demand configuration
54-
wizard:scd-on-deploy Verifies SCD on deploy configuration
55+
wizard:ideal-state Verifies ideal state of configuration.
56+
wizard:master-slave Verifies master-slave configuration.
57+
wizard:scd-on-build Verifies SCD on build configuration.
58+
wizard:scd-on-demand Verifies SCD on demand configuration.
59+
wizard:scd-on-deploy Verifies SCD on deploy configuration.
60+
wizard:split-db-state Verifies ability to split DB and whether DB was already split or not.
5561
```
5662
{:.no-copy}
5763

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

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,41 @@ 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.2
20+
## v2002.1.3
2121
*Release date: {{ site.data.var.ece-release-date }}*<br/>
2222

23-
<!--Add release notes below-->
23+
**Infrastructure updates**
24+
25+
- {:.new}Added ece-tools support for the read-only `pub/static` directory when static content is set to deploy in the build stage.<!--MC-37699-->
26+
27+
- {:.new}Added support for Elasticsearch 7.9 and Redis 6 for compatibility with upcoming Magento releases.<!--MCLOUD-7191-->
28+
29+
- {:.fix}Updated the ece-tools `composer.json` to add a required dependency for the Magento Quality Patches package. This fixes a circular dependency that existed between the ece-tools and magento-cloud-patches packages.<!--MCLOUD-6910-->
30+
31+
**Validation and log improvements**
32+
33+
- {:.new}Added search-engine validation to ensure that `elasticsearch` is set for {{site.data.var.ece }} 2.4 and later. If the validation fails, the deployment is stopped with a critical error message suggesting fixes for the issue. See [Critical Errors, Deploy stage]({{ site.baseurl }}/cloud/reference/ece-tools-error-reference.html#deploy-stage).<!--MCLOUD-6937-->
34+
35+
- {:.new}Added Elasticsearch validation to check the compatibility between the Elasticsearch service version and the Magento version.<!--MCLOUD-7193-->
36+
37+
- {:.new}Updated the Elasticsearch compatibility error message to show the versions of Elasticsearch that are compatible with the Magento Elasticsearch module. The error message now provides the specific Elasticsearch versions to install in your Cloud infrastructure so that it is compatible with the Elasticsearch module used by your version of Magento. See [Warning Errors, Deploy stage]({{ site.baseurl }}/cloud/reference/ece-tools-error-reference.html#deploy-stage-1).<!--MCLOUD-6698-->
38+
39+
- {:.new}Added warning errors `2026` and `2027` for invalid `MAGE_MODE` environment variable setting. The only valid value is `production`. Before this fix, `MAGE_MODE` could be set to `developer` without deployment errors, only to cause errors later when trying to write to read-only files. See [Warning Errors]({{ site.baseurl }}/cloud/reference/ece-tools-error-reference.html#warning-errors).<!--MCLOUD-6708-->
40+
41+
- {:.fix}Fixed validation for Redis, RabbitMQ and MySQL services to ensure these versions are compatible with the Magento version. Valid versions of these services are now written to the `cloud.log`.<!--MCLOUD-7098-->
42+
43+
- {:.fix}Updated the `cloud.log` to include the concurrent requests limit for sending requests during cache warmup. This value is configured in the [WARM_UP_CONCURRENCY]({{ site.baseurl }}/cloud/env/variables-post-deploy.html#warm_up_concurrency) post-deploy variable.<!--MCLOUD-5563-->
44+
45+
**CLI command updates**
46+
47+
- {:.new}Added CLI commands (`cloud:config:create` and `cloud:config:update`) to create and update the `.magento.env.yaml` file with a configuration that can include one or more build, deploy, and post-deploy variables. See [Create configuration file from CLI]({{ site.baseurl }}/cloud/project/magento-env-yaml.html#create-configuration-file-from-cli).<!--MCLOUD-7072-->
48+
49+
**Environment variable updates**
50+
51+
- {:.new}Added the [SKIP_COMPOSER_DUMP_AUTOLOAD]({{ site.baseurl }}/cloud/env/variables-build.html#skip_composer_dump_autoload) build variable. Setting the variable to `true` stops Magento from running the `composer dump-autoload` command during a {{ site.data.var.mcd-prod }} installation. The variable is only relevant to {{ site.data.var.mcd-prod }} containers with writable file systems (created for testing and development using `./vendor/bin/ece-docker build:compose --with-test`). With such installations, skipping the `composer dump-autoload` command prevents errors when running other commands that try to access files from a deleted `generated` directory.<!--MCLOUD-6939-->
52+
53+
## v2002.1.2
54+
*Release date: August 5, 2020*<br/>
2455

2556
**Validation and log improvements**
2657

@@ -87,7 +118,7 @@ See [Upgrades and patches]({{ site.baseurl }}/cloud/project/project-upgrade-pare
87118
{:.no-copy}
88119
<!--MCLOUD-4077-->
89120
90-
- {:.new}**Added validation for Zend Framework dependencies**–Added compoer dependency validation for the Zend Framework which has migrated to the Laminas project. If the required dependencies are missing, the following error message displays during the build process.
121+
- {:.new}**Added validation for Zend Framework dependencies**–Added composer dependency validation for the Zend Framework which has migrated to the Laminas project. If the required dependencies are missing, the following error message displays during the build process.
91122
92123
```text
93124
Required configuration is missing from the autoload section of the composer.json file.

0 commit comments

Comments
 (0)