Skip to content

[WIP][DNM] Switch to GitHub Actions#5071

Closed
flip1995 wants to merge 19 commits intorust-lang:masterfrom
flip1995:gha
Closed

[WIP][DNM] Switch to GitHub Actions#5071
flip1995 wants to merge 19 commits intorust-lang:masterfrom
flip1995:gha

Conversation

@flip1995
Copy link
Copy Markdown
Member

@flip1995 flip1995 commented Jan 20, 2020

cc #4577

This is just an experiment. I don't think we have a consensus if we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. Also IIUC we only have to build Clippy once for every initegration test and then only check the repos. Nope, dependent jobs exist, but they won't keep the artifacts (not even the checkout).

TODO before merge:

  • Add DEPLOY_KEY secret to github repo
  • test deployment on test branch gh-test
  • talk with @rust-lang/infra for bors
  • Add GHA badge to Cargo.toml (blocked on Support GitHub Actions Badges crates.io#1838)
  • Add back travis + appveyor files for transition period (?)

changelog: none

@flip1995 flip1995 added S-needs-discussion Status: Needs further discussion before merging or work can be started S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Jan 20, 2020
@flip1995
Copy link
Copy Markdown
Member Author

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit 4a261de with merge 887982f...

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

changelog: none
@flip1995
Copy link
Copy Markdown
Member Author

^ This should run integration tests through GHA.

@flip1995
Copy link
Copy Markdown
Member Author

@bors try

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.

changelog: none
@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit 16b3e3c with merge 673554f...

@flip1995
Copy link
Copy Markdown
Member Author

@bors try

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.

changelog: none
@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit e6ecefb with merge 9619877...

Comment thread .github/workflows/integration.yml Outdated
@flip1995
Copy link
Copy Markdown
Member Author

@bors try

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.

changelog: none
@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit b767c40 with merge 870af4a...

@flip1995
Copy link
Copy Markdown
Member Author

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit 0db62fa with merge 542dc23...

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.

changelog: none
@flip1995
Copy link
Copy Markdown
Member Author

@bors try

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. ~~Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.~~ Nope, dependent jobs exist, but they won't keep the artifacts (not even the checkout).

changelog: none
@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit 0db62fa with merge 43fbee2...

@flip1995
Copy link
Copy Markdown
Member Author

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit 271a168 with merge 75da292...

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. ~~Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.~~ Nope, dependent jobs exist, but they won't keep the artifacts (not even the checkout).

changelog: none
@flip1995
Copy link
Copy Markdown
Member Author

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

⌛ Trying commit 470710b with merge a5457ab...

bors added a commit that referenced this pull request Jan 20, 2020
[WIP][DNM] Switch to GitHub Actions (maybe?)

cc #4577

This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor.

GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. ~~Also IIUC we only have to build Clippy once for every initegration test and then only check the repos.~~ Nope, dependent jobs exist, but they won't keep the artifacts (not even the checkout).

changelog: none
@flip1995
Copy link
Copy Markdown
Member Author

And now with cache

@bors r+

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 20, 2020

📋 Looks like this PR is still in progress, ignoring approval.

Hint: Remove [WIP] from this PR's title when it is ready for review.

@flip1995
Copy link
Copy Markdown
Member Author

Try run successful. And it only took 21m32s without a cache vs ~30m on travis with cache.

Let's try it with cache (maybe this time remark runs? 🙏):

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 23, 2020

⌛ Trying commit 1d17002 with merge 8dd70d3...

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 23, 2020

💔 Test failed - status-appveyor

@flip1995
Copy link
Copy Markdown
Member Author

12m21 with cache.

@flip1995
Copy link
Copy Markdown
Member Author

@Manishearth can you add a SSH key as a rust-lang/rust-clippy repo secret with the name DEPLOY_KEY? GHA Doc for adding secrets

@flip1995
Copy link
Copy Markdown
Member Author

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 23, 2020

⌛ Trying commit cd9b5d3 with merge 80e557d...

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 23, 2020

💔 Test failed - status-appveyor

@flip1995
Copy link
Copy Markdown
Member Author

Remark just won't run on try pushes 🤔

@flip1995
Copy link
Copy Markdown
Member Author

@bors try

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 23, 2020

⌛ Trying commit 8d1e233 with merge 5e2d140...

@bors
Copy link
Copy Markdown
Contributor

bors commented Jan 23, 2020

💔 Test failed - status-appveyor

@Manishearth
Copy link
Copy Markdown
Member

Done! I've added a deploy key, created in the deploy key section of settings.

@flip1995
Copy link
Copy Markdown
Member Author

Closing in favor of #5088

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-discussion Status: Needs further discussion before merging or work can be started 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.

6 participants