{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1995","repository_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent","labels_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1995/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1995/comments","events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1995/events","html_url":"https://github.com/Microsoft/azure-pipelines-agent/issues/1995","id":385822260,"node_id":"MDU6SXNzdWUzODU4MjIyNjA=","number":1995,"title":"Task timeout no longer causes error/fail state","user":{"login":"kenkuo","id":5104436,"node_id":"MDQ6VXNlcjUxMDQ0MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5104436?v=4","gravatar_id":"","url":"https://api.github.com/users/kenkuo","html_url":"https://github.com/kenkuo","followers_url":"https://api.github.com/users/kenkuo/followers","following_url":"https://api.github.com/users/kenkuo/following{/other_user}","gists_url":"https://api.github.com/users/kenkuo/gists{/gist_id}","starred_url":"https://api.github.com/users/kenkuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenkuo/subscriptions","organizations_url":"https://api.github.com/users/kenkuo/orgs","repos_url":"https://api.github.com/users/kenkuo/repos","events_url":"https://api.github.com/users/kenkuo/events{/privacy}","received_events_url":"https://api.github.com/users/kenkuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-29T16:35:17Z","updated_at":"2018-11-29T16:41:09Z","closed_at":null,"author_association":"NONE","body":"From https://github.com/Microsoft/azure-pipelines-tasks/issues/8883\r\n\r\n\r\n## Environment\r\n\r\n- Agent - Hosted or Private: \r\n    \r\n    Private agent running on Ubuntu 16.04\r\n\r\n## Issue Description\r\n\r\n\r\n\r\nCurrently we are seeing that task timeouts no longer fail the task. See examples below (tasks timing out at 25 minutes)\r\n\r\nTask name: Docker (Run an image)\r\nIssue: When the task times out with timeoutInMinutes specified, the task is marked as success (green) and moves on.\r\n![actual](https://user-images.githubusercontent.com/5104436/48801443-04a4da00-ecd2-11e8-9882-9fd71f6430b7.png)\r\n\r\n\r\nExpected: When the task times out, the task is marked as failed and throws error. \r\n![expected](https://user-images.githubusercontent.com/5104436/48801444-04a4da00-ecd2-11e8-9c50-e31d090dc16b.png)\r\n\r\n\r\nHere is a log from a recent occurrence (1 hr time out, step is marked green).\r\n\r\n2018-11-28T22:34:45.4089166Z ##[section]Starting: --removed--\r\n2018-11-28T22:34:45.4095742Z ==============================================================================\r\n2018-11-28T22:34:45.4095913Z Task         : Docker\r\n2018-11-28T22:34:45.4096060Z Description  : Build, tag, push, or run Docker images, or run a Docker command. Task can be used with Docker or Azure Container registry.\r\n2018-11-28T22:34:45.4096229Z Version      : 0.3.23\r\n2018-11-28T22:34:45.4096334Z Author       : Microsoft Corporation\r\n2018-11-28T22:34:45.4096477Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=848006)\r\n2018-11-28T22:34:45.4096713Z ==============================================================================\r\n2018-11-28T22:34:45.6087419Z a9d31fa1-ee32-45a4-8bba-3dc4da47243c exists true\r\n2018-11-28T22:34:45.6879238Z [command]/usr/bin/docker run --removed--\r\n2018-11-28T23:34:45.4280801Z ##[section]Finishing: --removed--\r\n\r\n\r\n\r\nNormally the log would indicate that the task timed out rather than simply Finishing."},"comment":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/comments/442904286","html_url":"https://github.com/Microsoft/azure-pipelines-agent/issues/1995#issuecomment-442904286","issue_url":"https://api.github.com/repos/Microsoft/azure-pipelines-agent/issues/1995","id":442904286,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjkwNDI4Ng==","user":{"login":"TingluoHuang","id":1750815,"node_id":"MDQ6VXNlcjE3NTA4MTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1750815?v=4","gravatar_id":"","url":"https://api.github.com/users/TingluoHuang","html_url":"https://github.com/TingluoHuang","followers_url":"https://api.github.com/users/TingluoHuang/followers","following_url":"https://api.github.com/users/TingluoHuang/following{/other_user}","gists_url":"https://api.github.com/users/TingluoHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/TingluoHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TingluoHuang/subscriptions","organizations_url":"https://api.github.com/users/TingluoHuang/orgs","repos_url":"https://api.github.com/users/TingluoHuang/repos","events_url":"https://api.github.com/users/TingluoHuang/events{/privacy}","received_events_url":"https://api.github.com/users/TingluoHuang/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T16:41:09Z","updated_at":"2018-11-29T16:41:09Z","author_association":"MEMBER","body":"@kenkuo \r\nWhat's your step timeout setting? 25 min or 60 min\r\nthe log shows the step runs for less than 60 min. :)\r\n`2018-11-28T22:34:45.6087419Z` ->`2018-11-28T23:34:45.4280801Z`"}}
{"actor":{"display_login":"TingluoHuang"}}