-
Notifications
You must be signed in to change notification settings - Fork 115
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
Fix number of imported templates #14376
Fix number of imported templates #14376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, on a first look, the templates do not match, however these tests have been passing for quite some time, at least for Sat. stream.
The question is, whether this change does not break them or if the current template numbers are incorrect and the tests have false positives.
@dosas What does the PRT result say?
@pnovotny This is exactly what I would like to discuss. When I count the templates here https://github.com/SatelliteQE/foreman_templates/tree/automation/import I count 18, right? |
trigger: test-robottelo |
1 similar comment
trigger: test-robottelo |
PRT Result
|
You really should use this opportunity to investigate why it has passed till now, you might be overseeing a bug. |
@lhellebr who is you? |
@dosas Since you are the one proposing this change, I would say it's up to you to show us this is actually an error in the test. Since so far, automation expected these values and it has passed. So the fact it has passed until now but your new version is correct, does it mean there was a bug both in automation and in Satellite until now? FYI, with this PR, PRT is failing with errors such as
Does it mean your PR is wrong or there is a bug in Satellite? |
@lhellebr I am not claiming my PR is right and the current code is wrong. I made this PR as a base for discussing this (not obvious and from an outside point of view weird/wrong) behavior. It is not easily possible to start a discussion or ask questions without a PR since issues tend to be ignored and there is no other forum or channel of communication that I know of. Reading your explanations I am starting to think that this might be a upstream vs. downstream specific issue? If some templates cannot be imported the less confusing fix would have been to adapt the template repository and the tests. |
This pull request has not been updated in the past 45 days. |
trigger: test-robottelo |
first things first - I can't find words to express how sorry I am that it took me so awkwardly long to reply to this (i simply missed the notification). I re-triggered the automation and will review the results. My guess is there would be some warning logged in the |
PRT Result
|
@dosas so, mystery solved. i ran the tests again and checked the logs. there's 1 template that was skipped, due invalid
I'd suggest to define a cached property of a Capsule class, that would hold the enabled "features" and choose the appropriate count based on the |
Thank you for investigating and finding the problem. I will try to implement the proposed changes. |
2fdb1fc
to
2da01f6
Compare
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a minor tweak to constants and you are good to go
depending on feature availability The number of total templates and templates containing robottelo should match this repo and branch https://github.com/SatelliteQE/foreman_templates/tree/automation but if puppet module is missing one template is not imported "exception": "unknown input type 'puppet_parameter'"
2da01f6
to
9c6bf86
Compare
trigger: test-robottelo |
PRT Result
|
@pnovotny would you mind revisiting this? |
LGTM |
Make number of imported templates depending on feature availability The number of total templates and templates containing robottelo should match this repo and branch https://github.com/SatelliteQE/foreman_templates/tree/automation but if puppet module is missing one template is not imported "exception": "unknown input type 'puppet_parameter'" (cherry picked from commit 1768393)
Make number of imported templates depending on feature availability The number of total templates and templates containing robottelo should match this repo and branch https://github.com/SatelliteQE/foreman_templates/tree/automation but if puppet module is missing one template is not imported "exception": "unknown input type 'puppet_parameter'"
The number of total templates and templates
containing robottelo should match this repo and branch https://github.com/SatelliteQE/foreman_templates/tree/automation
I have no idea why it was once changed to a wrong number without further explanation:
95434f5