Skip to content

Run the real Pyrefly binary in CI - #4

Closed
kinto0 wants to merge 1 commit into
pyrefly-org:mainfrom
kinto0:ci-real-pyrefly
Closed

kinto0 wants to merge 1 commit into
pyrefly-org:mainfrom
kinto0:ci-real-pyrefly

Conversation

@kinto0

@kinto0 kinto0 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • What: Add a step to the integration matrix (Ubuntu, macOS, Windows × Bazel 8.7.0, 9.2.0) that runs python tests/verify_toolchain_resolution.py --output-group=pyrefly.
  • Why: The integration job only runs tests/verify_demo.py, and that test uses //:fake_pyrefly. CI never executes a downloaded Pyrefly binary. If a Pyrefly release breaks the bazel-check action path, or a checksum change in versions.bzl is wrong, CI stays green.
  • How: The script already exists, and the README lists it as a manual check. It writes a small workspace that registers the default toolchain, downloads the real release binary for the runner platform, and runs the bazel-check action on one clean target. It fails if the action fails.

This PR is independent of #3. After #3 lands, this step checks Pyrefly 1.5.1, because #3 changes the script default.

Test plan

  • macOS arm64, Bazel 9.2.0: python tests/verify_toolchain_resolution.py --output-group=pyrefly passes. The Pyrefly action runs in darwin-sandbox, so it executes the real binary, not the fake one.
  • Linux and Windows coverage comes from the CI run on this PR.

The integration job only runs tests/verify_demo.py, which uses //:fake_pyrefly. CI never executes a downloaded Pyrefly binary, so a Pyrefly release that breaks the bazel-check action path keeps CI green.

Run tests/verify_toolchain_resolution.py --output-group=pyrefly in the integration matrix. This script already exists and the README lists it as a manual check. It resolves the registered toolchain, downloads the real release binary, and runs the bazel-check action.
@kinto0

kinto0 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Replaced by #5.

@kinto0 kinto0 closed this Dec 2, 2026
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.

1 participant