Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #29139 [FrameworkBundle][TranslationDebug] Return non-zero ex…
…it code on failure (DAcodedBEAT) This PR was squashed before being merged into the 5.1-dev branch (closes #29139). Discussion ---------- [FrameworkBundle][TranslationDebug] Return non-zero exit code on failure | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | TBD This PR introduces non-zero exit codes upon failure for the `debug:translations` command. The addition can be useful for projects which wish to determine results easily in CI. The exit code returned can be interpreted as a bit array and to determine what failed, one could Bitwise AND the returned exit code to determine what failed. Exit Codes: | Failure Reason | bit array | integer | | ---------------- | --------- | --------- | | General Failure (i.e no translations at all) | `1000000` | 64 | | Missing Translations | `1000001` | 65 | | Unused Translations | `1000010` | 66 | | Fallback Translations | `1000100` | 68 | Example: Given there are missing and unused translations, the expected status code would be `TranslationDebugCommand::EXIT_CODE_MISSING | TranslationDebugCommand::EXIT_CODE_UNUSED`, which would be evaluated to `67`. Commits ------- 0baafd8 [FrameworkBundle][TranslationDebug] Return non-zero exit code on failure
- Loading branch information
Showing
3 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters