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

Fixed blocked_by calculation not to create loops #1743

Merged
merged 3 commits into from
Sep 7, 2018

Conversation

coolo
Copy link
Contributor

@coolo coolo commented Aug 9, 2018

blocked_by means: either one job in the parallel cluster or
a parent of a chained parent is not final. So looking at
chained_children of the cluster gives us possibly a cycle

As such don't look at the full cluster's chained deps, but
only of those pointing up

@coolo
Copy link
Contributor Author

coolo commented Aug 9, 2018

This is hotpatched on osd - and it obviously needs investment in tests

@coolo
Copy link
Contributor Author

coolo commented Aug 9, 2018

On the bike I had the thought, that even chained_parents shouldn't be necessary - as we look at $self too.

But please come up with test scenarios for blocked_by - I'll be on vacation

blocked_by means: either one job in the parallel cluster or
a parent of a chained parent is not final. So looking at
chained_children of the cluster gives us possibly a cycle

As such don't look at the full cluster's chained deps, but
only of those pointing up
@codecov
Copy link

codecov bot commented Sep 6, 2018

Codecov Report

Merging #1743 into revert_to_new_scheduler will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@                     Coverage Diff                     @@
##           revert_to_new_scheduler    #1743      +/-   ##
===========================================================
- Coverage                    90.22%   90.21%   -0.01%     
===========================================================
  Files                          139      139              
  Lines                         9704     9711       +7     
===========================================================
+ Hits                          8755     8761       +6     
- Misses                         949      950       +1
Impacted Files Coverage Δ
lib/OpenQA/WebAPI/Controller/Test.pm 96.7% <100%> (ø) ⬆️
lib/OpenQA/Schema/Result/Jobs.pm 92.32% <100%> (+0.06%) ⬆️
lib/OpenQA/Worker/Commands.pm 85.71% <0%> (-2.6%) ⬇️
lib/OpenQA.pm 71.79% <0%> (+2.56%) ⬆️

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 4f3e0ac...27c6200. Read the comment docs.

While doing so I discoverated that duplicate does not calculate
blocked_by
@coolo coolo changed the base branch from master to revert_to_new_scheduler September 7, 2018 14:12
This was messed up in the revert revert commit
@coolo
Copy link
Contributor Author

coolo commented Sep 7, 2018

the revert was half broken when it comes to the orange - fortunately @mitiao's test case triggered once I fixed the blocked_by for duplication

@coolo coolo merged commit 05e77e8 into os-autoinst:revert_to_new_scheduler Sep 7, 2018
@coolo coolo deleted the fix_blocked_by branch September 7, 2018 15:17
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

1 participant