Skip to content
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

Set up CI with Azure Pipelines #96

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Conversation

jbrockmendel
Copy link
Owner

No description provided.

@jbrockmendel
Copy link
Owner Author

@chrisrpatterson you mentioned over in pandas that you may be able to help with azure-pipelines setup. Can I ping you for help on a much less-popular project?

I think I've gotten most of the config put together. What I'm still stuck on is the fact that the pipeline is showing Green here on the PR page while there is still a failing test in the most recent log. Have I missed a config option somewhere?

@chrispat
Copy link

chrispat commented Oct 5, 2018

The publish test results task will not fail the build based on failed test results alone. You will need to have the test script return a non-zero exit code to fail the build.

@jbrockmendel
Copy link
Owner Author

You will need to have the test script return a non-zero exit code to fail the build.

Thanks for the quick feedback. If you're not the right person to ask about this, let me know and I'll stop bugging you.

I copied the pandas version as closely as possible, cannot tell where the relevant difference is. AFACT the pytest call here should return a non-zero exit code, which should in turn mean a non-zero return code here. Is it obvious why this works for pandas but not here?

@jbrockmendel
Copy link
Owner Author

@bashtage any interest in helping troubleshoot this? I'm kind of hoping that once the config is figured out once it can be shared here/arch/linearmodels/statsmodels

@bashtage
Copy link

bashtage commented Oct 9, 2018

I don't feel a lot of pressure to have higher performance CI, and setup seems to be challenging.


exit "$RET"
exit $RET
Copy link

Choose a reason for hiding this comment

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

WHy not just exit 1 to see if this is the issue?

ci/script_single.sh
echo $?
ci/script_multi.sh
echo $?
Copy link
Owner Author

Choose a reason for hiding this comment

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

The publish test results task will not fail the build based on failed test results alone. You will need to have the test script return a non-zero exit code to fail the build.

@chrisrpatterson both here and two lines above I'm seeing a 1, as expected. Is there somewhere else where a non-zero exit code needs to be returned?

Choose a reason for hiding this comment

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

Can you try adding set -o pipefail as the first line of your script? I suspect echo returns non-zero and it is the last line.

Copy link
Owner Author

Choose a reason for hiding this comment

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

@chrisrpatterson thanks for the suggestion. Added that on line 34 above, no clear difference.

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