ceph / teuthology-api

A REST API to execute teuthology commands.
MIT License
2 stars 10 forks source link

src/teuthology_api/suite: Modify how we handle Error and Success runs #51

Open kamoltat opened 6 months ago

kamoltat commented 6 months ago

As per As per: https://github.com/ceph/pulpito-ng/pull/23 The changes includes:

  1. make suite route return {"run": run_details, "logs": logs, "job_count": job_count}

  2. Improve how we handle Exception by utilizing Queue from python multiprocessing library.

  3. Set the timeout for the process to be 180 seconds, if teuthology doesn't respond back within that time, then we return a Process Timeout

  4. Add .env to gitignore

Contribution Guidelines

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

Checklist

kamoltat commented 3 months ago
#10 8.715 ERROR: Package 'teuthology-1.1.1.dev729-g861a8dcf' requires a different Python: 3.8.10 not in '>=3.10'
#10 ERROR: process "/bin/sh -c pip3 install -e ." did not complete successfully: exit code: 1
------
 > [6/7] RUN pip3 install -e .:
4.666 Collecting teuthology@ git+https://github.com/ceph/teuthology#egg=teuthology[test]
4.667   Cloning https://github.com/ceph/teuthology to /tmp/pip-install-9mdb6ecm/teuthology
4.667   Running command git clone -q https://github.com/ceph/teuthology /tmp/pip-install-9mdb6ecm/teuthology
5.797   Installing build dependencies: started
7.993   Installing build dependencies: finished with status 'done'
7.995   Getting requirements to build wheel: started
8.323   Getting requirements to build wheel: finished with status 'done'
8.327     Preparing wheel metadata: started
8.642     Preparing wheel metadata: finished with status 'done'
8.715 ERROR: Package 'teuthology-1.1.1.dev729-g861a8dcf' requires a different Python: 3.8.10 not in '>=3.10'
------
Dockerfile:24
--------------------
  22 |     WORKDIR /teuthology_api
  23 |     COPY . /teuthology_api/
  24 | >>> RUN pip3 install -e .
  25 |     RUN mkdir /archive_dir/
  26 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install -e ." did not complete successfully: exit code: 1
Service 'teuthology_api' failed to build : Build failed****
kamoltat commented 3 months ago

Integration test failed because

of the python version issue, awaiting for https://github.com/ceph/teuthology-api/pull/58 to fix this.