-
Notifications
You must be signed in to change notification settings - Fork 43
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
Dynamically bridged provider replay tests cleverer log matching strategy #2571
Comments
I would push on this. It does not have to be clever, the default strategy can match on request inputs. The current strategy matches requests based on the request type and random ordering position is not acceptable and will lead to lost time failing to reproduce issues and debugging non-deterministic replay request ordering. For more complicated cases there probably should be a hook, https://github.com/dnaeon/go-vcr?tab=readme-ov-file#custom-request-matching |
Yeah, that sound sensible. Do we have an example of when this will be needed? Something around multiple resources created in parallel perhaps? |
I would also like to see the framework get any usage, frankly, before investing more here. It's currently only there as a proof of concept |
This will be needed any time you have anything non-trivial. The requests aren't coming in-order. |
ACK. |
What happened?
The replay tests for dynamically bridged providers use a simple strategy of matching logs to requests by assuming the order is consistent.
We can do something cleverer if we need to like matching the inputs.
See #2484 (comment)
Example
.
Output of
pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: