Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

sktm patchwork aborts if a Jenkins job has no junit results #32

Open
spbnick opened this issue Apr 16, 2018 · 2 comments
Open

sktm patchwork aborts if a Jenkins job has no junit results #32

spbnick opened this issue Apr 16, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@spbnick
Copy link
Contributor

spbnick commented Apr 16, 2018

Even though sktm patchwork can submit any number of jobs in a single run,
it aborts with an exception if it detects a single of those jobs aborted:

[43632] 2018-04-16 04:17:14,039     INFO   submitted build: upstream #80
[43632] 2018-04-16 04:17:14,039     INFO   submitted patchset: ['https://patchwork.ozlabs.org/patch/897858']
[43632] 2018-04-16 04:17:16,839     INFO   submitted build: upstream #81
[43632] 2018-04-16 04:17:16,839     INFO   submitted patchset: ['https://patchwork.ozlabs.org/patch/897863']
[43632] 2018-04-16 04:17:20,333     INFO   submitted build: upstream #82
[43632] 2018-04-16 04:17:20,333     INFO   submitted patchset: ['https://patchwork.ozlabs.org/patch/897892']
[43632] 2018-04-16 04:24:26,006     INFO   job completed: jjid=53; type=1
[43632] 2018-04-16 04:24:26,863     INFO   build_status=ABORTED
Traceback (most recent call last):
  File "/home/skt/sktm/sktm.py", line 129, in <module>
    sw.wait_for_pending()
  File "/home/skt/sktm/sktm/__init__.py", line 275, in wait_for_pending
    self.check_pending()
  File "/home/skt/sktm/sktm/__init__.py", line 218, in check_pending
    bres = self.jk.get_result(self.jobname, bid)
  File "/home/skt/sktm/sktm/jenkins.py", line 143, in get_result
    build.get_status()))
Exception: No results for build 53 (ABORTED)

Instead it should note the job result and continue waiting for the rest of the
jobs.

@spbnick spbnick added the bug Something isn't working label Apr 16, 2018
@spbnick spbnick changed the title sktm patchwork aborts if a signle Jenkins job is aborted sktm patchwork aborts if a Jenkins job has no junit results Apr 26, 2018
@spbnick
Copy link
Contributor Author

spbnick commented Apr 26, 2018

This also happens if the Jenkins job aborts before skt has a chance to run, e.g. on installing skt.

@spbnick
Copy link
Contributor Author

spbnick commented Apr 26, 2018

This would likely need an update to the build status enum, along with database update.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant