Skip to content

Conversation

@VallariAg
Copy link
Member

@VallariAg VallariAg commented Feb 12, 2024

To test this PR, setup teuthology-api inside the teuthology container.

  1. Add instructions in teuthology dockerfile to setup t-api inside the teuthology container:
SHELL ["/bin/bash", "-c"] 
WORKDIR /
RUN git clone -b use-kill-cmd https://github.com/ceph/teuthology-api && \
    cd /teuthology-api/ && \
    python3 -m venv venv && source ./venv/bin/activate && pip install -e . && \
    export TEUTHOLOGY_API_SERVER_PORT=8083 && \
    exit
WORKDIR /teuthology
....
  1. In docker-compose file, expose TEUTHOLOGY_API_SERVER_PORT for teuthology service:
teuthology:
   ports:
      - 8083:8083
  1. Start the containers
  2. exec into the teuthology container and run these commands:
cd /teuthology-api
source ./venv/bin/activate
<add your teuthology-api's .env file>
uvicorn teuthology_api.main:app --reload --port 8083 --host 0.0.0.0
  1. Schedule a run on /suite route, using the README payload.
  2. Then kill by pressing "Kill Run" button of pages/Run/index.tsx: Add kill run button pulpito-ng#51

Contribution Guidelines

To sign and test your commits, please refer to Contibution guidelines.

Checklist

Copy link
Member

@zmc zmc left a comment

Choose a reason for hiding this comment

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

Looks good! Only suggestions are around variable naming.

This commit also removes "--user" from schemas/base.py

Signed-off-by: Vallari Agrawal <[email protected]>
@zmc zmc merged commit 2927fc5 into main Feb 14, 2024
@zmc zmc deleted the use-kill-cmd branch February 14, 2024 23:56
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.

3 participants