You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
- description: Added new [parameterized data fixture](https://devdocs.magento.com/guides/v2.4/test/integration/parameterized_data_fixture.html)
23
+
and [data fixture data provider annotation](https://devdocs.magento.com/guides/v2.4/test/integration/annotations/magento-data-fixture-data-provider.html)
Copy file name to clipboardExpand all lines: src/upgrade-compatibility-tool/developer.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This topic contains information for developers who work closely with the {{site.
12
12
13
13
## {{site.data.var.ee}} API index integration
14
14
15
-
{{site.data.var.ee}} API index integration is an internal integration solution that encompasses a set of tools to explore {{site.data.var.ee}} extensions developed by Adobe, {{site.data.var.ee}} Partners, and 3rd-party vendors based on static code analysis.
15
+
{{site.data.var.ee}} API index integration is an internal integration solution that encompasses a set of tools to explore {{site.data.var.ee}} extensions developed by Adobe, {{site.data.var.ee}} Partners, and third-party vendors based on static code analysis.
16
16
17
17
The integration with the {{site.data.var.ee}} API index is done through:
18
18
@@ -59,14 +59,14 @@ To run the integration tests, execute one of the following commands:
[Eslint](https://eslint.org/docs/user-guide/getting-started) is a static code analysis tool for identifying problematic patterns found in JavaScript code, with the goal of making code more consistent and avoiding bugs.
91
+
### ESLint code analysis
92
+
93
+
[ESLint](https://eslint.org/docs/user-guide/getting-started) is a static code analysis tool for identifying problematic patterns found in JavaScript code, with the goal of making code more consistent and avoiding bugs.
Copy file name to clipboardExpand all lines: src/upgrade-compatibility-tool/run.md
+98-94Lines changed: 98 additions & 94 deletions
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,7 @@ The `upgrade:check` command runs the {{site.data.var.uct}} and checks an {{site.
28
28
{:.bs-callout-warning}
29
29
Execute only when the project root (or main) directory is provided.
30
30
31
-
This command checks for core code changes for that specific {{site.data.var.ee}} instance, as well as all custom code changes installed in it.
32
-
33
-
However, you can run the `core:code:changes` command to analyze only core code changes for that specific {{site.data.var.ee}} instance. See [Core code changes]({{site.baseurl}}/upgrade-compatibility-tool/run.html#core-code) section for more information.
31
+
You can run the `core:code:changes` command to analyze only core code changes for that specific {{site.data.var.ee}} instance. See [Core code changes]({{site.baseurl}}/upgrade-compatibility-tool/run.html#core-code) section for more information.
34
32
35
33
While you can use the `graphql:compare` command to compare two GraphQL schemas to check for any changes between them. See [GraphQL schema compatibility verification]({{site.baseurl}}/upgrade-compatibility-tool/run.html#graphql-schema-compatibility-verification) section for more information.
36
34
@@ -64,40 +62,118 @@ bin/uct upgrade:check --help
64
62
65
63
Available `--help` options for the `upgrade:check` command:
66
64
67
-
*`--raw`: Outputs raw information.
68
-
*`--format=FORMAT`: Output format (txt, xml, json, md).
69
-
*`--short`: Skip arguments description.
70
-
*`-o, --output[=OUTPUT]`: Path directory to export the `.json` output file.
*`-m, --module-path[=MODULE-PATH]`: Path of the modules to be analysed
66
+
*`-a, --current-version[=CURRENT-VERSION]`: Current {{site.data.var.ee}} version, version of the {{site.data.var.ee}} installation will be used if omitted.
67
+
*`-c, --coming-version[=COMING-VERSION]`: Target {{site.data.var.ee}} version, version of the {{site.data.var.ee}} installation will be used if omitted.
68
+
*`--json-output-path[=JSON-OUTPUT-PATH]`: Path of the file where the output will be exported in json format
69
+
*`--html-output-path[=HTML-OUTPUT-PATH]`: Path of the file where the output will be exported in HTML format
75
70
*`--min-issue-level`: Minimum issue level to show in report. Default is [WARNING].
76
71
*`--ignore-current-version-compatibility-issues`: Use this option when you do not want to include known critical issues, errors and warnings in your {{site.data.var.uct}} report.
77
-
*`-h, --help`: Display help for that specific command. If no command is provided, `list` command is the default result.
78
-
*`-q, --quiet`: Do not outputs any message while executing the command.
79
-
*`-v, --version`: Display app version.
72
+
*`--context=CONTEXT`: Execution context. This option is for integration purposes and does not affect the execution result.
73
+
*`-h, --help`: Display help for the given command. If no command is provided, `list` command is the default result.
74
+
*`-q, --quiet`: Do not output any message while executing the command.
75
+
*`-v, --version`: Display application version.
80
76
*`--ansi, --no-ansi`: Enable ANSI output.
81
77
*`-n, --no-interaction`: Do not ask any interactive question while executing the command.
82
78
*`-v, --vv, --vvv, --verbose`: Increase verbosity of output communications. 1 for normal output, 2 for verbose output, and 3 for DEBUG output.
83
79
84
80
### Output
85
81
86
-
The {{site.data.var.uct}} exports a `json` file report identifying the affected code or modules, and the severity and description of the problem for every issue encountered.
82
+
As a result of the analysis performed, the {{site.data.var.uct}} exports a report that contains a list of issues for each file specifying its severity, error code and error description.
*`[=OUTPUT]`: Path directory to export the `.json` output file.
147
+
*`[=JSON-OUTPUT-PATH]`: Path directory to export the `.json` output file.
148
+
149
+
#### HTML
150
+
151
+
The HTML file will also contain the list of identified issues and the summary of the analysis. But on top of this, it will include 4 different charts that makes the report more visually understandable:
152
+
153
+
**Modules by issue severity*: shows a severity distribution by modules.
154
+
**Files by issue severity*: shows a severity distribution by files.
155
+
**Modules ordered by total number of issues*: shows the 10 most compromised modules taking into account warnings, errors and critical errors.
156
+
**Modules with relative sizes and issues*: The more files a module contains, the bigger its circle. The more issues a module has, the more red its circle appears.
157
+
158
+
These charts will allow you to identify the parts are most compromised and the ones that require more work to perform the upgrade to a later version with just a glance.
* [WARNING][1131] Line 23: Extending from class 'Magento\Framework\App\Action\Action' that is @deprecated on version '2.4.2'
246
-
* [ERROR][1429] Line 103: Call method 'Magento\Framework\Api\SearchCriteriaBuilder::addFilters' that is non API on version '2.4.2'
247
-
* [CRITICAL][1110] Line 60: Instantiating class/interface 'Magento\Catalog\Model\ProductRepository' that does not exist on version '2.4.2'
248
-
```
249
-
250
-
The report also includes a detailed summary:
251
-
252
-
**Installed Version*: the version currently installed.
253
-
**{{site.data.var.ee}} Version*: the version you want to upgrade to.
254
-
**Running time*: amount of time the analysis took to build the report (mm:ss).
255
-
**{{site.data.var.ee}} core checked modules*: amount of core checked modules.
256
-
**{{site.data.var.ee}} core modified files*: amount of core modified file.
257
-
**{{site.data.var.ee}} % core modified files*: percentage of core modified files.
258
-
**{{site.data.var.ee}} checked modules*: amount of checked modules.
259
-
**Compatibility errors found*: amount of compatibility errors.
260
-
**Compatibility warnings found*: amount of compatibility warnings.
261
-
**Compatibility critical errors found*: amount of compatibility critical errors.
262
-
**GraphQL critical errors found*: amount of GraphQL critical errors.
263
-
**GraphQL warnings found*: amount of GraphQL warnings.
264
-
**Total errors found*: total amount of errors found.
265
-
**Total warnings found*: total amount of warnings found.
266
-
**Complexity score*: a figure that indicates how difficult is to upgrade from the current version to the new one.
267
-
268
-
The lower this number is, the easier is to perform the upgrade.
269
-
270
-
See the [Error message reference]({{site.baseurl}}/upgrade-compatibility-tool/errors.html) topic for more information.
271
-
272
-
## Example of a general summary report
273
-
274
-
```terminal
275
-
------------------------------------- -------
276
-
Installed version 2.4.2
277
-
{{site.data.var.ee}} version 2.4.3
278
-
Running time 0m:48s
279
-
Core files checked 0
280
-
Core files modified 0
281
-
% of files modified 0.00
282
-
Checked modules 14
283
-
Compatibility errors found 109
284
-
Compatibility warnings found 0
285
-
Compatibility critical errors found 0
286
-
GraphQL critical errors found 0
287
-
GraphQL warnings found 0
288
-
Total errors found 109
289
-
Total warnings found 0
290
-
Total critical errors found 0
291
-
Complexity score 218
292
-
------------------------------------- -------
293
-
```
294
-
295
-
Regarding the GraphQL schema compatibility comparison, the output would be very similar:
296
-
297
-
## Run {{site.data.var.uct}} via PHPstorm plugin
301
+
## Run {{site.data.var.uct}} via PhpStorm plugin
298
302
299
-
You can run the {{site.data.var.uct}} with a run configuration via the PHPstorm plugin. See the [Upgrade Compatibility Tool Run Configuration]({{site.baseurl}}/guides/v2.3/ext-best-practices/phpstorm/uct-run-configuration.html) topic for more information.
303
+
You can run the {{site.data.var.uct}} with a run configuration via the PhpStorm plugin. See the [{{site.data.var.uct}} Run Configuration]({{site.baseurl}}/guides/v2.3/ext-best-practices/phpstorm/uct-run-configuration.html) topic for more information.
300
304
301
305
## Troubleshooting
302
306
@@ -311,7 +315,7 @@ If after running this command:
0 commit comments