marceloavf / github-tools-vsts

📦:octocat:🚀 Create and modify GitHub Releases in Azure DevOps Build and Release Management
https://marketplace.visualstudio.com/items?itemName=marcelo-formentao.github-tools
MIT License
24 stars 15 forks source link

Error: EISDIR: illegal operation on a directory, read #40

Open MrHinsh opened 4 years ago

MrHinsh commented 4 years ago

Im getting a super annoying problem and cant figure it out. Just started happening. I have attached the logs and a screenshot of my config. I get the following error just after the release has been created:

**

Error: EISDIR: illegal operation on a directory, read

**

https://dev.azure.com/nkdagility/migration-tools/_releaseProgress?releaseId=227&_a=release-environment-logs&environmentId=563

tasklog_7.log image

marceloavf commented 4 years ago

Hi @MrHinsh

I'll try to replicate it and investigating what is happening

Could you confirm what node.js and npm version are you running in your agent?

Thank you.

marceloavf commented 4 years ago
2019-09-19T18:28:04.7568580Z ##[debug]  D:\a\r1\a (directory)
2019-09-19T18:28:04.7577174Z ##[debug]  D:\a\r1\a\vsts-sync-migration (directory)
2019-09-19T18:28:04.7581509Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop (directory)
2019-09-19T18:28:04.7590503Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-build.json (file)
2019-09-19T18:28:04.7590693Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-chocolatey.json (file)
2019-09-19T18:28:04.7592458Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-extension.json (file)
2019-09-19T18:28:04.7607232Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\meta-gitversion.json (file)
2019-09-19T18:28:04.7607418Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\nkdAgility.vsts-sync-migration-8.0.3.vsix (file)
2019-09-19T18:28:04.7607580Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\vsts-sync-migrator.8.0.3.nupkg (file)
2019-09-19T18:28:04.7607735Z ##[debug]  D:\a\r1\a\vsts-sync-migration\drop\VstsSyncMigrator-8.0.3.zip (file)

Can be something related to this 3 directories listed above

Can you try to upload the assets specific in \vsts-sync-migration\drop\** folder ?

MrHinsh commented 4 years ago

It's the hosted agent. So whatever MS puts on there.

-MrHinsh

Martin Hinshelwood

DevOps & Scrum Consultant, Microsoft MVP: Developer Technologies & DevOps, Scrumorg Professional Scrum Trainer & Evidence-based Change Consultant

naked Agility Ltd. | https://nkdagility.comhttps://nkdagility.com/

+44 7811 164 522 | +52 1 998 894 1898 | WhatsApp


From: Marcelo Formentão notifications@github.com Sent: Thursday, 19 September 2019 21:16 To: marceloavf/github-tools-vsts Cc: Martin Hinshelwood nkdAgility.com; Mention Subject: Re: [marceloavf/github-tools-vsts] Error: EISDIR: illegal operation on a directory, read (#40)

Hi @MrHinshhttps://github.com/MrHinsh

I'll try to replicate it and investigating what is happening

Could you confirm what node.js and npm version are you running in your agent?

Thank you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/marceloavf/github-tools-vsts/issues/40?email_source=notifications&email_token=ABHW4RY5AXM7CCDVDAOCQ43QKPMY7A5CNFSM4IYPOZF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7EWJXA#issuecomment-533292252, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABHW4R5JBF7X76TVUA6IPDDQKPMY7ANCNFSM4IYPOZFQ.

marceloavf commented 4 years ago

@MrHinsh

Can you try to change Files to Upload as Assets input from:

$(System.DefaultWorkingDirectory)\**\*

to:

$(System.DefaultWorkingDirectory)\**\*.json
$(System.DefaultWorkingDirectory)\**\*.vsix
$(System.DefaultWorkingDirectory)\**\*.nupkg
$(System.DefaultWorkingDirectory)\**\*.zip

And tell me if it work out?

MrHinsh commented 4 years ago

That worked! Thanks so much…

From: Marcelo Formentão notifications@github.com Sent: 20 September 2019 03:20 To: marceloavf/github-tools-vsts github-tools-vsts@noreply.github.com Cc: Martin Hinshelwood nkdAgility.com martin@nkdagility.com; Mention mention@noreply.github.com Subject: Re: [marceloavf/github-tools-vsts] Error: EISDIR: illegal operation on a directory, read (#40)

@MrHinshhttps://github.com/MrHinsh

Can you try to change Files to Upload as Assets input from:

$(System.DefaultWorkingDirectory)*\

to:

$(System.DefaultWorkingDirectory)*\.json

$(System.DefaultWorkingDirectory)*\.vsix

$(System.DefaultWorkingDirectory)*\.nupkg

$(System.DefaultWorkingDirectory)*\.zip

And tell me if it work out?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/marceloavf/github-tools-vsts/issues/40?email_source=notifications&email_token=ABHW4R7KV33CHEDOT6PEJG3QKQXMNA5CNFSM4IYPOZF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7FKY7Q#issuecomment-533376126, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABHW4RZ7W2BIAM6IHHD6UKDQKQXMNANCNFSM4IYPOZFQ.

marceloavf commented 4 years ago

Happy to hear that @MrHinsh, you are welcome!

I'll leave this issue open since it's an error we can prevent on this task side.

Just need to allow only files matches from tl.findMatch https://github.com/marceloavf/github-tools-vsts/blob/d9dea23b02ff8f97187cd6894eaaae8306f590c7/Src/GithubReleasePublish/githubReleasePublish.js#L61