Skip to content

Run the real Pyrefly binary in CI - #5

Merged
kinto0 merged 1 commit into
mainfrom
kinto0/rules-1-ci-real-pyrefly
Dec 2, 2026
Merged

kinto0 merged 1 commit into
mainfrom
kinto0/rules-1-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.

Bottom of a stack. The PR above it adds all stable Pyrefly releases. This step runs first so that the version bump gets real-binary CI coverage.

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 closed this Dec 2, 2026
@kinto0 kinto0 reopened this Dec 2, 2026
@meta-cla meta-cla Bot added the cla signed label Dec 2, 2026
@kinto0
kinto0 added this pull request to stack #7 December 2, 2026 18:04
@kinto0
kinto0 merged commit 2a11a55 into main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant