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

fix: correct exit code on missing app failure #19676

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

ankush
Copy link
Member

@ankush ankush commented Jan 20, 2023

Exit code should be 1 to indicate that command failed, just raising exception back should do the job, idk why explicit SystemExit is required here? 🤔

@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Jan 20, 2023
@ankush ankush removed the add-test-cases Add test case to validate fix or enhancement label Jan 20, 2023
@ankush ankush marked this pull request as ready for review January 20, 2023 07:38
@ankush ankush requested a review from a team as a code owner January 20, 2023 07:38
@ankush ankush requested review from shariquerik and removed request for a team January 20, 2023 07:38
@ankush
Copy link
Member Author

ankush commented Jan 20, 2023

TODO: Audit usage for catch-all exception handling. (done, nothing critical)

@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Merging #19676 (d7feb44) into develop (e80c8ac) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #19676   +/-   ##
========================================
  Coverage    62.92%   62.92%           
========================================
  Files          754      754           
  Lines        70638    70617   -21     
  Branches      6134     6134           
========================================
- Hits         44448    44437   -11     
+ Misses       22714    22704   -10     
  Partials      3476     3476           
Flag Coverage Δ
server 68.67% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ankush ankush merged commit 0449f85 into frappe:develop Jan 20, 2023
@ankush ankush deleted the missing_app_exit branch January 20, 2023 08:21
@ankush ankush added defer backport Backports for some PR are deferred for a week or two to test them properly before releasing backport version-13-hotfix backport version-14-hotfix backport to version 14 and removed defer backport Backports for some PR are deferred for a week or two to test them properly before releasing labels Jan 20, 2023
mergify bot pushed a commit that referenced this pull request Jan 25, 2023
(cherry picked from commit 0449f85)

# Conflicts:
#	frappe/__init__.py
mergify bot pushed a commit that referenced this pull request Jan 25, 2023
ankush added a commit that referenced this pull request Jan 25, 2023
(cherry picked from commit 0449f85)

Co-authored-by: Ankush Menat <ankush@frappe.io>
frappe-pr-bot pushed a commit that referenced this pull request Jan 30, 2023
# [14.25.0](v14.24.0...v14.25.0) (2023-01-30)

### Bug Fixes

* add freeze message for bulk delete ([2a42036](2a42036))
* assertAlmostEqual with precision ([#19794](#19794)) ([9f7c4e0](9f7c4e0))
* Convert doctype name to string ([#19832](#19832)) ([#19834](#19834)) ([a45f31d](a45f31d))
* correct exit code on missing app failure ([#19676](#19676)) ([#19770](#19770)) ([f6139a4](f6139a4))
* **i18n:** Datepicker Turkish translations ([#19777](#19777)) ([#19831](#19831)) ([3e91fb1](3e91fb1))
* incorrect link when std field has problem (backport [#19744](#19744)) ([#19763](#19763)) ([4593bb9](4593bb9))
* **MariaDBTable:** dont attempt to drop index twice ([#19783](#19783)) ([67f80c6](67f80c6))
* Password strength check for long passwords (backport [#19756](#19756)) ([#19765](#19765)) ([a6315f9](a6315f9))
* respect disable sidebar stats on list view ([#19795](#19795)) ([5f57816](5f57816))
* sanitize traceback for common secrets ([#19805](#19805)) ([#19806](#19806)) ([ae6f2b1](ae6f2b1))
* use count instead of concatenated docnames ([06948d1](06948d1))

### Features

* Audit hooks report (backport [#19780](#19780)) ([#19828](#19828)) ([99bdf34](99bdf34))
* better freeze message ([c03f9e7](c03f9e7))
stephenBDT pushed a commit to alias/frappe that referenced this pull request Feb 7, 2023
…19770)

(cherry picked from commit 0449f85)

Co-authored-by: Ankush Menat <ankush@frappe.io>
stephenBDT pushed a commit to alias/frappe that referenced this pull request Feb 7, 2023
# [14.25.0](frappe/frappe@v14.24.0...v14.25.0) (2023-01-30)

### Bug Fixes

* add freeze message for bulk delete ([2a42036](frappe@2a42036))
* assertAlmostEqual with precision ([frappe#19794](frappe#19794)) ([9f7c4e0](frappe@9f7c4e0))
* Convert doctype name to string ([frappe#19832](frappe#19832)) ([frappe#19834](frappe#19834)) ([a45f31d](frappe@a45f31d))
* correct exit code on missing app failure ([frappe#19676](frappe#19676)) ([frappe#19770](frappe#19770)) ([f6139a4](frappe@f6139a4))
* **i18n:** Datepicker Turkish translations ([frappe#19777](frappe#19777)) ([frappe#19831](frappe#19831)) ([3e91fb1](frappe@3e91fb1))
* incorrect link when std field has problem (backport [frappe#19744](frappe#19744)) ([frappe#19763](frappe#19763)) ([4593bb9](frappe@4593bb9))
* **MariaDBTable:** dont attempt to drop index twice ([frappe#19783](frappe#19783)) ([67f80c6](frappe@67f80c6))
* Password strength check for long passwords (backport [frappe#19756](frappe#19756)) ([frappe#19765](frappe#19765)) ([a6315f9](frappe@a6315f9))
* respect disable sidebar stats on list view ([frappe#19795](frappe#19795)) ([5f57816](frappe@5f57816))
* sanitize traceback for common secrets ([frappe#19805](frappe#19805)) ([frappe#19806](frappe#19806)) ([ae6f2b1](frappe@ae6f2b1))
* use count instead of concatenated docnames ([06948d1](frappe@06948d1))

### Features

* Audit hooks report (backport [frappe#19780](frappe#19780)) ([frappe#19828](frappe#19828)) ([99bdf34](frappe@99bdf34))
* better freeze message ([c03f9e7](frappe@c03f9e7))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant