Fixes #37320 - Set IDs on outputs#88
Conversation
25a5c24 to
080b056
Compare
7a84f3a to
c69d2b5
Compare
|
This should be ready once smart_proxy_dynflow-0.9.4 goes out. |
f460185 to
967c69e
Compare
26ffbe2 to
91a1f4c
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR aims to resolve issue #37320 by setting IDs on outputs. Key changes include:
- Bumping the dependency on sp-dynflow in the gemspec.
- Propagating id and timestamp parameters to output publishing calls in the ansible runner.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| smart_proxy_ansible.gemspec | Updated the runtime dependency constraint for smart_proxy_dynflow to require a minimum version. |
| lib/smart_proxy_ansible/runner/ansible_runner.rb | Added id and timestamp parameters in methods handling host events and broadcast data. |
Comments suppressed due to low confidence (1)
lib/smart_proxy_ansible/runner/ansible_runner.rb:132
- [nitpick] Consider adding unit tests to verify that the 'id' and 'timestamp' parameters are correctly propagated through the publish_data_for and broadcast_data methods.
publish_data_for(hostname, event['stdout'] + "\n", 'stdout', id: event['uuid'], timestamp: event['created']) if event['stdout']
91a1f4c to
1476a7b
Compare
1476a7b to
057e3e9
Compare
adamlazik1
left a comment
There was a problem hiding this comment.
LGTM other than the comment above. But that would be solved in a different repo anyway.
It's been a while since I put this together, but no, that doesn't sound right.
Eh, not really. It expects a time instance, not a string. |
|
@adamlazik1 changed, could you please look once more? |
32e0575 to
6fe0818
Compare
adamlazik1
left a comment
There was a problem hiding this comment.
Right now I am getting "timestamp"=>1766156561.3115878 on the foreman side, which would be equivalent to Time.now.to_f, so it looks like it works as intended.
Also, I don't know how much this matters, probably not a lot, but should warning be thrown if parse_timestamp intercepts an exception instead of passing a new timestamp based on Time.now?
6fe0818 to
dc31cd8
Compare
Probably not a whole lot, but added anyway |
|
Thanks @adamruzicka! |
Requires:
TODO: