Skip to content

Fix tests, a CI issue, a template bug, and clean stuff up #312

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
Jun 19, 2025

Conversation

lqd
Copy link
Member

@lqd lqd commented Jun 14, 2025

@nikomatsakis this PR fixes the failing tests I mentioned before, removes unneeded dependencies, removes unneeded crates, etc thanks to the simpler architecture and needs that we now have.

Maybe more importantly, this also fixes the CI issue seen in #311: check ensures that the tracking issue id is filled when the row is present, but the https://rust-lang.github.io/rust-project-goals/TEMPLATE.html says to leave it blank. So, now if there's a tracking issue it's validated, and if there's none it's fine -- unless the goal is an accepted goal: we require one for these to link from the goal page to github.

This also fixes another issue seen in #311, the goal template is using HTML comments in the markdown for its special computed values magic tokens. If people are copying from https://rust-lang.github.io/rust-project-goals/TEMPLATE.html then the rows will be empty. So I've encoded these magic values in the markdown, and added a note to make sure to use the raw values if someone is copying from the .md which should not happen imho so we're good. That should be enough.

I also added a validation of the milestone passed to cargo rpg updates to avoid cases where a path to ./src/$milestone is passed in lieu of e.g. 2025h1, which sometimes happens to me, but does nothing without errors.

And finally, while checking the goal validation procedure, I noticed the 2025h1 goals hadn't been marked as accepted, so I also did that.

Rendered

lqd added 10 commits June 14, 2025 08:08
The template asks people to leave this field blank, but CI validates
it's present and valid.
Some rows use html comments to mark special tokens to be replaced, but
they only show up in the markdown source, not on the website.

Some people are copying the template from the website, so the rows are
missing from the PRs.

We encode the values in the markdown, so they show up on the web, and add a note
to make sure to use the unencoded values if copying from source.
@lqd lqd changed the title Fix tests and clean stuff up Fix tests, a CI issue, a template bug, and clean stuff up Jun 14, 2025
@nikomatsakis nikomatsakis merged commit cd68acc into rust-lang:main Jun 19, 2025
2 checks passed
@lqd lqd deleted the humans-ftw branch June 19, 2025 17:37
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.

2 participants