Skip to content

[REGRESSION]: CopyFiles task copies symlink file as folder #20904

Open
@bryanchen-d

Description

@bryanchen-d

New issue checklist

Task name

CopyFiles

Breaking task version

2.253.0

Last working task version

2.246.0

Regression Description

The new version of copy files task copied the symlink as folder, while it used to directly copy the target file of the symlink. This is failing our builds and blocking our production releases.

The code change seems to be Updated task-lib to v5 for CopyFilesV2 and ArchiveFilesV2 tasks (#20859) · microsoft/azure-pipelines-tasks@f3ff565 · GitHub

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Mariner

Relevant log output

System.IO.FileLoadException: Unable to load symbolic/hard linked file.  Check 'fsutil behavior query SymlinkEvaluation' to ensure proper behavior.
 ---> System.IO.FileNotFoundException: Could not find file '/mnt/vss/_work/1/s/out/NotebookExtensions/node_modules/tmp/node_modules/.bin/rimraf/rimraf'.
File name: '/mnt/vss/_work/1/s/out/NotebookExtensions/node_modules/tmp/node_modules/.bin/rimraf/rimraf'

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 
SUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Labels

Area: ABTTAkvelon Build Tasks Team area of workbugregressionThis used to work, but a change in the service/tasks broke it.triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions