Skip to content

Return $? was placed wrongly#11351

Closed
potiuk wants to merge 1 commit intoapache:masterfrom
PolideaInternal:fix-return-in-wrong-place
Closed

Return $? was placed wrongly#11351
potiuk wants to merge 1 commit intoapache:masterfrom
PolideaInternal:fix-return-in-wrong-place

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Oct 8, 2020

If some other check failed before, it could cause exit with wrong
value


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@potiuk potiuk requested a review from ashb October 8, 2020 13:59
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When was this introduced?

@potiuk
Copy link
Member Author

potiuk commented Oct 8, 2020

I am looking into it. And why it has not failed before. I am still looking at it but at least that should fix it - it looks like when you have some earlier check setting the exit value while +e is in effect caused this one to exit with 1. So probably something started to leave the exit status "1" recently from earlier steps

@potiuk
Copy link
Member Author

potiuk commented Oct 8, 2020

So it's really a side effect/bug present there for a while but not noticed before, but I am wondering why it just started to appear. looking at it.

If some other check failed before, it could cause exit with wrong
value
@potiuk potiuk force-pushed the fix-return-in-wrong-place branch from 2b4bcc0 to 1f2da2f Compare October 8, 2020 14:24
@potiuk potiuk closed this Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants