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

Show machine in dependency graph #2477

Merged
merged 1 commit into from Nov 12, 2019

Conversation

Martchus
Copy link
Contributor


my $test = $self->TEST;
my $machine = $self->MACHINE;
return $machine ? "$test\@$machine" : $test;
Copy link
Contributor

Choose a reason for hiding this comment

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

how can we have not a machine?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code a few lines above in sub name implies that MACHINE is optional. There are also various other places, e.g. sub latest_jobs where MACHINE is optional while most other settings are mandatory. So I made this consistent with most other places in openQA. But there are indeed a few places where we expect machine to be present. Do you want me to fix all places to assume MACHINE is always present?

Copy link
Contributor

Choose a reason for hiding this comment

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

well, the iso controller surely won't create jobs without MACHINE - possibly the jobs controller allows that? Jobs created through that, won't have dependencies though :)

If you required it, you would have to pick one in the jobs controller - so having it optional might be easy enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Jobs created through the jobs controller can have dependencies. The clone job script makes use of this. And after a brief look it doesn't seem to require MACHINE which is by the way nullable

    MACHINE => {
        data_type   => 'text',
        is_nullable => 1
    },

in contrast to other variables which are either mandatory like

    TEST => {
        data_type => 'text'
    },

or by default empty, e.g.

    DISTRI => {
        data_type     => 'text',
        default_value => ''
    },

.

@codecov
Copy link

codecov bot commented Nov 12, 2019

Codecov Report

Merging #2477 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2477      +/-   ##
==========================================
- Coverage   87.05%   87.03%   -0.03%     
==========================================
  Files         168      168              
  Lines       11016    11020       +4     
==========================================
+ Hits         9590     9591       +1     
- Misses       1426     1429       +3
Impacted Files Coverage Δ
lib/OpenQA/WebAPI/Controller/Test.pm 63.17% <ø> (ø) ⬆️
lib/OpenQA/Schema/Result/Jobs.pm 86.44% <0%> (-0.44%) ⬇️
lib/OpenQA/Worker/Engines/isotovideo.pm 93.83% <0%> (+0.47%) ⬆️

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 966e014...edea01c. Read the comment docs.

@coolo coolo merged commit 333f828 into os-autoinst:master Nov 12, 2019
@Martchus Martchus deleted the machine-in-dependency-graph branch November 12, 2019 23:35
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

2 participants