Skip to content
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

[CMSO-1540] Feature request: option to run multidev:create that triggers the workflow and exits #2480

Open
pwtyler opened this issue Jun 13, 2023 · 1 comment

Comments

@pwtyler
Copy link
Member

pwtyler commented Jun 13, 2023

From a recent thread in Pantheon community Slack—

Current behavior

multidev:create waits for the multidev creation operation to complete

Desired Behavior

an option that just instructs Pantheon to create a multidev environment and then exit, not continuously checks the status of the workflow.

Use case

When run from a github action or other CI workflow, the "launch workflow and exit" could be used at the taIl end of a workflow so that a multidev could be created for a PR, without wasting unnecessary CI time (money).

@pwtyler pwtyler changed the title Feature request: option to run multidev:create that triggers the workflow and exits [CMSO-1540] Feature request: option to run multidev:create that triggers the workflow and exits Jun 13, 2023
@lpeabody
Copy link

Hi! Thanks @pwtyler for creating. I was the originator of this request. To reiterate what @pwtyler has already posted, it would be nice to have an Actions workflow simply build an artifact, push that up in a branch with name pr-123, have Pantheon initiate the creation of the multidev environment for it and then have the command return whether or not the Pantheon workflow/task was successfully started and exit 0, or exit non-zero if it did not successfully start. Maybe also output the workflow ID created so I can easily plug that in locally to monitor the progress. The result is the Pantheon workflow is started and I save probably 8-10 Actions minutes which adds up fast when you have dozens of PRs a day.

I seem to remember this is how multidev:create worked a couple years back (as far as not waiting around to finish), but I went through the code for multidev:create in the 1.x and 2.x branches and it looks like it has always waited around for the Pantheon workflow to finish before the command exited. So, I'm not sure why I remember this the way I do.

Regardless, I think this would be a useful option for optimizing CI minutes utilization, which is the primary driver of this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants