-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Publish test crates #13418
Publish test crates #13418
Conversation
Added a fix to make However, the test still fails on: |
☔ The latest upstream changes (presumably #13494) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
However, the test still fails on:
Error: cargo-test-support not found in registry (crates.io)
We might want to do something like this, until we publish a version
633929d#diff-017fb78a9378b299832fb9eadf0e7b8c60ecca480f2415a168e1b48a5b6f3486
@rustbot author |
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
Marks the crates as publishable. Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
…sion-bump.sh pass Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
…heck pass Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
…I check pass Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
As discussed in #10147. Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
@rustbot ready |
Cool. We're all set. Thanks Paul! @bors r+ |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
@weihanglo Thank you! |
Update cargo 8 commits in 499a61ce7a0fc6a72040084862a68b2603e770e8..a59aba136aab5510c16b0750a36cbd9916f91796 2024-03-26 04:17:04 +0000 to 2024-03-28 21:21:41 +0000 - refactor(package): Simplify getting of published Manifest (rust-lang/cargo#13666) - fix(toml): Warn on unused workspace.dependencies keys on virtual workspaces (rust-lang/cargo#13664) - docs: clarify `--locked` ensures Cargo uses dependency versions in lockfile (rust-lang/cargo#13665) - RUSTC_WORKSPACE_WRAPPER: clarify docs (rust-lang/cargo#13648) - fix(add): Preserve comments when updating simple deps (rust-lang/cargo#13655) - fix(generate-lockfile): hold lock before querying index (rust-lang/cargo#13657) - test: Add asserts to catch BorrowMutError's (rust-lang/cargo#13651) - Publish test crates (rust-lang/cargo#13418) r? ghost
Update cargo 8 commits in 499a61ce7a0fc6a72040084862a68b2603e770e8..a59aba136aab5510c16b0750a36cbd9916f91796 2024-03-26 04:17:04 +0000 to 2024-03-28 21:21:41 +0000 - refactor(package): Simplify getting of published Manifest (rust-lang/cargo#13666) - fix(toml): Warn on unused workspace.dependencies keys on virtual workspaces (rust-lang/cargo#13664) - docs: clarify `--locked` ensures Cargo uses dependency versions in lockfile (rust-lang/cargo#13665) - RUSTC_WORKSPACE_WRAPPER: clarify docs (rust-lang/cargo#13648) - fix(add): Preserve comments when updating simple deps (rust-lang/cargo#13655) - fix(generate-lockfile): hold lock before querying index (rust-lang/cargo#13657) - test: Add asserts to catch BorrowMutError's (rust-lang/cargo#13651) - Publish test crates (rust-lang/cargo#13418) r? ghost
@weihanglo Do you have any news about this? The version currently uploaded is still |
member crates have the same release schedule as the main Cargo binary / library. See https://doc.crates.io/contrib/process/release.html#cratesio-publishing |
Woops, sorry. Got it, thanks! |
Just popping in to say that I've now switched to it and it works great, thanks again! |
What does this PR try to resolve?
This is an attempt to close #10147. In short, publish the
cargo-test-(macro|support)
crates to crates.io.Main parts:
publish.py
: not sure if you want this to be done. I put them after all other packages and in reverse-dependency order to ensure things will work the best, hopefully.How should we test and review this PR?
Sadly, the effective testing could not be done by me as it would require publishing the crates, which would block future publications by Cargo team members and therefore render the whole point of this impossible or cumbersome. Hopefully, the PR is small and readable enough that mistakes can be seen easily. The real testing would need to be done manually by some team member either before by checking the source branch out or after merging.
The only testing I was able to perform was to run
cargo publish --dry-run -p cargo-test-(macro|support)
. The first worked just fine. The second failed on thecrates-io
package not being available on crates.io in version0.40.0
. However, the package is in this version in the current sources. I therefore suspect that a run ofpublish.py
should work since the packages have been added there aftercrates-io
.Additional information
This is very much tentative and open to discussion. I tried my best to update things as I understood them. Please correct me on anything I would have done wrong or simply not thought of.