$ the-wire · showcase
rust-lang/team cuts GitHub API calls to escape rate limits
By RepoJournal · Filed · About Rust · Composed from the cited sources · methodology
Kobzol's four-PR sweep on rust-lang/team removes, batches and moves hundreds of GitHub API calls per invocation into GraphQL, directly targeting the rate limits the team keeps hitting.
Reduce number of GitHub API calls rust-lang/team
The umbrella change that prompted the rest: the team had been running into GitHub API rate limits often, and the code was making unnecessary calls that this PR reduces, removes or batches. Kobzol used an LLM to find batching opportunities and generate the GraphQL for the branch protection change, writing the rest by hand.
Load repository collaborators in the repo GraphQL query rust-lang/team
Repository collaborators now load inside the repo GraphQL query instead of a separate REST call, removing one REST request per repository, roughly 250 fewer API calls per invocation. The GraphQL portion is LLM generated; the surrounding code and comments are Kobzol's.
Further optimize API calls rust-lang/team
Lands the next batching win on top of that reduction: approximately 170 repositories currently have no pages, so batch-loading them saves about 160 API calls per invocation, minus roughly 10 batch calls per org plus pagination. Loading rulesets from the repo GraphQL query was noted as a larger change and left out.
Rollup merge of #164173 - sjwang05:rerun-merge, r=jdonszelmann rust-lang/rust
A type-system correctness fix in the compiler: the merge of AnyOpaqueHasInferAsHidden with OpaqueInStorageOrAnyOpaqueHasInferAsHidden no longer drops the first condition. The match disagreed with the method's doc comment, and the author notes he could not find a program that misbehaves because of it, so the doc comment was corrected to match the code.
Rollup merge of #163258 - Jamesbarford:chore/move-const-pt2, r=lcnr rust-lang/rust
Part 2 of moving rustc_middle::ty::Const into rustc_type_ir: methods move out of ConstExt with small helpers added in their place, then ConstExt itself is deleted and dropped from imports in the compiler and in clippy. Part of the project-trait-system-refactor effort the compiler team has been carrying out.
deps: bump PyJWT to 2.15.1 and urllib3 to 2.8.0 in meetup-automation (#8805) rust-lang/this-week-in-rust
Routine dependency maintenance elsewhere in the org: this-week-in-rust's meetup-automation bumps PyJWT to 2.15.1 and urllib3 to 2.8.0. The rest of the day's traffic was index churn for weatherman-core, mhome-ble-commission, barcode-pao, etchdns and the new rightkit-file-watch crate, plus a submodule-ignore commit in rust-lang/thanks.