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

Bodhi does not include scenario in generated waivers #4270

Closed
AdamWill opened this issue Nov 4, 2021 · 2 comments · Fixed by #4687
Closed

Bodhi does not include scenario in generated waivers #4270

AdamWill opened this issue Nov 4, 2021 · 2 comments · Fixed by #4687

Comments

@AdamWill
Copy link
Contributor

AdamWill commented Nov 4, 2021

When someone waives results on an update via Bodhi, it seems the scenario field of the generated waiver is always null, even when the result definitely has a scenario. e.g. check this waiver: https://waiverdb-web-waiverdb.app.os.fedoraproject.org/api/v1.0/waivers/9181

The scenario is null, but there would never be a update.install_default_update_live test run with no scenario. For any critpath update there will be four runs of that test with four different scenarios. I'm not sure offhand if Bodhi is generating just one waiver with a null scenario or four waivers with null scenarios in this case, but neither is really correct.

@mattiaverga
Copy link
Contributor

Just one waiver with null scenario:

bodhi/bodhi/server/models.py

Lines 3102 to 3117 in 8915647

for requirement in self._unsatisfied_requirements:
if tests and requirement['testcase'] not in tests:
continue
data = {
'subject': requirement['item'],
'testcase': requirement['testcase'],
'product_version': self.product_version,
'waived': True,
'username': username,
'comment': comment
}
log.debug('Waiving test results: %s' % data)
util.waiverdb_api_post(
'{}/waivers/'.format(config.get('waiverdb_api_url')), data)

@AdamWill
Copy link
Contributor Author

AdamWill commented Nov 4, 2021

OK. So I think the result of that is that Greenwave considers all tests matching the testcase and item to be waived. So it's not the worst outcome for what Bodhi is trying to do, but it is technically incorrect.

@mattiaverga mattiaverga linked a pull request Oct 13, 2022 that will close this issue
@mergify mergify bot closed this as completed in #4687 Oct 15, 2022
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 a pull request may close this issue.

2 participants