Skip to content
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

Remove support for old release schema #208

Closed
1 task done
NobodyXu opened this issue Apr 7, 2023 · 3 comments · Fixed by #212
Closed
1 task done

Remove support for old release schema #208

NobodyXu opened this issue Apr 7, 2023 · 3 comments · Fixed by #212

Comments

@NobodyXu
Copy link
Member

NobodyXu commented Apr 7, 2023

It has been quite a long time since we roll out the new release schema.

I think we should now:
- [ ] stop uploading in old release schema

  • remove all releases using old schema to free up spaces

@alsuren What's your thought on this?
BTW, what is the command for retrieving the user agent hitting the stats API?

@alsuren
Copy link
Collaborator

alsuren commented Apr 7, 2023 via email

@NobodyXu
Copy link
Member Author

NobodyXu commented Apr 7, 2023

I don't think we need to worry about the space taken up by the duplicate
releases. All of our releases put
together are still probably smaller than a single release of a modern
computer game. The --dry-run flag was put in so that you can copy-paste the
curl | tar command into your ci pipeline if you want. We don't have any
stats about that, but it's existence suggests that we should never delete
released assets.

Yeah, I might be overthinking the impact of these releases and it's better to keep backwards compatibility.

It might be time to stop the duplicate uploading though. Let's look at the
stats and make a decision.

$ curl \
    --user-agent "cargo-quickinstall build pipeline ([email protected])" \
    --silent \
    --show-error \
    -XGET \
    "https://warehouse-clerk-tmp.vercel.app/api/agents" | jq
{
  "cargo-binstall/0.20.1": 64,
  "cargo-binstall/0.21.2": 4,
  "cargo-binstall/0.21.3": 2,
  "cargo-binstall/0.22.0": 279,
  "binstalk/0.4.1": 177,
  "cargo-binstall/0.17.0": 4,
  "cargo-binstall/0.18.1": 376,
  "cargo-binstall/0.19.3": 23,
  "cargo-quickinstall/0.2.9 client ([email protected])": 8
}

It seems that people already switches to latest cargo-quickinstall.

Though for cargo-binstall, many are still using old versions.
It was not until v0.21.0 (which is yanked) that binstall support the new release schema.

binstalk/0.4.1 probably refers to an even older release where we have just split out binstalk_downloader as a separate workspace and hasn't even fixed the user agent.

But since binstall only does a best effort, perhaps we can go ahead and remove the duplicate uploading.
Let's wait for a few days and remove that part.

@NobodyXu NobodyXu pinned this issue Apr 7, 2023
@NobodyXu
Copy link
Member Author

Update in 19 Apr 2023:

❯ curl \
    --user-agent "cargo-quickinstall build pipeline ([email protected])" \
    --silent \
    --show-error \
    -XGET \
    "https://warehouse-clerk-tmp.vercel.app/api/agents" | jq

{
  "cargo-quickinstall/0.2.9 client ([email protected])": 59,
  "binstalk/0.2.0": 2,
  "cargo-binstall/0.18.1": 66,
  "cargo-binstall/0.19.3": 12,
  "cargo-binstall/0.20.1": 20,
  "cargo-binstall/0.21.3": 2,
  "cargo-binstall/0.22.0": 876
}

Now I can see a trend that people is moving towards latest cargo-binstall and it seems that all quickinstall users are using the latest release, so I think it's time to stop uploading in old release schema.

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 a pull request may close this issue.

2 participants