{"action":"opened","issue":{"url":"https://api.github.com/repos/PSLCL/testing-framework/issues/163","repository_url":"https://api.github.com/repos/PSLCL/testing-framework","labels_url":"https://api.github.com/repos/PSLCL/testing-framework/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/PSLCL/testing-framework/issues/163/comments","events_url":"https://api.github.com/repos/PSLCL/testing-framework/issues/163/events","html_url":"https://github.com/PSLCL/testing-framework/issues/163","id":250385731,"number":163,"title":"Tests on Windows machines fail to send logs to s3","user":{"login":"jwclark","id":3037927,"avatar_url":"https://avatars2.githubusercontent.com/u/3037927?v=4","gravatar_id":"","url":"https://api.github.com/users/jwclark","html_url":"https://github.com/jwclark","followers_url":"https://api.github.com/users/jwclark/followers","following_url":"https://api.github.com/users/jwclark/following{/other_user}","gists_url":"https://api.github.com/users/jwclark/gists{/gist_id}","starred_url":"https://api.github.com/users/jwclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwclark/subscriptions","organizations_url":"https://api.github.com/users/jwclark/orgs","repos_url":"https://api.github.com/users/jwclark/repos","events_url":"https://api.github.com/users/jwclark/events{/privacy}","received_events_url":"https://api.github.com/users/jwclark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-15T17:44:46Z","updated_at":"2017-08-15T17:44:46Z","closed_at":null,"body":"Tests on windows machines fail to send logs to s3. The staff command appears to fail:\r\n\r\nstaf local process start shell command \"powershell -NoExit -Comm\r\nand \\\"& ^{Import-Module 'C:\\Program Files (x86)\\AWS Tools\\PowerShell\\AWSPowerShell\r\n\\AWSPowerShell.psd1'; Initialize-AWSDefaultConfiguration; write-s3object -keypre\r\nfix /runId-82/templateId-0x37efbfbd60720befbfbd29701d5572efbfbd22efbfbdefbfbd48e\r\nfbfbdefbfbd/templateInstanceId-3/resourceId-4 -folder c:\\opt\\dtf\\sandbox\\82\\logs\r\n-bucketname dtf-staf-logging}\\\"\" wait returnstdout returnstderr workdir c:\\opt\\dt\r\nf\\sandbox\\82\r\n\r\nIt appears that the nested double quotation marks are not correctly escaped.\r\n\r\nOne potential solution is to avoid nested quotation marks by running the inner command from a file located on the windows AMI. This might be included as part of the AMI creation or created by a staf command just prior to the staf command to execute it."}}
{"actor":{"display_login":"jwclark"}}