Skip to content

Automatic prioritization of crates #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 15, 2020
Merged

Conversation

Kixiron
Copy link
Member

@Kixiron Kixiron commented Apr 13, 2020

  • Creates the crate_priorities table in the database
    • Holds a pattern and a priority
    • If the requested crate name matches the pattern, the crate is given the associated priority for the build queue
  • Added tests for getting priority and queuing crates
  • Added docs for getting priority and queuing crates
  • Can be extended in the future with quantity-based timeouts where users who submit x number of crates in y time get a temporary priority drop

Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

Thanks for the work on this, it looks really good!

Kixiron and others added 12 commits April 14, 2020 13:30
Co-Authored-By: Joshua Nelson <joshua@yottadb.com>
Co-Authored-By: Joshua Nelson <joshua@yottadb.com>
Co-Authored-By: Joshua Nelson <joshua@yottadb.com>
Co-Authored-By: Joshua Nelson <joshua@yottadb.com>
Co-Authored-By: Joshua Nelson <joshua@yottadb.com>
You've tricked me the last time, Jyn. Fool me once, shame on you. Fool me twice... well, it looks like I really am the fool, now aren't I? You, sitting there with your code reviews, adding suggestions "Remove this! Add that! This is critically broken and threatens the stability of our infrastructure!". Well I've had enough. I'm through with your deceit and trickery, for this is the last straw. This is the straw that broke the camel's back, and this camel isn't particularly happy about its back being broken. No, this camel is done with it all! Off with the straw! No longer will I sit here, straw being piled on my back by a malicious taskmaster, breaking my back over pull requests, only to be broken again and again. This is the end, I am free now!
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

I want to test the CLI behavior locally, but otherwise this looks great :)

@jyn514
Copy link
Member

jyn514 commented Apr 14, 2020

You can test the CLI changes by running without the CRATESFYI_DATABASE_URL variable set. Currently, it does nothing; it should instead give an error.

@jyn514 jyn514 merged commit f3828e7 into rust-lang:master Apr 15, 2020
@jyn514
Copy link
Member

jyn514 commented Apr 15, 2020

Thanks for working on this!

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