Skip to content

umpf: propagate umpf push exit code#64

Merged
michaelolbrich merged 1 commit intopengutronix:masterfrom
a3f:umpf-push-error
Apr 17, 2026
Merged

umpf: propagate umpf push exit code#64
michaelolbrich merged 1 commit intopengutronix:masterfrom
a3f:umpf-push-error

Conversation

@a3f
Copy link
Copy Markdown
Member

@a3f a3f commented Mar 19, 2026

An umpf push that fails at the final git push step does not exit with an error status.

This makes it difficult to use umpf push in a CI setup, where no one looks at job output if the job did not signal an error.

Propagate the error code to fix this.

Reported-by: Leonard Göhrs l.goehrs@pengutronix.de
Closes: #63

@a3f a3f requested review from hnez and michaelolbrich March 19, 2026 16:38
Copy link
Copy Markdown
Member

@hnez hnez left a comment

Choose a reason for hiding this comment

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

I am not much of a shell scripting expert, but I think this looks good.
Thanks for looking into this!

Comment thread umpf
cleanup is called at the end of many operations and it doesn't not take
care of saving the last exit code.

This results in an umpf push failing at the final git push step to not exit
with an error status.

This makes it difficult to use umpf push in a CI setup, where no one looks
at job output if the job did not signal an error.

Propagate the error code through cleanup to fix this.

Reported-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Closes: pengutronix#63
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
@a3f a3f force-pushed the umpf-push-error branch from d4fe4a2 to e809608 Compare April 17, 2026 12:08
@a3f a3f requested a review from michaelolbrich April 17, 2026 12:08
@michaelolbrich michaelolbrich merged commit 0d713dc into pengutronix:master Apr 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed umpf push returns successful exit status

3 participants