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
Compile Folder removal of symbols folder fails: The process cannot access the file #3354
Comments
Could you provide a dump of the build when using BcContainerHelper version 5? |
Certainly:
|
Hi @freddydk, I just read about the new changes to generic images on yammer and the deadline of the 25th is already drawing pretty close. This issue is keeping us from upgrading to latest bccontainerhelper. I'm afraid we will be completely blocked if it's not resolved. |
Sorry - I will have a look at this tomorrow. |
Sorry, I cannot repro this This file: TraserBCHelper\PSModule\AppHandling\Compile-ALAppWithCompileFolder.ps1:82:56 is your own (not part of ContainerHelper) It looks like you are using Get-ChildItem -Recurse | Remove-Item -Recurse -Force That is a double recurse and might be what causes the problem for you. |
Hi Freddy, while it is my own script I posted the containing code above and it's basically just creating and removing the symbols folder before and after
My remove is just Further help would be appreciated, this is important to us so our build server isn't flooded with build leftovers. |
I will be out next week (from today at 3pm) - but we can grab a Teams call this morning to troubleshoot? Before the Teams call - I would like to get a copy of your scripts to see if anything springs into mind - and maybe modify it to identify what the problem actually is and through that figure out whether I need to change anything. I am open at 11am - feel free to invite freddyk at microsoft dot com. Thanks |
Also, the difference between this:
and
is that the first one is trying to empty the folder - the second is trying to delete the folder. I would empty the folder without the first -recurse
|
Hi Freddy, I think I can save you time. I upgraded to 6.0.11 just now to make sure nothing has changed in the meantime and from what I can tell the issue is resolved. I didn't change my script but it seems like something changed about the locking process between 6.0.4 and 6.0.11. I'll run the buildserver that way for now. I'll keep an eye out for it and worst case I'll remove my cleanup code temporarily. Also thanks for the advice on the cleanup code I'll incorporate that if the issue turns up again. Thanks as always for your time. |
Sadly I was too hasty in calling it off afterall. The issue returned on 6.0.11. I tried all different versions of Remove-Item but all turn up the same problem.
I really can only isolate it to bccontainerhelper 6 + runtime packages in the appSymbolsFolder. To reduce variables I've also reduced it to pure bccontainerhelper and manual delete with windows explorer. So the script is simply: I'll revert to version 5 for now as I will be on vacation too. |
I will need a repro with everything in order to fix this. |
Fixes #3354 Co-authored-by: freddydk <freddydk@users.noreply.github.com>
Describe the issue
When using bccontainerhelper >6.0.0 my build pipelines fail when they try to cleanup the symbols folder after compiling with a compile folder. I suspect this has something to do with how the app.json cache is created since this is only an issue when runtime packages are involved.
Rough outline of the script used as I can't post the entire script
Full output of scripts
Additional context
The text was updated successfully, but these errors were encountered: