Skip to content

Remove our cynic dependency - #2471

Merged
Urgau merged 3 commits into
rust-lang:masterfrom
Urgau:rm-cynic
Aug 6, 2026
Merged

Remove our cynic dependency#2471
Urgau merged 3 commits into
rust-lang:masterfrom
Urgau:rm-cynic

Conversation

@Urgau

@Urgau Urgau commented Aug 3, 2026

Copy link
Copy Markdown
Member

Our cycnic dependency has bothered me for quite a while now.

This PR removes it by moving the two queries to our queries system. Saving a build script and 40 deps to build!

I've tested both migrated queries. Seems to work as expected.

@Urgau
Urgau requested a review from Kobzol August 3, 2026 19:57
@Urgau Urgau changed the title Remove cynic dependency Remove our cynic dependency Aug 3, 2026

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fully agreed that just writing these queries by hand is easier to read, understand and modify, and in general just much less magic happening. I'd be happy to see this dependency go away :)

That being said, since this is a rather large change, I think that we should do a vibe check on the triagebot Zulip channel about it.

View changes since this review

let mut data = self
.graphql_query(
r#"
query LeastRecentlyReviewedPullRequests(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good case for the local GH database mirror, to avoid these kinds of remote GH queries :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by local gh db? do you mean that to cache results of this query? This specific query is run when I prepare the weekly triage agenda, I need fresh data everytime

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant https://rust-lang.zulipchat.com/#narrow/channel/224082-triagebot/topic/Integrating.20a.20GitHub.20mirror.20.2B.20dashboard.20in.20triagebot/with/612107852, if we had the GitHub mirror in the triagebot DB, this could just be an SQL query (potentially with a force-refresh before running the data if up-to-date state is required).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "force-refresh" part is def. needed for my queries :)

@Urgau
Urgau added this pull request to the merge queue Aug 6, 2026
Merged via the queue into rust-lang:master with commit f84a05f Aug 6, 2026
3 checks passed
@Urgau
Urgau deleted the rm-cynic branch August 6, 2026 08:56
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.

3 participants