[WIP] fix(workload): skip registering wasi 0.2 interfaces in resolved workload #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature or Problem
This pull request updates the plugin registration logic in the workload resolution process to skip registering WASI@0.2 interfaces, in addition to the existing
wasmcloud:wash/pluginfilter. After the refactor in #73, the registration flow is now implemented within the workload engine, and no longer usesDevPluginManager. The change ensures that unnecessary or conflicting registrations of WASI@0.2 interfaces—which are generally provided by the runtime—are prevented.Related Issues
Fixes #11
Release Information
next
Consumer Impact
There should be no impact on consumers or dependents. The change only affects internal plugin registration logic and does not alter any public APIs or behavior for plugin authors.
Testing
Unit Test(s)
Unit tests were added to verify that WASI@0.2 interfaces are correctly skipped during registration in the refactored workload engine logic. (See
test_resolve_with_plugins_successincrates/wash-runtime/src/engine/workload.rs.)Acceptance or Integration
No changes to acceptance or integration tests were required.
Manual Verification