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

Use a new file to exchange status with isotovideo (isotovideo process might already be finished at query time) #2327

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Sep 12, 2019

Results for tests running less than 10 seconds aren't displayed in the webui, and the job is marked as failed.
This happens because the status call to isotovideo is happening too late, when isotovideo is already finished, so it doesn't get anything back.

Instead we are reading the status from a file that will survive the isotovideo process.
See os-autoinst/os-autoinst#1212

  • Remove 'backend': isotovideo status doesn't return this

Depends on os-autoinst/os-autoinst#1212

See also:

@codecov
Copy link

codecov bot commented Sep 26, 2019

Codecov Report

Merging #2327 into master will decrease coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2327      +/-   ##
==========================================
- Coverage   87.22%   87.14%   -0.09%     
==========================================
  Files         169      169              
  Lines       11078    11083       +5     
==========================================
- Hits         9663     9658       -5     
- Misses       1415     1425      +10
Impacted Files Coverage Δ
lib/OpenQA/WebSockets/Controller/Worker.pm 98.16% <100%> (+0.01%) ⬆️
lib/OpenQA/Worker/Job.pm 71.66% <100%> (-0.15%) ⬇️
lib/OpenQA/Worker/Isotovideo/Client.pm 72.41% <0%> (-27.59%) ⬇️

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 ba31da2...b8aed41. Read the comment docs.

@perlpunk perlpunk force-pushed the new-status branch 4 times, most recently from 9ba080e to 0faec49 Compare October 8, 2019 10:13
@perlpunk perlpunk force-pushed the new-status branch 2 times, most recently from 42310ae to 489ad58 Compare October 10, 2019 10:58
@perlpunk perlpunk changed the title Use a new file to exchange status with isotovideo Use a new file to exchange status with isotovideo (isotovideo process might already be finished at query time) Oct 10, 2019
@perlpunk perlpunk force-pushed the new-status branch 2 times, most recently from 0af5a6d to 394385b Compare October 15, 2019 13:35
@perlpunk perlpunk force-pushed the new-status branch 4 times, most recently from 6f421f9 to 323f592 Compare October 23, 2019 12:19
@perlpunk perlpunk marked this pull request as ready for review October 23, 2019 13:11
lib/OpenQA/Worker/Job.pm Outdated Show resolved Hide resolved
lib/OpenQA/Worker/Job.pm Outdated Show resolved Hide resolved
lib/OpenQA/Worker/Job.pm Outdated Show resolved Hide resolved
Copy link
Contributor

@Martchus Martchus left a comment

Choose a reason for hiding this comment

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

I have nothing more to say than @kraih already mentioned.

@okurz
Copy link
Member

okurz commented Oct 23, 2019

the description still mentions "Work in progress"?

@perlpunk
Copy link
Contributor Author

Rebased and squashed, removed WIP from description

@kalikiana
Copy link
Member

openQA:openQA-worker-test

@perlpunk Can you try and rebase? Seems like OBS got stuck, other PRs are fine.

Remove 'backend' entry from status hash: this was always empty

Remove mocking of OpenQA::Worker::Isotovideo::Client
@kalikiana kalikiana merged commit 5e4e901 into os-autoinst:master Oct 25, 2019
perlpunk added a commit to perlpunk/os-autoinst that referenced this pull request Oct 25, 2019
The status API call is not used anymore since:
os-autoinst#1212

It is now writing a status file.

The corresponding PR in openQA to use the status file:
os-autoinst/openQA#2327

Issue: https://progress.opensuse.org/issues/39845
perlpunk added a commit to perlpunk/os-autoinst that referenced this pull request Dec 10, 2019
The status API call is not used anymore since:
os-autoinst#1212

It is now writing a status file.

The corresponding PR in openQA to use the status file:
os-autoinst/openQA#2327

Issue: https://progress.opensuse.org/issues/39845
perlpunk added a commit to perlpunk/os-autoinst that referenced this pull request May 14, 2020
The status API call is not used anymore since:
os-autoinst#1212

It is now writing a status file.

The corresponding PR in openQA to use the status file:
os-autoinst/openQA#2327

Issue: https://progress.opensuse.org/issues/39845
@perlpunk perlpunk deleted the new-status branch August 2, 2021 16:02
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

5 participants