Repository navigation
test: start up all known plugins on the CI - #1309
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1307
Adds a CI job that starts up the latest version of every plugin listed at https://plugins.dprint.dev/info.json with the dprint built from the commit. This would have caught #1306 before the release.
The test
.github/scripts/test_known_plugins.tsrunsdprint output-resolved-configfor each plugin in a fresh directory with its own cache, which downloads, compiles, and starts the plugin.dprint add --checksum <url>first, sinceinfo.jsonhas no checksums.dprint-plugin-execgets a hardcoded{ "commands": [] }config because it has a diagnostic without one.The CI job
This executes third party code (process plugins aren't sandboxed), so it runs in its own
test_known_pluginsjob rather than in the build job that produces the release artifacts. The job never runs on tags, has a read-only token, doesn't persist the checkout credentials, and doesn't use the Rust cache, so nothing is shared with the build job. The cost is an uncached debug build on every run.It only runs on Linux x64. Since it tests the latest published versions, a broken plugin release will fail this job on unrelated PRs.
Other
Follow-up to #1308: updates the
load_instancedoc comment now that the initializer is only run conditionally, and useshas_initialize_export()in the WASI command check.