mardi 25 août 2015

Speed up TFS deployment to lab agents

Currently we push a build through TFS, which then reverts the test environment to a clean snapshot, and executes a deployment script to load our software on for the CodedUI to run through. The problem is that restoring the snapshot and configuring the test agent takes about 10 minutes, and then the deployment process takes about 13 minutes. I can think of two solutions but have been unsuccessful in finding information on them:

Restore the snapshot at the end of the run so that it's clean and ready for the next build cycle, instead of starting the restore at the beginning of the build cycle.

Have the build server deploy the script in parallel, instead of sequentially to each host. It takes about 2 minutes per host, and everything is installed by script, so there's no real reason the build server needs to remain involved in the deployment past copying and telling the script to execute. So that's 2 minutes per machine where every other machine is idling, doing nothing.

I've tried adding a second script to just copy the deployment script that actually installs things (from azure) in hopes that would let the build server move onto the next machine after that executes, but it just sits and tracks the copied script anyways.

Aucun commentaire:

Enregistrer un commentaire