-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
a-better-finder-attributes: move to a/a-better-finder-attributes #141893
Conversation
19e703b
to
5426cc0
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@cho-m Do we still need this open? |
We should figure out how to shard the repo. I think we will want to commit at least one cask to test with before a full migration, whether this one or another option (3rd check item below). Some things that may need to be done:
|
I have tried a few sharding approaches, but haven't found a definitive one yet. These two seem like the best ones far. Approach 1In order to not have any hotspots with directories that are huge, we'd probably need to have dynamically sized shards, i.e. start with Approach 2Use first and last letter. Currently, the biggest directory using this approach ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just testing something. Feel free to ignore.
@reitermarkus, approach 2 makes a lot of sense to me. Last I checked, we would end up with ~500 directories. I've been playing around with md5 hashing the file name and taking a modulo of the hash to control the number of directories. If we use it to assign cask to directories, the distribution of casks/shard is reasonable. It would be decently easy to implement and audit, but very user-unfriendly. |
First and last letter seems weird to me. Better to do first and second letter IMO and can treat symbols differently e.g. skip them, put them into the directory without, etc.
Agreed. This is too user unfriendly. Note: even sharding by
which gets us reasonable levels of balance (none under 50, none over 550). |
/rebase |
5426cc0
to
a1fb4a4
Compare
Closing this out now that sharding was completed in #152603. |
Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.
In the following questions
<cask>
is the token of the cask you're submitting.After making any changes to a cask, existing or new, verify:
brew audit --cask --online <cask>
is error-free.brew style --fix <cask>
reports no offenses.Additionally, if adding a new cask:
brew audit --new-cask <cask>
worked successfully.brew install --cask <cask>
worked successfully.brew uninstall --cask <cask>
worked successfully.Experimenting with moving single cask to shard.
I think it will fail style assuming CI runs: