-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Merged by Bors] - CI - Check that examples are listed in README and Cargo #1650
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
Conversation
@alice-i-cecile @mockersf @MinerSebas This is a screenshot of the action currently in use on this pull request: https://github.com/bevyengine/bevy/pull/1650/checks?check_run_id=2209782326 I am mostly happy with the results but I'm currently trying to improve the clarity and directness of the output so that users immediately know what corrections need to take place. In this case the action has picked up 3 issues, which on closer inspection is really 2 distinct problems:
Now, 1 and 3 is the same issue: There is a typo in the README (brackets should not be there). Do you all have any insight into how I can improve the outputs given? Edit: Is there any legitimate reason for the link |
Think I really messed up my git rebasing, will try to fix |
I'll nuke this one and create a fresh pull request once I'm confident the action does not pick up false-positives |
Just fixed the git history by squashing the commits, rebasing on main, and force pushing. |
Sorry for the delay everyone, this is almost complete. Will aim to have the pull request finished by the end of the day today. |
I had the action working properly, then #1714 came along and I realized I needed to support examples that does not lie within the examples folder, which has been some of the reason for this delay |
I think this is ready now and should be ready to go as #2263 gets merged. |
bors try so it should fail now right? |
It works, it fails! https://github.com/bevyengine/bevy/runs/2697857713 Could you add it to bors? https://github.com/bevyengine/bevy/blob/main/.github/bors.toml |
Shouldn't this also currently Fail on the Tests category, as it isn't stored in the examples Folder? (See the ## Tests
Example | File | Description
--- | --- | ---
`how_to_test_systems` | [`../tests/how_to_test_systems.rs`](../tests/how_to_test_systems.rs) | How to test systems with commands, queries or resources But the CI config only sets this: |
Hmm. Yes you are right. I'll fix this in the morning. What is the desired approach here? Should we force test examples inside the examples folder? Or are test examples another thing that should be ignored? |
I've also added the action to bors |
tryBuild failed: |
Should anyone have a suggestion for a better / clearer name, I'm all ears |
I didn't check how your action works, but if it fails on that it may means it does things backwards: The goal of this PR is to check that examples are in the README.md, not that the examples listed in this file are present in the examples folder. |
Currently it does both.
The link-checker CI didn't exist at the time I started this work, so I reckoned checking for invalid links would be required to properly solve the problem. I'll remove that check from the action as it is redundant now. This action will then only check that files within |
🔒 Permission denied Existing reviewers: click here to make Weibye a reviewer |
I think this should now be complete and work properly this time.
This action should now run without picking up any issues and be ready to merge. |
bors try |
tryBuild succeeded: |
bors r+ |
Great work! I feel so safe now :) |
Closes #1581 # Internal File/Link Consistency checker Action This pull request adds an action to the CI that parses the [`./examples`](https://github.com/bevyengine/bevy/tree/main/examples) folder for files and cross references that with the links listed in [`README.md`](https://github.com/bevyengine/bevy/blob/main/examples/README.md) and [`Cargo.toml`](https://github.com/bevyengine/bevy/blob/main/Cargo.toml) to ensure the documentation actually reflects the examples currently in the repo. The primary reason for why we want this, is to prevent people from adding new examples but forgetting to also list them in the docs, or accidentally entering broken links (typos in docs). For details on how the action is working: [Check out the README here](https://github.com/Weibye/action-internal-link-consistency/blob/main/README.md) Co-authored-by: Andreas Weibye <[email protected]>
Pull request successfully merged into main. Build succeeded: |
Yay! Thanks! We missed you in the initial checks for users, but we're doing additional checks and found this PR from that. |
) Closes bevyengine#1581 # Internal File/Link Consistency checker Action This pull request adds an action to the CI that parses the [`./examples`](https://github.com/bevyengine/bevy/tree/main/examples) folder for files and cross references that with the links listed in [`README.md`](https://github.com/bevyengine/bevy/blob/main/examples/README.md) and [`Cargo.toml`](https://github.com/bevyengine/bevy/blob/main/Cargo.toml) to ensure the documentation actually reflects the examples currently in the repo. The primary reason for why we want this, is to prevent people from adding new examples but forgetting to also list them in the docs, or accidentally entering broken links (typos in docs). For details on how the action is working: [Check out the README here](https://github.com/Weibye/action-internal-link-consistency/blob/main/README.md) Co-authored-by: Andreas Weibye <[email protected]>
Closes #1581
Internal File/Link Consistency checker Action
This pull request adds an action to the CI that parses the
./examples
folder for files and cross references that with the links listed inREADME.md
andCargo.toml
to ensure the documentation actually reflects the examples currently in the repo.The primary reason for why we want this, is to prevent people from adding new examples but forgetting to also list them in the docs, or accidentally entering broken links (typos in docs).
For details on how the action is working: Check out the README here