主权项 |
1. A method for building an environment, the method comprising:
predicting, by one or more computer processors, a time at which to start building an environment, such that the environment is built and made available to a user by the time the user is prepared to test the one or more portions of code in the environment, wherein predicting, by one or more computer processors, the time at which to start building the environment such that the environment is built when the user is prepared to test the one or more portions of code in the environment comprises:
calculating, by one or more computer processors, a time at which to start building the environment based, at least in part, on an identified length of time to perform any necessary builds of code, an identified length of time to complete a coding task, an identified start time at which the user began work on the coding task, and an identified length of time needed to build the environment, wherein the identified length of time needed to build the environment comprises a total length of time needed to allocate identified resources from a resource pool and configure those resources into an environment for the coding task, andwherein calculating, by one or more computer processors, the time at which to start building the environment comprises:
calculating, by one or more computer processors, a tentative start time at which to start building the environment by adding values for the identified length of time to perform any necessary builds of code and the identified length of time to complete the coding task to the identified start time at which the user began work on the coding task, and subtracting the identified length of time needed to build the environment,determining whether the tentative start time plus the identified time to build the environment complies with a time at which the user will be available to test the one or more portions of code in the environment,responsive to determining that the tentative start time plus the identified time to build the environment does not comply with a time at which the user will be available to test the one or more portions of code in the environment, adjusting the tentative start time by an identified next available time at which the user will be available to test the one or more portions of code in the environment, and using the adjusted tentative start time as the time at which to start building the environment, andresponsive to determining that the tentative start time plus the identified time to build the environment does comply with a time at which the user will be available to test the one or more portions of code in the environment, using the tentative start time as the time at which to start building the environment. |