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

CLI can reset a looping/hung test run #1479

Closed
11 tasks done
techcobweb opened this issue May 26, 2023 · 3 comments
Closed
11 tasks done

CLI can reset a looping/hung test run #1479

techcobweb opened this issue May 26, 2023 · 3 comments
Assignees

Comments

@techcobweb
Copy link
Contributor

techcobweb commented May 26, 2023

Story

As a testcase automation person wanting to clean-up an ecosystem, I want to be able to 'reset' a test run which appears to be hanging/looping, so that it will re-try running the test.

Background

Sometimes tests hang. At those times, using eclipse, Jade resets them. Causes them to be re-started. Not sure how that works yet.

We want to do this from the command-line.

galasactl runs reset --name U345

Rest api would look something like this:

PUT /runs/run-id /ras/runs/{runid}

{
  status: QUEUED
}

Discussion with Savvas around what this JSON payload should look like. Changing 'status' to 'action' as the action is what you want to do (reset/delete) and that implicitly updates a status (queued/deleted altogether).

The eclipse code does this:

IFramework.getFrameworkRuns().reset(runid)

Which resets the run. How does that work ? We need to know and be able to explain it...

  • Resets happen by deleting the runs heartbeat and setting the status of the run in the DSS to "queued".
  • Deletes happen by deleting all entries in the DSS for that run. It essentially gets abandoned. Not sure if we can improve that at all as part of this story or an extension.

Tasks

  • Decide what the REST interface should look like
  • Openapi yaml changes
    • Review
  • Create the servlet which supports this
    • Review
  • Add the runs reset command to Golang CLI code.
  • Make sure the CLI calls the servlet
    • Review
  • Integration test added
  • Docs in readme.md
  • Docs in galasa.dev
@techcobweb techcobweb converted this from a draft issue May 26, 2023
@techcobweb techcobweb moved this from 📋 5 Backlog to 4 Release backlog in galasa-dev team Oct 30, 2023
@techcobweb techcobweb moved this from 4 Release backlog to 🔖 3 Iteration Backlog in galasa-dev team Nov 21, 2023
@techcobweb techcobweb moved this from 🔖 3 Iteration Backlog to 4 Release backlog in galasa-dev team Nov 21, 2023
@techcobweb techcobweb moved this from 4 Release backlog to 🔖 3 Iteration Backlog in galasa-dev team Dec 11, 2023
@techcobweb techcobweb moved this from 🔖 3 Iteration Backlog to 🏗 2 In progress in galasa-dev team Dec 21, 2023
@jadecarino
Copy link

Discussion with Mike before Christmas - decided to add this servlet as part of the RAS API not the Runs API as the Runs API does stuff to do with groups of runs. Changing the status of one run didn't seem right in that location. So, changed path to /ras/runs/{runid}.

@jadecarino jadecarino moved this from 🏗 2 In progress to 4 Release backlog in galasa-dev team Feb 7, 2024
@jadecarino jadecarino moved this from 4 Release backlog to 🔖 3 Iteration Backlog in galasa-dev team Feb 7, 2024
@jadecarino
Copy link

Blocked as unable to run tests in the ecosystem so cannot run the integration test script.

@jadecarino jadecarino moved this from 🔖 3 Iteration Backlog to 🏗 2 In progress in galasa-dev team Feb 19, 2024
@jadecarino jadecarino moved this from 🏗 2 In progress to 👀 1 In review in galasa-dev team Feb 19, 2024
@jadecarino
Copy link

PR open for this story: galasa-dev/cli#213

@jadecarino jadecarino moved this from 👀 1 In review to ✅ Done - in iteration in galasa-dev team Feb 20, 2024
@techcobweb techcobweb moved this from ✅ Done - in iteration to Done - in release in galasa-dev team Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants