{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5971","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5971/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5971/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5971/events","html_url":"https://github.com/travis-ci/travis-ci/issues/5971","id":151946511,"number":5971,"title":"Folding can cause logs to be displayed out of (temporal) order","user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/team%20teal","name":"team teal","color":"05b49b"},{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/travis-web","name":"travis-web","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"drogus","id":5004,"avatar_url":"https://avatars.githubusercontent.com/u/5004?v=3","gravatar_id":"","url":"https://api.github.com/users/drogus","html_url":"https://github.com/drogus","followers_url":"https://api.github.com/users/drogus/followers","following_url":"https://api.github.com/users/drogus/following{/other_user}","gists_url":"https://api.github.com/users/drogus/gists{/gist_id}","starred_url":"https://api.github.com/users/drogus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drogus/subscriptions","organizations_url":"https://api.github.com/users/drogus/orgs","repos_url":"https://api.github.com/users/drogus/repos","events_url":"https://api.github.com/users/drogus/events{/privacy}","received_events_url":"https://api.github.com/users/drogus/received_events","type":"User","site_admin":false},"assignees":[{"login":"drogus","id":5004,"avatar_url":"https://avatars.githubusercontent.com/u/5004?v=3","gravatar_id":"","url":"https://api.github.com/users/drogus","html_url":"https://github.com/drogus","followers_url":"https://api.github.com/users/drogus/followers","following_url":"https://api.github.com/users/drogus/following{/other_user}","gists_url":"https://api.github.com/users/drogus/gists{/gist_id}","starred_url":"https://api.github.com/users/drogus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drogus/subscriptions","organizations_url":"https://api.github.com/users/drogus/orgs","repos_url":"https://api.github.com/users/drogus/repos","events_url":"https://api.github.com/users/drogus/events{/privacy}","received_events_url":"https://api.github.com/users/drogus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-04-29T19:04:48Z","updated_at":"2016-10-12T20:15:01Z","closed_at":null,"body":"# Setup\r\nConsider this [`.travis.yml`](https://github.com/BanzaiMan/travis_production_test/blob/5974478964aa717834cd4e1d379fadb968ae78e3/.travis.yml):\r\n\r\n```yaml\r\nbefore_deploy:\r\n  - echo \"before_deploy\"\r\n  - date\r\ndeploy:\r\n  - provider: script\r\n    script: bash ./echo.sh first\r\n    on:\r\n      branch: default\r\n  - provider: script\r\n    script: bash ./echo.sh second\r\n    on:\r\n      branch: default\r\n\r\nafter_deploy:\r\n  - sleep 5\r\n  - echo \"after_deploy\"\r\n  - date\r\n```\r\n\r\n`echo.sh` basically `echo`es the first arg (https://github.com/BanzaiMan/travis_production_test/blob/5974478964aa717834cd4e1d379fadb968ae78e3/echo.sh#L4)\r\n\r\n# Expected behavior\r\nIn the order of execution, you should see:\r\n\r\n1. `before_deploy`\r\n1. `Deploy! first`\r\n1. (sleep)\r\n1. `after_deploy`\r\n1. `before_deploy`\r\n1. `Deploy! second`\r\n1. (sleep)\r\n1. `after_deploy`\r\n\r\nThe [raw log](https://s3.amazonaws.com/archive.travis-ci.org/jobs/126470981/log.txt) shows that these events do happen in the expected order. (See also the `date` outputs.)\r\n\r\n# Actual behavior\r\nHowever, the [build log](https://travis-ci.org/BanzaiMan/travis_production_test/builds/126470980) shows:\r\n\r\n1. `before_deploy`\r\n1. `before_deploy`\r\n1. `Deploy! first`\r\n1. `Deploy! second`\r\n1. (sleep)\r\n1. (sleep)\r\n1. `after_deploy`\r\n1. `after_deploy`\r\n"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/253325732","html_url":"https://github.com/travis-ci/travis-ci/issues/5971#issuecomment-253325732","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5971","id":253325732,"user":{"login":"backspace","id":43280,"avatar_url":"https://avatars.githubusercontent.com/u/43280?v=3","gravatar_id":"","url":"https://api.github.com/users/backspace","html_url":"https://github.com/backspace","followers_url":"https://api.github.com/users/backspace/followers","following_url":"https://api.github.com/users/backspace/following{/other_user}","gists_url":"https://api.github.com/users/backspace/gists{/gist_id}","starred_url":"https://api.github.com/users/backspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backspace/subscriptions","organizations_url":"https://api.github.com/users/backspace/orgs","repos_url":"https://api.github.com/users/backspace/repos","events_url":"https://api.github.com/users/backspace/events{/privacy}","received_events_url":"https://api.github.com/users/backspace/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T20:15:01Z","updated_at":"2016-10-12T20:15:01Z","body":"Hmm, well that log I linked to had two `travis_fold:start:check.2` lines, which previously rendered improperly. I think it renders properly on this deployment?\r\n\r\nYou can see the log for the `travis_production_test` job [here](https://bd-double-fold.test-deployments.travis-ci.org/BanzaiMan/travis_production_test/builds/126470980), it at least renders differently than on the production site, though it doesn’t exactly match up with what you listed for expected behaviour."}}
{"actor":{"display_login":"backspace"}}