-
-
Notifications
You must be signed in to change notification settings - Fork 748
Move cargo fmt checks and some other jobs to stable, ubuntu-latest #2450
Conversation
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.
Caught a couple things you missed on the mdbook-linkcheck section. I know it's commented out, but let's keep it in good shape for when we uncomment it (hopefully really soon!). 😄
I find the runtimes of this CI run fascinating.
- macos stable - 17m
- macos beta - 14m
- macos nightly - 51m
The speed of first two means we got assigned to the fast macOS runners (the newer, slower ones take 20+ minutes).
The slowness of the last one is the sporadic macOS CI bug that hasn't been eliminated from the shared workers. AFAICT the bug affects both the fast and slow runners.
- ubuntu stable - 22m
- ubuntu beta - 18m
- ubuntu nightly - 18m
In my initial testing, there were only the faster mac runners, so I was comparing the ~18m Linux runtime against ~14m macOS runs. Given the current situation, Linux is a better choice.
.github/workflows/ci.yml
Outdated
|
||
# Should be working, but postponing until after we go live with GitHub Actions | ||
# - name: install mdbook-linkcheck on stable macos | ||
# - name: install mdbook-linkcheck on stable, ubuntu-latest | ||
# run: | | ||
# curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.0/mdbook-linkcheck-v0.7.0-x86_64-apple-darwin.tar.gz | tar -xz && mv mdbook-linkcheck /Users/runner/.cargo/bin/mdbook-linkcheck |
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.
- The URL for the
mdbook
binary needs to be changed to the Linux one. - The location for the untarred binary needs to be changed
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.
Done 213d343
.github/workflows/ci.yml
Outdated
|
||
# Should be working, but postponing until after we go live with GitHub Actions | ||
# - name: install mdbook-linkcheck on stable macos | ||
# - name: install mdbook-linkcheck on stable, ubuntu-latest | ||
# run: | | ||
# curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.0/mdbook-linkcheck-v0.7.0-x86_64-apple-darwin.tar.gz | tar -xz && mv mdbook-linkcheck /Users/runner/.cargo/bin/mdbook-linkcheck | ||
# chmod a+x /Users/runner/.cargo/bin/mdbook-linkcheck |
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.
Needs to be updated to the new location of the binary
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.
Done 213d343
- name: run tests | ||
run: | | ||
cargo test --workspace --features=${{matrix.FEATURES}} | ||
- run: cargo test --workspace --features=${{matrix.FEATURES}} |
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.
I prefer the concise, descriptive names, but I am willing to approve the PR without them.
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.
As for me, a simple cargo foo
invocation looks descriptive enough by itself...
I've verified that linkcheck works in this commit 213d343 in this ci run: https://github.com/amethyst/amethyst/pull/2450/checks?check_run_id=1028251375#step:13:11 |
231e117
to
08106e7
Compare
08106e7
to
5b3410e
Compare
I'm currently working on fixing all the broken links and linkcheck warnings. |
bors r+ |
2450: Move cargo fmt checks and some other jobs to stable, ubuntu-latest r=CleanCut a=Veetaha ## Description See #2443 (comment) ## Modifications - Now a bunch of jobs that were previously selected to be run on `macos` switched to `ubuntu-latest`, cargo fmt check is one of them ## PR Checklist By placing an x in the boxes I certify that I have: - [ ] Added unit tests for new code added in this PR. - [x] Acknowledged that by making this pull request I release this code under an MIT/Apache 2.0 dual licensing scheme. - [ ] Added a changelog entry if this will impact users, or modified more than 5 lines of Rust that wasn't a doc comment. - [ ] Updated the content of the book if this PR would make the book outdated. If this modified or created any rs files: - [ ] Ran `cargo +stable fmt --all` - [ ] Ran `cargo clippy --workspace --features "empty"` (may require `cargo clean` before) - [ ] Ran `cargo build --features "empty"` - [ ] Ran `cargo test --workspace --features "empty"` Co-authored-by: Veetaha <veetaha2@gmail.com>
Build failed: |
Whoops, what could go wrong... |
Hmm, I can't reproduce the clippy warning locally... |
Looks like it started with the newly released rust version. |
This could be some bug fix in 1.46 |
I'm not a fan of preventing the CI from updating to the latest stable as soon as it's released. If thats what you mean by pin the stable version. |
Since
Regarding the beta/nightly runs |
The resistance we had to I think the short to mid term aim should be to make life easier for the project with minimal manual maintenance (without compromising too much on quality). Currently the activity and reaction pace can be at bit slow so I would like to minimize scenarios where something has to be fixed quickly to rid errors popping up everywhere. |
2468: Fix clippy, don't deny warnings r=Blisto91 a=Veetaha ## Description Fixed the new warnings introduced in 1.46.0 update. Also had to remove `--deny warnings` as discussed: #2450 (comment) ## PR Checklist By placing an x in the boxes I certify that I have: - [ ] Added unit tests for new code added in this PR. - [x] Acknowledged that by making this pull request I release this code under an MIT/Apache 2.0 dual licensing scheme. - [ ] Added a changelog entry if this will impact users, or modified more than 5 lines of Rust that wasn't a doc comment. - [ ] Updated the content of the book if this PR would make the book outdated. If this modified or created any rs files: - [ ] Ran `cargo +stable fmt --all` - [ ] Ran `cargo clippy --workspace --features "empty"` (may require `cargo clean` before) - [ ] Ran `cargo build --features "empty"` - [ ] Ran `cargo test --workspace --features "empty"` Co-authored-by: Veetaha <veetaha2@gmail.com>
bors r+ |
Description
See #2443 (comment)
Modifications
macos
switched toubuntu-latest
, cargo fmt check is one of themPR Checklist
By placing an x in the boxes I certify that I have:
If this modified or created any rs files:
cargo +stable fmt --all
cargo clippy --workspace --features "empty"
(may requirecargo clean
before)cargo build --features "empty"
cargo test --workspace --features "empty"