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
Test Fedora Messaging messages in CI #3180
Conversation
What can be added to this:
|
It looks like Jenkins is not running the integration tests, I don't know why. I'm looking into it but if you have an idea I'm all ears. |
Ah, that's because of #3157 |
62115e4
to
609bd8c
Compare
OK, the failures we have now are related to the DNF API breakage. |
output = "".join(line.decode("utf-8") for line in output) | ||
assert output.endswith("Sending composer.start message\n") | ||
# Give some time for the message to go around | ||
time.sleep(2) |
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.
I wonder if we could use asyncio.wait() here so that we will wait up to a timeout but not always the length of the sleep here? This way we can react as the messages arrive, but also won't hang forever if they don't arrive. I once found a sleep statement in Bodhi that was causing its unit tests to take a good bit longer and got a pretty big boost by dropping it in d26d42a ☺ What do you think?
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.
I'm not sure how to do that. What event will trigger the completion of the future in wait()
? I don't think we can bubble up that event from the container to the host, where the tests are run. Can we?
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.
Yeah I didn't really consider the complexity of detecting changes from within the container.
OK I've made some changes in the last commit (to be squashed before merge). I removed I don't know how to address the |
I rebased the PR, I think this is ready for re-review. |
@abompard One small change needed otherwise LGTM |
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
OK, I implemented your change @cverna , and I rebased and squashed the commits. This should be good for re-review. Thanks. |
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.
LGTM
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.
Thanks!
This PR adds the infrastructure to send and receive Fedora Messaging messages in the CI environment, and test the messages that went through.