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

services/kill.py: Allow admins to kill any run #55

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Commits on Jul 15, 2024

  1. services/kill.py: Allow admins to kill any run

    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    9e951c8 View commit details
    Browse the repository at this point in the history
  2. services/kill.py: Owner can also be "scheduled_<username>@teuthology"

    "scheduled_<username>@teuthology" is the default owner name if
    run is scheduled from teuthology CLI tool. This commit allows
    users of same github username to recognize it as their jobs.
    
    Also fix how run_owner is determined. In teuthology, runs ownership
    is deteremined by job's "owner" and not run's "user" value.
    
    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    28af01a View commit details
    Browse the repository at this point in the history
  3. login: add 'isUserAdmin' to session data

    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    86d386c View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. kill: add tests + fix run owner logic

    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    ec62bf9 View commit details
    Browse the repository at this point in the history
  2. Improve error handling

    And decode kill-cmd output logs.
    
    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f246efa View commit details
    Browse the repository at this point in the history
  3. services/kill.py: optionally add boolean value flag in kill cmd

    For example, value of "--preserve-queues" is boolean in /kill request
    schema. If it's true, add it to the kill cmd, otherwise don't add the
    flag.
    
    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    779b632 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. services/helpers.py: handle empty GH_ORG_TEAM_URL and ADMIN_TEAM

    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    6c4b5f4 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. main.py: add CORSMiddleware for non-dev env

    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    2043d97 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. Send user avatar in session data

    Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
    VallariAg committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    5e4d1e4 View commit details
    Browse the repository at this point in the history