Skip to content

Allow mako upload failure not to fail the Github commit. - #5541

Merged
hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:mako-upload
Apr 22, 2021
Merged

hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:mako-upload

Conversation

@hanhanW

@hanhanW hanhanW commented Apr 21, 2021

Copy link
Copy Markdown
Contributor

We can see the regression on Mako webpages. It's annoying to see badges
being red because of "regressions". Turn it off for now. It will still
complain about it if it fails at other stages.

We can see the regression on Mako webpages. It's annoying to see badges
being red because of "regressions". Turn it off for now. It will still
complain about it if it fails at other stages.
@hanhanW
hanhanW requested a review from GMNGeoffrey April 21, 2021 10:12
@google-cla google-cla Bot added the cla: yes label Apr 21, 2021

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you sure that this actually prevents the failed status? From the docs it looks like it just allows dependent steps to run

https://buildkite.com/docs/pipelines/dependencies#allowed-failure-and-soft-fail

@hanhanW

hanhanW commented Apr 21, 2021

Copy link
Copy Markdown
Contributor Author

Are you sure that this actually prevents the failed status? From the docs it looks like it just allows dependent steps to run

https://buildkite.com/docs/pipelines/dependencies#allowed-failure-and-soft-fail

It's been a while that I touched these things. I only know soft-fail, and not pretty sure on this. Let me take a deeper look tomorrow and circle back to you.

@antiagainst

Copy link
Copy Markdown
Member

Yeah soft_fail will mark the whole job status as success. (The upload step is still a failure and in red; you can check that by going to buildkite UI.)

@hanhanW

hanhanW commented Apr 22, 2021

Copy link
Copy Markdown
Contributor Author

Thanks for the explanation, Lei!

@hanhanW
hanhanW merged commit 182e54d into iree-org:main Apr 22, 2021
@hanhanW
hanhanW deleted the mako-upload branch April 22, 2021 08:17
@hanhanW

hanhanW commented Apr 22, 2021

Copy link
Copy Markdown
Contributor Author

It looks like not working. :-(

I guess the reason is that the exit_code is 123 not 1? I'm seeing The command exited with status 123 on BuildKite: https://buildkite.com/iree/iree-android-benchmark/builds/2350#d9e29d46-44a7-4007-921a-eb96f7c9d5bd

@hanhanW

hanhanW commented Apr 22, 2021 •

Copy link
Copy Markdown
Contributor Author

I feel it should be - soft_fail: true, then we don't care the exit code.

Allow specified non-zero exit statuses not to fail the build. Note that a timeout always causes a build to fail. Can be either an array of allowed soft failure exit statuses or true to make all exit statuses soft-fail.

@antiagainst

Copy link
Copy Markdown
Member

Yeah the error code matters. I used to put

    soft_fail:
      - exit_status: *

to catch them all.

@GMNGeoffrey

Copy link
Copy Markdown
Member

I think we don't want to catch them all. What exit code does Mako use for "there was a regression"?

@GMNGeoffrey

Copy link
Copy Markdown
Member

Looks like 123. Can we use that?

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.

3 participants