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

Verification checks against VM (Tasks for the user) #149

Closed
wants to merge 14 commits into from

Conversation

maxsva
Copy link
Contributor

@maxsva maxsva commented Jun 19, 2023

*Task193 / The ability to verifiy different things on VMs:
add tasks(commands) to scenario

Task193 / Run multiple commands on VMs:
run VM in go routine, run commands in limited count(with Semaphore) of go routine

fixes hobbyfarm/hobbyfarm#193

@@ -697,6 +698,18 @@ func (s ScenarioServer) CreateFunc(w http.ResponseWriter, r *http.Request) {
scenario.Spec.Tags = tags
scenario.Spec.KeepAliveDuration = keepaliveDuration

rawVMTasks := r.PostFormValue("vm_tasks")
if rawVMTasks != "" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the Update Metod you validate the Input, here you do not validate the input. Better to build a function to valdiate VirtualMachineTasks and use it in both methods

@jggoebel jggoebel changed the title Issue 193 Verification checks against VM (Tasks for the user) Jun 23, 2023
@ebauman
Copy link
Member

ebauman commented Jul 19, 2023

Please hold off on merging this until we sort out the machine prov stuff

@jggoebel
Copy link
Member

@ebauman This PR changes nothing for VM provisioning. It only touches scenarios + shell server. But we could still hold this

@ebauman
Copy link
Member

ebauman commented Jul 21, 2023

it's mostly a naming thing, i'd like to move away from "virtualmachine" and towards "machine". if we're going to issue a scenario v2 it should have those changes.

@jggoebel
Copy link
Member

We might need to update how a task is viewed as successful.
Sometimes it is defined by the returned status code, sometimes by the output.

We should make it optional to use both methods, one of the methods alone should be also ok.

@jggoebel
Copy link
Member

Closed in favor of #180

@jggoebel jggoebel closed this Jan 31, 2024
@jggoebel jggoebel deleted the issue_193 branch September 17, 2024 10:13
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

Successfully merging this pull request may close these issues.

Verification checks against VM (Tasks for the user)
3 participants