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

Publish test artifacts on timeout and not just failure #1561

Merged
merged 5 commits into from
Nov 7, 2018

Conversation

artidoro
Copy link
Contributor

@artidoro artidoro commented Nov 7, 2018

Fixes #1556.

In this PR I add a condition so that we post test artifacts not just in case of failures, but also in case of timeouts, by using not(succeeded()) condition.

I also set the timeout limit for the running the tests to 40 min (this does not include the build time). Still working on the right syntax for the timeout setting.

@shauheen shauheen closed this Nov 7, 2018
@shauheen shauheen reopened this Nov 7, 2018
@shauheen shauheen closed this Nov 7, 2018
@shauheen shauheen reopened this Nov 7, 2018
@shauheen
Copy link
Contributor

shauheen commented Nov 7, 2018

@dotnet-bot rebuild this PR please.

@safern
Copy link
Member

safern commented Nov 7, 2018

There is a syntax error in the yaml template that is why there is no steps shown in the build:

phase-template.yml (Line: 31, Col: 7): Unexpected value 'timeout'

@artidoro
Copy link
Contributor Author

artidoro commented Nov 7, 2018

Yes I am still working on it! But thanks for already taking a look at it.

@artidoro artidoro changed the title WIP: Publish test artifacts on timeout and not just failure Publish test artifacts on timeout and not just failure Nov 7, 2018
@artidoro
Copy link
Contributor Author

artidoro commented Nov 7, 2018

Now it should be ready for review!
I scheduled 8 CI builds with these changes, and the correct behavior was observed: the builds time out after 40 min, and in case of time out the artifacts are still published.

Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

LGTM. Timeout seems reasonable, if we start seeing phases timing out we could just bump it up.

@artidoro artidoro merged commit 70524d3 into dotnet:master Nov 7, 2018
@artidoro artidoro deleted the buildart branch January 5, 2019 00:02
@ghost ghost locked as resolved and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants