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
Consider sending fedmsg when stream metadata changes #225
Comments
Even in the case of polling, a "stream metadata updated" event can be used as a trigger to do an immediate refresh instead of waiting for the whole polling period. |
We should be able to do this pretty easily now that we're set up to send fedmsgs. See possible message template for this at #198 (comment). |
So releases today actually happen in three steps:
Technically, it's released as part of the first step, but it doesn't actually show up on the website until the last step. I think we should just have a fedmsg for each. The first one could be e.g. |
Some context on this from IRC: this came up in a discussion with @AdamWill who was interested in these messages to be able to hook FCOS releases into openQA testing. One suggestion I made was to hook it to builds instead of releases so tests happen earlier. But we also today don't emit messages on new builds. So in total I think there would be 4 useful messages to add:
For the first two, see the first bikeshed message payload at #198 (comment). (I realize this is hijacking the original ticket a bit, though it's good to think about how all these messages fit together.) |
for my purposes, the key requirements are that the message be emitted when a new set of artifacts (specifically the "live" ISO and/or the disk images, assuming those can be booted if attached to a VM and fed an ignition file somehow, I haven't tested that yet) is available for download, and that a consumer can discover or reliably infer (by some kind of predictable and stable pattern) the location of the artifacts from the contents of the message. |
SGTM |
This function will be used for sending informational messages (i.e. for which we don't expect a reply) other services may care about. The new fedmsgs are, with prefix omitted: - `build.state.change`: to signal build start and finish - `stream.release`: to signal stream release - `stream.metadata.update`: to signal stream metadata change Ref: coreos/fedora-coreos-tracker#225
This function will be used for sending informational messages (i.e. for which we don't expect a reply) other services may care about. The new fedmsgs are, with prefix omitted: - `build.state.change`: to signal build start and finish - `stream.release`: to signal stream release - `stream.metadata.update`: to signal stream metadata change Ref: coreos/fedora-coreos-tracker#225
This patch adds four new fedmsgs: - `build.state.change`: emitted at the start and end of a build - `stream.release`: emitted when a build is released - `stream.metadata.update`: emitted for stream/graph metadata updates This will allow other services to hook more closely into our process. Some use cases right now are AWS Marketplace listing updates, mirrors triggering a sync, and OpenQA testing the latest artifacts. I started with a helper for sending the messages in `utils`, but I'd like to get rid of `utils` down the line in favour of moving all that functionality into the shared library. Closes: coreos/fedora-coreos-tracker#225
This patch adds four new fedmsgs: - `build.state.change`: emitted at the start and end of a build - `stream.release`: emitted when a build is released - `stream.metadata.update`: emitted for stream/graph metadata updates This will allow other services to hook more closely into our process. Some use cases right now are AWS Marketplace listing updates, mirrors triggering a sync, and OpenQA testing the latest artifacts. I started with a helper for sending the messages in `utils`, but I'd like to get rid of `utils` down the line in favour of moving all that functionality into the shared library. Closes: coreos/fedora-coreos-tracker#225
This function will be used for sending informational messages (i.e. for which we don't expect a reply) other services may care about. The new fedmsgs are, with prefix omitted: - `build.state.change`: to signal build start and finish - `stream.release`: to signal stream release - `stream.metadata.update`: to signal stream metadata change Ref: coreos/fedora-coreos-tracker#225
This patch adds four new fedmsgs: - `build.state.change`: emitted at the start and end of a build - `stream.release`: emitted when a build is released - `stream.metadata.update`: emitted for stream/graph metadata updates This will allow other services to hook more closely into our process. Some use cases right now are AWS Marketplace listing updates, mirrors triggering a sync, and OpenQA testing the latest artifacts. I started with a helper for sending the messages in `utils`, but I'd like to get rid of `utils` down the line in favour of moving all that functionality into the shared library. Closes: coreos/fedora-coreos-tracker#225
This patch adds four new fedmsgs: - `build.state.change`: emitted at the start and end of a build - `stream.release`: emitted when a build is released - `stream.metadata.update`: emitted for stream/graph metadata updates This will allow other services to hook more closely into our process. Some use cases right now are AWS Marketplace listing updates, mirrors triggering a sync, and OpenQA testing the latest artifacts. I started with a helper for sending the messages in `utils`, but I'd like to get rid of `utils` down the line in favour of moving all that functionality into the shared library. Closes: coreos/fedora-coreos-tracker#225
@AdamWill this is in production now. Here is an example fedmsg emitted when a build is done: Copying relevant snippet for posterity:
|
Something might want to process stream metadata updates without polling.
The text was updated successfully, but these errors were encountered: