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

Update badges documentation #8180

Closed
wants to merge 3 commits into from
Closed

Conversation

EdorianDark
Copy link

After removal of badges in crates.io the documentation should be updated accordingly.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Eh2406 (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 29, 2020
@@ -49,6 +49,40 @@ breakage in nightly will not fail your overall build. Please see the
[GitLab CI](https://docs.gitlab.com/ce/ci/yaml/README.html) for more
information.

### Github Actions
Copy link
Contributor

Choose a reason for hiding this comment

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

This change seems unrelated?

Copy link
Author

Choose a reason for hiding this comment

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

Oh indeed. Is it ok here or is a seperate pull request better?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's probably fine to be here.

@ehuss
Copy link
Contributor

ehuss commented Apr 29, 2020

rust-lang/crates.io#2436 (comment) seems to imply that it is not yet deprecated. Is it maybe premature to remove these? FWIW, I don't mind either way, it just seems like this hasn't been set in stone, yet. AFAIK, lib.rs doesn't show these, but do other registries?

@EdorianDark
Copy link
Author

The documentation stated, that these badges would be displayed in crates.io.
But they are not displayed any more and the cited comment notes, there is not much reason to keep these fields.

@ehuss
Copy link
Contributor

ehuss commented Apr 29, 2020

ping @rust-lang/crates-io are you OK with removing the CI badges documentation at this time, which will show up in the stable docs in 1.45 (July 16)?

@@ -49,6 +49,40 @@ breakage in nightly will not fail your overall build. Please see the
[GitLab CI](https://docs.gitlab.com/ce/ci/yaml/README.html) for more
information.

### Github Actions
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's probably fine to be here.

src/doc/src/guide/continuous-integration.md Outdated Show resolved Hide resolved
@jtgeibel
Copy link
Member

jtgeibel commented May 1, 2020

The crates.io team discuss this in our meeting today, and there were no objections to this change and targeting the 1.45 release. I didn't review the GH Actions additions in this PR, but the removal of all badges with the exception of maintenance status looks great. Thanks!

Comment on lines +436 to +437
[crates.io] does not display various badges for build status, test coverage, etc. for
each crate any more. Only the following fields will be shown.
Copy link
Contributor

@ehuss ehuss May 2, 2020

Choose a reason for hiding this comment

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

I would not start off with what badges don't do. Perhaps start off with a description, such as:

Badges are pieces of status information about a package. They can
be displayed as small images on a package registry website. 

Then follow with a description of the badges that are supported by crates.io. I would keep the description of the maintenance badges, and the link to isitmaintained.com, for example.

Then, at the bottom after the example, include a note for anyone who may be confused as to what changed:

Note: [crates.io] previously displayed badges next to a crate on its
website, but that functionality has been removed. Packages should place
badges in its README file and set the readme field so
that the entire README is displayed on [crates.io].

Also, I'm uncertain, but it looks like crates.io is not showing any badges anymore? What is the state of the maintenance badges? Why would someone set them?

Also, the format for the fields is not explained. What is the form for the repository field? Is it a URL to a website? A git URL?

Copy link
Author

Choose a reason for hiding this comment

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

Since the maintenance status is moved into the gui maybe the whole section should be removed?

@ehuss ehuss changed the title Update documentation Update badges documentation May 13, 2020
@bors
Copy link
Contributor

bors commented Sep 23, 2020

☔ The latest upstream changes (presumably #8727) made this pull request unmergeable. Please resolve the merge conflicts.

Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@behnam
Copy link
Contributor

behnam commented Sep 28, 2020

Looks like the problem with the current changes comes from the fact that there's actually nothing left for Cargo to do with badge attributes in the manifest.

I think we need to either clarify their reason for existence, or just put the in the "deprecated and not used anymore" category. The latter would require changing the code, as well, to raise a warning when the attribute is used.

Anyone knows if there's an issue already open for this?

@ehuss
Copy link
Contributor

ehuss commented Sep 28, 2020

I think it's fine to wait until there is a decision on how to handle the maintenance status. That is tracked in rust-lang/crates.io#2437 and rust-lang/crates.io#2438.

@ehuss
Copy link
Contributor

ehuss commented Dec 2, 2020

I'm going to close this now that #8727 is merged. The maintenance badge is left in the docs under the anticipation that it may still be used in the future, though it seems unlikely and that may also get removed later. Thanks for the PR, and sorry about the uncertainty and moving slowly on this.

@ehuss ehuss closed this Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants