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

Make prove aware of timeout #3281

Merged
merged 2 commits into from Jul 24, 2020
Merged

Conversation

kalikiana
Copy link
Member

@kalikiana kalikiana commented Jul 22, 2020

Make prove aware of the fact that timeout kills it before it can record the results using --trap and -s SIGINT -k 5. This allows results to be recorded. There is a fallback timeout in case the process doesn't exit after that.

Fixes: poo#69148

@kalikiana kalikiana self-assigned this Jul 22, 2020
@codecov
Copy link

codecov bot commented Jul 22, 2020

Codecov Report

Merging #3281 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3281      +/-   ##
==========================================
- Coverage   91.49%   91.48%   -0.02%     
==========================================
  Files         215      215              
  Lines       13052    13052              
==========================================
- Hits        11942    11940       -2     
- Misses       1110     1112       +2     
Impacted Files Coverage Δ
lib/OpenQA/Scheduler/Model/Jobs.pm 93.06% <0.00%> (-0.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48e6a8f...ff2f2d6. Read the comment docs.

Makefile Show resolved Hide resolved
- timeout -s SIGINT specifies the signal to send
- prove --trap records test results on SIGINT

Fixes: https://progress.opensuse.org/issues/69148
This is a fallback in case the process doesn't exit after the orginal timeout specified with -v.
@kalikiana kalikiana changed the title Make Prove aware of timeout Make prove aware of timeout Jul 23, 2020
@kalikiana kalikiana requested review from okurz and Martchus July 24, 2020 10:54
@okurz okurz merged commit 943ad13 into os-autoinst:master Jul 24, 2020
@okurz
Copy link
Member

okurz commented Jul 24, 2020

keep in mind that I haven't actually seen a proof that this really fixes the issue as that would need a circleci job running into timeout but then still being able to show result details

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.

None yet

3 participants