Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[master][bugfix] Remove exit 0 to avoid blocking in CI pipeline #20683

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

mozga-intel
Copy link
Contributor

@mozga-intel mozga-intel commented Oct 20, 2021

Description

Exit 0, returns 'true' and then the CI is stopped; the 0 cannot be returned.

Checklist

Essentials

  • PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

@mxnet-bot
Copy link

Hey @mozga-intel , Thanks for submitting the PR
All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands:

  • To trigger all jobs: @mxnet-bot run ci [all]
  • To trigger specific jobs: @mxnet-bot run ci [job1, job2]

CI supported jobs: [windows-gpu, windows-cpu, centos-cpu, clang, centos-gpu, unix-gpu, unix-cpu, sanity, miscellaneous, website, edge]


Note:
Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin.
All CI tests must pass before the PR can be merged.

@mseth10 mseth10 added the pr-awaiting-testing PR is reviewed and waiting CI build and test label Oct 20, 2021
@marcoabreu
Copy link
Contributor

marcoabreu commented Oct 20, 2021

I'm not sure I can follow you.

Exit 0 means continue, non-zero means abort. To me it seems like you're rather disabling CI rather than fixing the issue clang is revealing and thus aborting... Or is this called in a chain of commands?

Copy link
Contributor

@marcoabreu marcoabreu left a comment

Choose a reason for hiding this comment

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

This is disabling clang-format.

@mseth10 mseth10 added pr-work-in-progress PR is still work in progress and removed pr-awaiting-testing PR is reviewed and waiting CI build and test labels Oct 20, 2021
ci/docker/runtime_functions.sh Show resolved Hide resolved
ci/docker/runtime_functions.sh Outdated Show resolved Hide resolved
@mozga-intel
Copy link
Contributor Author

mozga-intel commented Oct 20, 2021

I'm not sure I can follow you.

Exit 0 means continue, non-zero means abort. To me it seems like you're rather disabling CI rather than fixing the issue clang is revealing and thus aborting... Or is this called in a chain of commands?

@marcoabreu ; Thanks for the question!
From man bash on return [n]

Exit 0 means continue, non-zero means abort. To me it seems like you're rather disabling CI rather than fixing the issue clang is revealing and thus aborting... Or is this called in a chain of commands?

on exit [n]

Cause the shell to exit with a status of n. If n is omitted, the exit status is that of the last command executed. A trap on EXIT is executed before the shell terminates.

Finally, functions, when called, the exit 0 (within the function) exits a code ~ without a failure. The return has nothing to do with exit codes.

@mseth10 mseth10 added pr-awaiting-testing PR is reviewed and waiting CI build and test and removed pr-work-in-progress PR is still work in progress labels Oct 20, 2021
@mseth10 mseth10 added pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test and removed pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress labels Oct 20, 2021
@mozga-intel
Copy link
Contributor Author

@mxnet-bot run ci [centos-gpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [centos-gpu]

@mseth10 mseth10 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Oct 20, 2021
@mozga-intel
Copy link
Contributor Author

@mxnet-bot run ci [centos-gpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [centos-gpu]

@mseth10 mseth10 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-awaiting-merge Review and CI is complete. Ready to Merge and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Oct 21, 2021
@mozga-intel
Copy link
Contributor Author

@szha Could you please help with a merge? Thanks!

@szha szha merged commit 5d247f1 into apache:master Oct 21, 2021
@szha
Copy link
Member

szha commented Oct 21, 2021

thanks for the fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-merge Review and CI is complete. Ready to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants