-
Notifications
You must be signed in to change notification settings - Fork 290
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
[RFC] teuthology: add email headers for suite/user #1925
base: main
Are you sure you want to change the base?
Conversation
92dc90d
to
3660aba
Compare
I'm probably doing something bone-headed but can anyone explain why my tests for this PR all result in a dead job: https://pulpito.ceph.com/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/
|
teuthology/results.py
Outdated
to=email, | ||
body=body, | ||
) | ||
sender = config.results_sending_email or 'teuthology') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing "(" in this line is causing the dead job. I found this by running this in teuthology machine:
vallariag@teuthology:~$ cd /a/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598
vallariag@teuthology:/a/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598$ ls
orig.config.yaml supervisor.7594598.log
vallariag@teuthology:/a/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598$ cat supervisor.7594598.log
2024-03-12T16:02:17.089 INFO:root:teuthology version: 0.0.1.dev263+g3660aba
2024-03-12T16:02:17.089 INFO:teuthology.dispatcher.supervisor:Running job 7594598
2024-03-12T16:02:17.089 DEBUG:teuthology.dispatcher.supervisor:Running: /home/teuthworker/src/git.ceph.com_teuthology_3660aba7a8f4640836095d832fa38eb65e875815/virtualenv/bin/teuthology -v --owner scheduled_pdonnell@teuthology --archive /home/teuthworker/archive/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598 --name pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi --description teuthology:nop/{clusters/empty tasks/nop} -- /home/teuthworker/archive/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598/orig.config.yaml
2024-03-12T16:02:17.092 INFO:teuthology.dispatcher.supervisor:Job archive: /home/teuthworker/archive/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598
2024-03-12T16:02:17.093 INFO:teuthology.dispatcher.supervisor:Job PID: 3302657
2024-03-12T16:02:17.093 INFO:teuthology.dispatcher.supervisor:Running with watchdog
2024-03-12T16:04:17.191 DEBUG:teuthology.report:Pushing job info to https://paddles.front.sepia.ceph.com/
2024-03-12T16:04:17.277 ERROR:teuthology.dispatcher.supervisor:Child exited with code 1
vallariag@teuthology:/a/pdonnell-2024-03-12_15:56:41-teuthology:nop-main-distro-default-smithi/7594598$ /home/teuthworker/src/git.ceph.com_teuthology_3660aba7a8f4640836095d832fa38eb65e875815/virtualenv/bin/teuthology --help
Traceback (most recent call last):
File "/home/teuthworker/src/git.ceph.com_teuthology_3660aba7a8f4640836095d832fa38eb65e875815/virtualenv/bin/teuthology", line 5, in <module>
from scripts.run import main
File "/home/teuthworker/src/git.ceph.com_teuthology_3660aba7a8f4640836095d832fa38eb65e875815/scripts/run.py", line 33, in <module>
import teuthology.run
File "/home/teuthworker/src/git.ceph.com_teuthology_3660aba7a8f4640836095d832fa38eb65e875815/teuthology/run.py", line 14, in <module>
from teuthology.results import email_results
File "/home/teuthworker/src/git.ceph.com_teuthology_3660aba7a8f4640836095d832fa38eb65e875815/teuthology/results.py", line 78
sender = config.results_sending_email or 'teuthology')
^
SyntaxError: unmatched ')'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I knew it:
I'm probably doing something bone-headed
For advanced filtering/organization. Fixes: https://tracker.ceph.com/issues/64839 Signed-off-by: Patrick Donnelly <[email protected]>
3660aba
to
f0da4c8
Compare
For the record, I'm not working on this anymore. I think someone was interested in finishing it? @zmc ? Edit: using paddles queries (IIRC)? |
ah I think what I was saying when this came up was that one approach could be querying paddles for the run, and getting the user and email values from the response body. A possibly better approach could be to write out a small metadata file in the run's archive directory (as opposed to the job subdirs), called e.g. Of course you'd want to check for the existence of the file before writing it, as writing multiple copies of the same content wouldn't be helpful. |
My understanding during our standup discussion was that querying paddles would be preferable, no? |
Only querying paddles must be done outside of the teuthology run, maybe in dispatcher/supervisor? |
For advanced filtering/organization.
Fixes: https://tracker.ceph.com/issues/64839