Skip to content

test: start up all known plugins on the CI - #1309

Merged
dsherret merged 1 commit into
mainfrom
test-known-plugins
Oct 7, 2026
Merged

dsherret merged 1 commit into
mainfrom
test-known-plugins

Conversation

@dsherret

@dsherret dsherret commented Oct 7, 2026

Copy link
Copy Markdown
Member

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.ts runs dprint output-resolved-config for each plugin in a fresh directory with its own cache, which downloads, compiles, and starts the plugin.

  • Process plugins are added with dprint add --checksum <url> first, since info.json has no checksums.
  • A process plugin that isn't published for the current platform is reported as skipped.
  • dprint-plugin-exec gets a hardcoded { "commands": [] } config because it has a diagnostic without one.
  • It doesn't format any files, so it won't catch a break that only shows up when formatting.

The CI job

This executes third party code (process plugins aren't sandboxed), so it runs in its own test_known_plugins job 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_instance doc comment now that the initializer is only run conditionally, and uses has_initialize_export() in the WASI command check.

@dsherret
dsherret merged commit 62456b7 into main Oct 7, 2026
18 checks passed
@dsherret
dsherret deleted the test-known-plugins branch October 7, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration test to run all known plugins on the CI

1 participant