Skip to content

Conversation

@Kobzol
Copy link
Member

@Kobzol Kobzol commented Jan 5, 2026

The new job queue system has been running in production, even with two parallel machines, for several weeks now, without any major issues. I don't expect that we would want to switch to the old system now; if some issues come up, we will just deal with them in the new system.

This PR thus removes most of the old job queue system from rustc-perf. There are still a few pieces left that are still used even with the new system, I plan to remove those later.

CC @Mark-Simulacrum

@Jamesbarford
Copy link
Contributor

Feels a tad risky however we may also want to add some DROP statements to the list of migrations for tables that are no longer needed?

@Kobzol
Copy link
Member Author

Kobzol commented Jan 5, 2026

I don't think that's needed tbh, having the old data in the production DB doesn't really hurt anything. If we'd ever do that I would only do it after a much longer timeframe. Reverting a PR is easy, reverting deleting a lot of DB data isn't :)


async fn last_n_artifact_collections(&self, n: u32) -> Vec<ArtifactCollection>;

// TODO: the following two functions do not work anymore and should not be used!
Copy link
Member

Choose a reason for hiding this comment

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

What blocks removal?

Copy link
Member Author

Choose a reason for hiding this comment

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

The new system still uses those two functions to do some lookups if something exists in the old system. It should be removed, but I wanted to avoid changing the new system in this PR, to keep it almost strictly non-functional, as it's already quite big.

Copy link
Member Author

Choose a reason for hiding this comment

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

#[allow(unused)]
include: Option<&'a str>,
#[allow(unused)]
exclude: Option<&'a str>,
Copy link
Member

Choose a reason for hiding this comment

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

Presumably we stopped supporting these - do we intend to re-add support? Or should this be FIXME + deleted in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't ever see anyone using them, and now that the whole benchmark takes just 40 minutes, and we can select subprofiles to make that even shorter, I don't think it's needed. So yeah, I wanted to remove them in the future, but I also wanted to mostly avoid functional changes in this PR, and just delete stuff. I'll do it in a follow-up.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@Jamesbarford Jamesbarford left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Kobzol
Copy link
Member Author

Kobzol commented Jan 6, 2026

Ok, let's try if this doesn't break anything. I'll remove the rest in a follow-up.

@Kobzol Kobzol added this pull request to the merge queue Jan 6, 2026
Merged via the queue into rust-lang:master with commit 9afdab1 Jan 6, 2026
14 checks passed
@Kobzol Kobzol deleted the remove-old-code branch January 6, 2026 08:46
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