-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make compose.py's exit code 1 if an error was logged #38084
Make compose.py's exit code 1 if an error was logged #38084
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
@I-am-Erk are you ready to fail CI tests for Ultica? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
According to https://github.com/I-am-Erk/CDDA-Tilesets/runs/638846035 it looks like there are a number of failures, i.e. |
Pinging @barsoosayque since Erk seems to be pretty busy with life these days. |
e350ac0
to
227a5c7
Compare
This pull request introduces 2 alerts when merging 227a5c7 into 6f77ec7 - view on LGTM.com new alerts:
|
Ultica is fixed and 100% ready to fail ! |
Wonderful! Unfortunately it looks like what I've done is considered bad python and LGTM is now here to tell us about it. Will fix. |
This is a bit of a hack, but usage of a global seems to be the minimally invasive way to do this. Also categorized the messages into Info, Warning, and Error types.
227a5c7
to
f180b55
Compare
Alright I cleaned things up a bit. Hopefully lgtm likes it. |
This pull request introduces 1 alert when merging f180b55 into b8fb092 - view on LGTM.com new alerts:
|
Well, LGTM is wrong. That code is very much reachable |
Yea it definitely has a bug where it mishandles reachability in python.
…On Thu, May 7, 2020, 2:38 AM Isaac Freund ***@***.***> wrote:
Well, LGTM is wrong. That code is very much reachable
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#38084 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSA5FJTA2CC4XTMUFRMS3RQJ6SPANCNFSM4KWPJ6AQ>
.
|
Summary
SUMMARY: None
Purpose of change
This will make Ultica's CI fail if an error is logged while composing which will be helpful in preventing PRs with errors from being merged in the future.
Describe the solution
Create a global to track error state and exit with code 1 if an error occured. This is a bit of a hack, but usage of a global seems to be the simplest an least invasive way to do this
Testing
Tested that composing Ultica (which currently has some errors) exited with code 1.
Additional context
This shouldn't be merged until @I-am-Erk has signed off on it and is ready for CI builds of Ultica to fail on errors.