-
Notifications
You must be signed in to change notification settings - Fork 129
Microsoft telemetry Y/N prompt breaking azure pipeline #517
Comments
Hello @davidmcgowan, you can do this to bypass the telemetry prompt. Add this json
The file should be placed in the following path: Unix: ~/.config/@microsoft/botframework-cli/config.json |
Hi @munozemilio, has this workaround that you have suggested been successfully tested on a Window-2019 Agent from the Azure hosted pool?? From what we've tried, the LOCALAPPDATA environment variable is not actually populated on those, and even if you hard code it, it does look like the path doesn't exist/we don't have access to it. With those in mind, this is clearly not a viable workaround. That makes me think that the answer to my previous quesiton is "no". With that in mind, I'd appreciate if the issue would be reopened and properly addressed. I understand there's no support at the moment for the automation of some of the processes using the botframework sdk and tools, but it feels like we are fighting against the tools. For example, this is the "workaorund" that we had to put in place to get this to actually work, and it's bloody ridiculous and should not be considered a solution: |
The @VladPapacostea-SM, did you find a way? @munozemilio, you closed this. What's the solution? |
@ericchansen which dependencies are you still having issues installing ? Edit1: That's because I've spent a lot of time trying to figure out how to get around this issue, and have noticed a difference on how scripts are ran when provided inline in a PowerShell task vs how they are referenced and ran when done through a script file refrence in the PowerShell task |
@VladPapacostea-SM I am trying to install @microsoft/botframework-cli via inline PowerShell. You don't get anything helpful for debugging. This problem seems to occur on Windows and Linux pools.
Here are the contents of the log, which I had to retrieve using a publish task---talk about inconvenience. This also isn't helpful.
I'll try it with a PowerShell script like you mentioned. |
@ericchansen yep we had to publish our logs as well as using debug mode/verbose logs on the powershell inline task to figure this out .. it really wasn't pretty.. but calling it from a ps file rather than inline should fix your issue. I would also strongly suggest keeping in the try catches as we did ... that was quite helpful at times where the installation was actually successful but the npm task was returning a success message with the wrong code, which was being picked up as an exception/error |
Doing npm install inside a *.ps1 file worked---I almost copied your script line for line. The task itself looks like this.
@microsoftopensource I personally don't think this is an acceptable solution. Why does this particular npm package behave this way? I haven't encountered this issue with any other npm packages. I think issue should be re-opened or a new issue should be created. |
@ericchansen this package has a post-install script that runs when the installation is finished. It looks for a value in a config file, that cannot be set on an agent from the Azure pool, be it Linux or Windows, due to that path not being accessible to the user. The whole ecosystem was really not well planned for a CD environment, as I am sure you will discover soon, if you are just the start of your journey with something like the Virtual Assistant. For now, that's the cleanest workaround that we could find for this issue. |
Hello @ericchansen @VladPapacostea-SM it is of my interest to provide you the best experience using the tool. We add a few sprints ago a component to detect CI environments. Even if the environment variables are not set, the message prompt should be bypassed if CICD environment is detected. It is also specified in our docs. Please feel free to open a new bug on this not working and I will be more than happy to make it work for you |
I have been setting up azure pipeline where after installing the various dependencies on the build agent (botframework-cli etc) and running command
bf luis:convert
in the script appears to display the following prompt -Help us improve products by allowing Microsoft to collect anonymous command and flags usage: (Y/N):
Is there a workaround for this to supress on azure hosted agents?
The text was updated successfully, but these errors were encountered: