-
Notifications
You must be signed in to change notification settings - Fork 26
Align WorkQueueBuilder with new workqueue work timeout feature #86
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
base: main
Are you sure you want to change the base?
Align WorkQueueBuilder with new workqueue work timeout feature #86
Conversation
10be7f8
to
5fc831d
Compare
Thank you for your contribution. I am actually in the midst of a bit of an overhaul of how the workqueue code works, so we'll have to rework this a bit at that point. Probably my main concern is that with the current code, the work will actually get leaked if it is aborted due to a timeout. I'll try to think if there is a way to deal with this. One thing I have planned to add is to allow my new |
I think the only practical way to get this into both Zephyr and Rust is going to be to add the support based on some conditional ( |
Modules in zephyr constantly need to be updated and synced, this is not an issue :) The process is this:
The problem here is that the module itself is running its own CI, against an incorrect version of zephyr, IE, not the one being created in step 2. The CI in this PR here should be ignored, as it is not tracking zephyr. |
5fc831d
to
85aab93
Compare
@d3zd3z Please revisit this, its been a month now... |
this is a problem we also have with SOF for example where the dependency is circular with CI running in multiple places, if you merge in rust, rust CI will fail because the change is still not merged in zephyr, maybe you end up merging something in rust before getting the reviews/approvals on the zephyr side, i.e. some changes might be requested or someone might block the PR for a long period of time, so, that is probably what @d3zd3z means with lockstep. |
The PR was approved and ready to be merged a month ago, It was just blocked by the manifest DNM... |
I'm just not sure what I'm supposed to do here. This doesn't compile without the upstream change, and the upstream change without this will break the rust CI build. It does seem easier to make the upstream depend on something like a |
You are supposed to merge the PR, this module is not standalone, its an optional module of zephyr. Once you merge this PR, nothing in zephyr breaks, since the optional module points to a sha before this PR is merged. Then, the zephyr PR is updated to point to the new sha here, and both changes to this submodule and the zephyr API changes go in together. The only thing that matters is that zephyr builds with the version of this submodule that the zephyr manifest points to, CI in this module is not relevant. |
The k_work_q has been extended with a new feature, the work timeout, which comes with a new field to k_work_queue_config, work_timeout_ms, which must be initialized. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
85aab93
to
7744f15
Compare
The feature comes with a new parameter to be initialized using the WorkQueueBuilder.