Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace edition-only lint workarounds with the existing Cargo edition. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…nches Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
d2db59189974663fc8339e56838e06b7a6bd9271↑ Nine selector tests cover unrelated changes, shared dependencies, deleted files, generated/native inputs, loaded build definitions, root config and push bases; no-change Actions run skips cache and lint.
↑ Push base resolution checked locally against real git for multi-commit, null and unreachable
before.↓ Push triggers on
main/rc/*, default-branch cache warming and new-branch/force-push fallbacks cannot be exercised in Actions before merge.Run Clippy with stable Rust 1.100.0 through Bazel, without changing the nightly toolchain used for release builds. This is an independent alternative to using Cargo for CI linting.
The workflow selects affected root-workspace Rust targets using the PR merge-base diff and Bazel's input graph. Shared dependencies invalidate their dependents; root configuration and shared Bazel infrastructure changes invalidate all covered targets. It explicitly selects the underlying Rust targets, including declared tests, rather than universal-binary wrappers: the Clippy aspect does not traverse dependencies. This currently covers 21 targets in 14 workspace projects. Cargo-only targets and the three workspace crates under
ql/are out of scope.Lint levels and priorities are read from the workspace
Cargo.toml, with the rootclippy.tomland explicit-D warnings. The three Yeast targets now explicitly use Cargo's edition 2021 instead of Bazel's default 2024. The only Rust source cleanup in the final diff is the newly exposedsingle_match_elsewarning in the unified Swift extractor.The workflow runs on PRs and on pushes to
mainandrc/*, preserving the push coverage of the Cargo Clippy checks it replaces. Pushes compare against the previous head, covering every pushed commit; a push creating a branch compares against the default branch, and an unavailable previous head (e.g. after a force-push) lints all covered targets. It adds an Actions-backed Bazel download/action cache. It restores the cache only when targets need linting; changed-target runs onmaincan warm a default-branch cache for subsequent PRs. Stable and nightly compiler artifacts cannot be shared. An explicit-base manual dispatch supports isolated measurements without changing PR selection.CI measurements
All measurements below use
ubuntu-latest. The deliberate probe waslet _clippy_ci_probe = 1 == 1;at the start of the Rust extractor'smain. Both probe runs failed onclippy::eq_opandclippy::no_effect_underscore_binding, with Rust 1.100.0 diagnostic links. The probe was removed ine71be3dbf1db04291223b9802340975e862b8c2e; the final head has no extractor source diff.//rust/extractor:single_arch/extractord2db591The clean baseline head is
56addaff4a9359376c41e7eac0232bb987d39ef5; both probe runs useb139369c8c544eaf9e22b0efd59faeecfb87726f. The extractor-only manual run compares against5cc091f30d2770cef3c882b3ec8836d412f6fa2f, so it excludes this PR's configuration changes. Its cache miss is real: PR-ref caches are not available to branch-scoped manual dispatches. PR-wide runs continue selecting all targets because this PR changes root configuration.The warm probe had 673 extractor dependency action-cache hits and 343 other-target hits. The final clean run had 674 extractor hits, but still executed 116 other-target actions, so it was not fully warm. Its roughly 2 GiB cache took 37s to restore and 17s to save; checkout took 35s and target selection 15s. Cold builds additionally compile native Swift dependencies. The final workflow moves selection ahead of restore to avoid downloading that cache on no-target changes.
These are individual observations, not a statistically controlled benchmark. Bazel provides precise build-input dependency information, but cold stable/native compilation, graph loading, full checkout and cache transfer are material costs. Until
mainhas successfully populated its cache, a new PR starts cold even if another PR already passed.