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

Bug / Fail to copy #1107

Closed
Gergues opened this issue Jan 21, 2016 · 9 comments
Closed

Bug / Fail to copy #1107

Gergues opened this issue Jan 21, 2016 · 9 comments
Assignees

Comments

@Gergues
Copy link

Gergues commented Jan 21, 2016

Looks like this task type was recently updated and did break one of my builds.

The previous version 1.0.4 worked fine , till the update 1.0.9 .

The script does not recognize the file count inisde the source folder , and copy zero files.

Initially I attempted to mitigate using "//" case it is a parsing error using a new JS ,but that did not solve the problem.

Thank you.

Error
Task - > tasks\CopyFiles

Here is the Log
2016-01-21T21:05:07.5427554Z Set workingFolder to default: C:\vagent\tasks\CopyFiles\1.0.9

2016-01-21T21:05:07.8864926Z ##[debug]check path : C:\vagent\tasks\CopyFiles\1.0.9\task.json

2016-01-21T21:05:07.8864926Z ##[debug]set resource file to: C:\vagent\tasks\CopyFiles\1.0.9\task.json

2016-01-21T21:05:07.8864926Z ##[debug]load loc strings from: C:\vagent\tasks\CopyFiles\1.0.9\task.json

2016-01-21T21:05:07.8864926Z ##[debug]cache loc string: FoundNFiles

2016-01-21T21:05:07.8864926Z ##[debug]cache loc string: CleaningTargetFolder

2016-01-21T21:05:07.8864926Z ##[debug]cache loc string: FileAlreadyExistAt

2016-01-21T21:05:07.8864926Z ##[debug]cache loc string: CopyingTo

2016-01-21T21:05:07.8864926Z ##[debug]Contents=TeamWorkPathApp.app

2016-01-21T21:05:07.9021163Z ##[debug]SourceFolder=C:\vagent\_work\5ac6aaa7c\CCMS Build and Package\Drop\

2016-01-21T21:05:07.9021163Z ##[debug]check path : C:\vagent\_work\5ac6aaa7c\CCMS Build and Package\Drop\

2016-01-21T21:05:07.9021163Z ##[debug]SourceFolder="C:\vagent\_work\5ac6aaa7c\CCMS Build and Package\Drop\"

2016-01-21T21:05:07.9021163Z ##[debug]TargetFolder=C:\\VSO\\DEV\\

2016-01-21T21:05:07.9021163Z ##[debug]TargetFolder=C:\\VSO\\DEV\\

2016-01-21T21:05:07.9021163Z ##[debug]CleanTargetFolder=true

2016-01-21T21:05:07.9021163Z ##[debug]OverWrite=true

2016-01-21T21:05:07.9021163Z ##[debug]include content pattern: TeamWorkPathApp.app

2016-01-21T21:05:07.9021163Z ##[debug]Either includeContents or allFiles is empty

2016-01-21T21:05:07.9021163Z ##[debug]load loc strings from: C:\vagent\tasks\CopyFiles\1.0.9\node_modules\vsts-task-lib\lib.json

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_UnhandledEx

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_FailOnCode

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_ReturnCode

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_ResourceFileNotExist

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_ResourceFileAlreadySet

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_ResourceFileNotSet

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_LocStringNotFound

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_ParameterIsRequired

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_InputRequired

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_EndpointNotExist

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_InvalidEndpointAuth

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_PathNotFound

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_PathHasNullByte

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_OperationFailed

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_UseFirstGlobMatch

2016-01-21T21:05:07.9021163Z ##[debug]cache vsts-task-lib loc string: LIB_MergeTestResultNotSupported

2016-01-21T21:05:07.9021163Z found 0 files
@bryanmacfarlane
Copy link
Contributor

