ukoethe / vigra

a generic C++ library for image analysis
http://ukoethe.github.io/vigra/
Other
411 stars 191 forks source link

Set up CI with Azure Pipelines #440

Closed ukoethe closed 6 years ago

kaylangan commented 6 years ago

I'm a Program Manager on Azure Pipelines. Let me know if you have any questions or suggestions. I'm happy to help!

ukoethe commented 6 years ago

@kaylangan Thanks for reaching out. Here is my first question: I need to compile with g++-7 on Linux. A program named g++-7 doesn't seem to be installed in the VM. How can I configure my build to use this compiler?

kaylangan commented 6 years ago

@kaylangan Thanks for reaching out. Here is my first question: I need to compile with g++-7 on Linux. A program named g++-7 doesn't seem to be installed in the VM. How can I configure my build to use this compiler?

I think you can add a script and install using apt-get. That said, I'm not sure how long that'll take--if it seems to be taking too long, let me know.

ukoethe commented 6 years ago

@kaylangan Thanks! Similar question for Windows: I'm running the VM vs2017-win2016, which uses VisualStudio 2017. Is there a possibility to compile with VisualStudio 2015?

kaylangan commented 6 years ago

Would the vs2015-win2012r2 image work, or do you require VS2015 with Windows Server 2016? https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=vsts&tabs=yaml#use-a-microsoft-hosted-agent

ukoethe commented 6 years ago

@kaylangan That's what I was looking for. I was just unable to find the VM's name vs2015-win2012r2 in the documentation. Could you give me a pointer, where such things are described (or improve the docu if there isn't any :wink:)?

kaylangan commented 6 years ago

No problem! The doc I linked to above describes the VMs we offer and has a "cheat sheet" of sorts:

image https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=vsts&tabs=yaml#use-a-microsoft-hosted-agent

ukoethe commented 6 years ago

@kaylangan Ah, I didn't realize that the center column of the table refers to the VM names. Now I have another problem: conda is not installed on the vs2015-win2012r2 VM. How can I get it?

ukoethe commented 6 years ago

@kaylangan: Update: I tried various approaches to install conda in user space, but nothing worked so far. Without conda, the vs2015-win2012r2 VM is somewhat pointless for me. As an aside, I found that only Python 2.7 is installed (at C:\Python27), contrary to what is reported in the vs2015-on-windows-2012r2 documentation.

kaylangan commented 6 years ago

@ukoethe can you try installing miniconda via chocolatey?

ukoethe commented 6 years ago

I don't see chocolatey listed on https://github.com/adventworks/hosted-pool-images/blob/2017.10.02/vs2015-on-windows-2012r2/image.md. Is it installed?

Am 12. Oktober 2018 20:07:43 MESZ schrieb Kayla Ngan notifications@github.com:

@ukoethe can you try installing miniconda via chocolatey?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/ukoethe/vigra/pull/440#issuecomment-429411891

-- Associate Professor Visual Learning Lab University of Heidelberg Mathematikon A, Office 4.334 Phone: +49 (0) 6221 54 14 834 Web: https://hci.iwr.uni-heidelberg.de/vislearn/people/ullrich-koethe/

ukoethe commented 6 years ago

@kaylangan update: choco is not in the PATH, so no progress 🤔.

ukoethe commented 6 years ago

@kaylangan The key question may be this: Is there any possibility to debug a failing build interactively in the CI virtual machine, or in a VM with identical setup (somewhere in the cloud or by means of a local copy)? Restarting every build from scratch in a trial-and-error fashion is just really time-consuming.

kaylangan commented 6 years ago

You'll need to install choco as admin. Unfortunately, we don't have a way to log into the machines and interactively debug.

ukoethe commented 6 years ago

@kaylangan update: I just noticed that VS2015 (and older VS versions) are also installed in the vs2017-win2016 VM (although the VM's name suggests otherwise), so there is actually no need to use vs2015-win2012r2. I'll go ahead this way.

ukoethe commented 6 years ago

superseded by PR #448

ukoethe commented 6 years ago

@kaylangan good news: all builds work now.

Unfortunately, we don't have a way to log into the machines and interactively debug.

If you'd get this to work, it will be the killer feature of azure-pipelines.