Skip to content

Commit cd06fad

Browse files
authored
remove bors and small CI improvements (#7947)
1 parent af74d21 commit cd06fad

File tree

6 files changed

+50
-65
lines changed

6 files changed

+50
-65
lines changed

.github/bors.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ on:
44
merge_group:
55
pull_request:
66
push:
7-
branches-ignore:
8-
- 'dependabot/**'
9-
- staging-squash-merge.tmp
7+
branches:
8+
- main
109

1110
env:
1211
CARGO_TERM_COLOR: always
@@ -147,7 +146,7 @@ jobs:
147146
markdownlint:
148147
runs-on: ubuntu-latest
149148
timeout-minutes: 30
150-
needs: check-missing-examples-in-docs
149+
needs: check-missing-features-in-docs
151150
if: always()
152151
steps:
153152
- uses: actions/checkout@v3
@@ -287,6 +286,7 @@ jobs:
287286
check-missing-features-in-docs:
288287
runs-on: ubuntu-latest
289288
timeout-minutes: 30
289+
needs: check-missing-examples-in-docs
290290
steps:
291291
- uses: actions/checkout@v3
292292
- name: check for missing features
@@ -317,30 +317,6 @@ jobs:
317317
name: missing-features
318318
path: missing-features/
319319

320-
check-unused-dependencies:
321-
runs-on: ubuntu-latest
322-
timeout-minutes: 30
323-
steps:
324-
- uses: actions/checkout@v3
325-
- uses: actions/cache@v3
326-
with:
327-
path: |
328-
~/.cargo/bin/
329-
~/.cargo/registry/index/
330-
~/.cargo/registry/cache/
331-
~/.cargo/git/db/
332-
target/
333-
key: ${{ runner.os }}-cargo-check-unused-dependencies-${{ hashFiles('**/Cargo.toml') }}
334-
- uses: dtolnay/rust-toolchain@master
335-
with:
336-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
337-
- name: Installs cargo-udeps
338-
run: cargo install --force cargo-udeps
339-
- name: Install alsa and udev
340-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
341-
- name: Run cargo udeps
342-
run: cargo udeps
343-
344320
msrv:
345321
runs-on: ubuntu-latest
346322
timeout-minutes: 30

.github/workflows/dependencies.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ on:
99
paths:
1010
- '**/Cargo.toml'
1111
- 'deny.toml'
12-
branches-ignore:
13-
- 'dependabot/**'
14-
- staging-squash-merge.tmp
15-
schedule:
16-
- cron: "0 0 * * 0"
12+
branches:
13+
- main
1714

1815
env:
1916
CARGO_TERM_COLOR: always

.github/workflows/validation-jobs.yml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ on:
55
pull_request:
66
push:
77
branches:
8-
- staging
9-
- trying
108
- main
119

1210
env:
1311
CARGO_TERM_COLOR: always
12+
NIGHTLY_TOOLCHAIN: nightly
1413

1514
jobs:
1615
build-and-install-on-iOS:
@@ -158,6 +157,7 @@ jobs:
158157
if: ${{ github.event_name == 'merge_group' }}
159158
timeout-minutes: 30
160159
strategy:
160+
max-parallel: 1
161161
matrix:
162162
crate: [bevy_ecs, bevy_reflect, bevy]
163163
runs-on: ubuntu-latest
@@ -171,3 +171,42 @@ jobs:
171171
env:
172172
CARGO_INCREMENTAL: 0
173173
RUSTFLAGS: "-C debuginfo=0 -D warnings"
174+
175+
build-without-default-features-status:
176+
if: |
177+
always() &&
178+
github.event_name == 'merge_group'
179+
needs: build-without-default-features
180+
runs-on: ubuntu-latest
181+
steps:
182+
- name: Successful
183+
if: ${{ !(contains(needs.*.result, 'failure')) }}
184+
run: exit 0
185+
- name: Failing
186+
if: ${{ contains(needs.*.result, 'failure') }}
187+
run: exit 1
188+
189+
check-unused-dependencies:
190+
if: ${{ github.event_name == 'merge_group' }}
191+
runs-on: ubuntu-latest
192+
timeout-minutes: 30
193+
steps:
194+
- uses: actions/checkout@v3
195+
- uses: actions/cache@v3
196+
with:
197+
path: |
198+
~/.cargo/bin/
199+
~/.cargo/registry/index/
200+
~/.cargo/registry/cache/
201+
~/.cargo/git/db/
202+
target/
203+
key: ${{ runner.os }}-cargo-check-unused-dependencies-${{ hashFiles('**/Cargo.toml') }}
204+
- uses: dtolnay/rust-toolchain@master
205+
with:
206+
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
207+
- name: Installs cargo-udeps
208+
run: cargo install --force cargo-udeps
209+
- name: Install alsa and udev
210+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
211+
- name: Run cargo udeps
212+
run: cargo udeps

CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Most changes don't require much "process". If your change is relatively straight
166166
2. Other community members review and comment in an ad-hoc fashion. Active subject matter experts may be pulled into a thread using `@mentions`. If your PR has been quiet for a while and is ready for review, feel free to leave a message to "bump" the thread, or bring it up on [Discord](https://discord.gg/bevy) in an appropriate engine development channel.
167167
3. Once they're content with the pull request (design, code quality, documentation, tests), individual reviewers leave "Approved" reviews.
168168
4. After consensus has been reached (typically two approvals from the community or one for extremely simple changes) and CI passes, the [S-Ready-For-Final-Review](https://github.com/bevyengine/bevy/issues?q=is%3Aopen+is%3Aissue+label%3AS-Ready-For-Final-Review) label is added.
169-
5. When they find time, someone with merge rights performs a final code review and merges the PR using [Bors](https://bors.tech/) by typing `bors r+`.
169+
5. When they find time, someone with merge rights performs a final code review and queue the PR for merging.
170170

171171
### Complex changes
172172

@@ -340,9 +340,8 @@ To locally lint your files using the same workflow as our CI:
340340
1. Install [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli).
341341
2. Run `markdownlint -f -c .github/linters/.markdown-lint.yml .` in the root directory of the Bevy project.
342342
5. Push your changes to your fork on Github and open a Pull Request.
343-
6. If your account is new on github, one of the Bevy org members [will need to manually trigger CI for your PR](https://github.blog/changelog/2021-04-22-github-actions-maintainers-must-approve-first-time-contributor-workflow-runs/) using the `bors try` command.
344-
7. Respond to any CI failures or review feedback. While CI failures must be fixed before we can merge your PR, you do not need to *agree* with all feedback from your reviews, merely acknowledge that it was given. If you cannot come to an agreement, leave the thread open and defer to @cart's final judgement.
345-
8. When your PR is ready to merge, @cart will review it and suggest final changes. If those changes are minimal he may even apply them directly to speed up merging.
343+
6. Respond to any CI failures or review feedback. While CI failures must be fixed before we can merge your PR, you do not need to *agree* with all feedback from your reviews, merely acknowledge that it was given. If you cannot come to an agreement, leave the thread open and defer to @cart's final judgement.
344+
7. When your PR is ready to merge, @cart will review it and suggest final changes. If those changes are minimal he may even apply them directly to speed up merging.
346345

347346
If you end up adding a new official Bevy crate to the `bevy` repo:
348347

docs/the_bevy_organization.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ Check out the [Bevy People](https://bevyengine.org/community/people/#the-bevy-or
6464
3. Have asked to join the Bevy Org. Reach out to @cart on [Discord](https://discord.gg/bevy) or email us at bevyengine@gmail.com if you are interested. Everyone is welcome to do this. We generally accept membership requests, so don't hesitate if you are interested!
6565

6666
All Bevy Org members are also Triage Team members. The Triage Team can label and close issues and PRs but do not have merge rights or any special authority within the community.
67-
Org members also have the ability to use `bors try`, causing our build system to evaluate the PR again and run additional (more computationally expensive) CI steps to verify that the PR is ready to merge.
6867

6968
## Role Rotation
7069

0 commit comments

Comments
 (0)