Just making sure - the task was the update coming from our service update (you didn't upload newer task correct?)

@Gergues
Copy link
Author

Gergues commented Jan 21, 2016

Correct, at the agent tasks folder both types existed.
I have deleted the folders since and installed the latest agent which only has 1.0.9.

By the way , I have managed to use xcopy commands till this issue is resolved... .

Thanks for looking into this

-----Original Message-----
From: "Bryan MacFarlane" [email protected]
Sent: ‎1/‎21/‎2016 4:45 PM
To: "Microsoft/vso-agent-tasks" [email protected]
Cc: "George Gergues" [email protected]
Subject: Re: [vso-agent-tasks] Bug / Fail to copy (#1107)

Just making sure - the task was the update coming from our service update (you didn't upload newer task correct?)

Reply to this email directly or view it on GitHub.

@TingluoHuang
Copy link
Contributor

@Gergues Can you help me change your copyfiles.js file line 102 to 109 to be the following code, in order to help us diag? the code is just log more stuff. thanks.
// remove folder path
for (var i = 0; i < allPaths.length; i++) {
console.log(allPaths[i]);
if (!tl.stats(allPaths[i]).isDirectory()) {
allFiles.push(allPaths[i]);
console.log('find file: ' + allPaths[i]);
}
}

@Gergues
Copy link
Author

Gergues commented Jan 22, 2016

I did update the .jS file and restarted the VSO agent service
Same error message

here is the log
2016-01-22T00:58:20.8070694Z Set workingFolder to default: C:\vagent\tasks\CopyFiles\1.0.9

2016-01-22T00:58:21.1508242Z ##[debug]check path : C:\vagent\tasks\CopyFiles\1.0.9\task.json

2016-01-22T00:58:21.1508242Z ##[debug]set resource file to: C:\vagent\tasks\CopyFiles\1.0.9\task.json

2016-01-22T00:58:21.1508242Z ##[debug]load loc strings from: C:\vagent\tasks\CopyFiles\1.0.9\task.json

2016-01-22T00:58:21.1508242Z ##[debug]cache loc string: FoundNFiles

2016-01-22T00:58:21.1508242Z ##[debug]cache loc string: CleaningTargetFolder

2016-01-22T00:58:21.1508242Z ##[debug]cache loc string: FileAlreadyExistAt

2016-01-22T00:58:22.1977572Z ##[debug]cache loc string: CopyingTo

2016-01-22T00:58:22.1977572Z ##[debug]Contents=TeamWorkPathApp.app

2016-01-22T00:58:22.1977572Z ##[debug]SourceFolder=C:\vagent\_work\5ac6aaa7c\CCMS Build and Package\Drop\

2016-01-22T00:58:22.1977572Z ##[debug]check path : C:\vagent\_work\5ac6aaa7c\CCMS Build and Package\Drop\

2016-01-22T00:58:22.1977572Z ##[debug]SourceFolder="C:\vagent\_work\5ac6aaa7c\CCMS Build and Package\Drop\"

2016-01-22T00:58:22.1977572Z ##[debug]TargetFolder=C:\VSO\DEV\

2016-01-22T00:58:22.1977572Z ##[debug]TargetFolder=C:\VSO\DEV\

2016-01-22T00:58:22.1977572Z ##[debug]CleanTargetFolder=true

2016-01-22T00:58:22.1977572Z ##[debug]OverWrite=true

2016-01-22T00:58:22.1977572Z ##[debug]include content pattern: TeamWorkPathApp.app

2016-01-22T00:58:22.1977572Z ##[debug]Either includeContents or allFiles is empty

2016-01-22T00:58:22.1977572Z ##[debug]load loc strings from: C:\vagent\tasks\CopyFiles\1.0.9\node_modules\vsts-task-lib\lib.json

2016-01-22T00:58:22.1977572Z ##[debug]cache vsts-task-lib loc string: LIB_UnhandledEx

2016-01-22T00:58:22.1977572Z ##[debug]cache vsts-task-lib loc string: LIB_FailOnCode

2016-01-22T00:58:22.1977572Z ##[debug]cache vsts-task-lib loc string: LIB_ReturnCode

2016-01-22T00:58:22.1977572Z ##[debug]cache vsts-task-lib loc string: LIB_ResourceFileNotExist

2016-01-22T00:58:22.1977572Z ##[debug]cache vsts-task-lib loc string: LIB_ResourceFileAlreadySet

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_ResourceFileNotSet

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_LocStringNotFound

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_ParameterIsRequired

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_InputRequired

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_EndpointNotExist

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_InvalidEndpointAuth

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_PathNotFound

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_PathHasNullByte

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_OperationFailed

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_UseFirstGlobMatch

2016-01-22T00:58:22.2133408Z ##[debug]cache vsts-task-lib loc string: LIB_MergeTestResultNotSupported

2016-01-22T00:58:22.2133408Z found 0 files

@Gergues
Copy link
Author

Gergues commented Jan 22, 2016

I don't think it is an environment specific , I think this is a real bug.

You can test it with any other project.

I have a workaround for now and not planning to use this module in the short term.

thanks.

@SergeyRudakov
Copy link

Same problem for my build
Either includeContents or allFiles is empty

Used to work well in version 1.0.5 with *__ filter.

@TingluoHuang
Copy link
Contributor

I have root cause the problem, will prepare a fix.

@TingluoHuang
Copy link
Contributor

@Gergues , @SergeyRudakov We just rolls out the fix for this issue, can you verify the problem be solved?
Thanks,
Ting

@Gergues
Copy link
Author

Gergues commented Jan 28, 2016

@TingluoHuang
I confirmed that ver 1.0.10 has the fix

All working perfectly again.
Thank you for getting a fix.

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

No branches or pull requests

5 participants