-
Notifications
You must be signed in to change notification settings - Fork 10
Move off rust-lang-ci #188
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
Comments
A missing thing is that rustup also refers to the docker images built by rust-lang/rust's CI. |
That's the same thing as |
Just to check, even if we did use self-hosted runners I think those are also fine in a single org now (GitHub upstream made changes for that), right? |
Yes. If the runners are placed in a runner group, it's possible to restrict which workflows can access them. We could then restrict them to |
It looks like I need to create a new GitHub Environment to configure the secret. Should I call this environment
Added these two branch protection rules to rust-lang/rust: both have the following settings (which are the same of I checked this box in the first comment of this issue 👍 |
Couldn't it be a repo secret, as opposed to environment secret? But an env. secret is also fine, bors sounds like a reasonable name. |
I thought we wanted to configure these secrets only for the A repository secret can be read from any branch, right? |
Right. Makes sense, environment it is, then :) I suppose that the lack of environment/per-branch secrets was one of the reasons why rust-lang-ci was needed in the first place, originally. |
Secrets
|
I didn't realize that the keys I deleted where created from terraform in the
I discussed this with JD. Learnings
Questions
PlanHere's how we want to move forward:
Wdyt? |
Regarding this, what rules should I set? rust-lang-ci/rust doesn't have any branch protection rules. Also, to create the branches, should I just |
If memory serves me right, @Mark-Simulacrum Do you recall which branch protections we should configure for auto/try/try-perf/perf-tmp branches? |
I don't, no, but I'd expect to be able to copy from rust-lang/rust? That has these branch protections right now (not pulling up all the details but @marcoieni has access to poke I imagine): ![]() My sense is that we'll need force-push allowed for bors' account(s) at minimum. |
Well, we are migrating from rust-lang-ci to rust-lang/rust, so I assumed that we'll copy in the opposite direction 😅 But if rust-lang-ci doesn't have any branch protections, then probably we can just copy whatever try/auto has and use that for the try-perf branches. |
I'm testing if I bors can push AND force push to try and auto branches in r-l/r.
Then:
the commit was pushed Then:
This failed:
I edited the branch settings manually, as agreed with Jakub. Now As requested by Jakub, I created the auto branch with the following commands:
after this, I closed my browser session with bors. now I'm repeating the same thing for rust-timer. added the rule to allow the force push on both these branches. I need to check if it can push AND force push to try-perf and perf-tmp branches in r-l/r. I was able to push with the following:
The force pushed worked 👍
Now I will create the
it worked, and I closed the rust-timer browser session. |
…arcoieni Use Docker cache from the current repository This is needed to make the cache work after moving CI from the `rust-lang-ci` org to `rust-lang`. Shouldn't be merged until we actually move bors. Context: rust-lang/infra-team#188 r? `@marcoieni`
Rollup merge of rust-lang#141280 - Kobzol:docker-rust-lang-cache, r=marcoieni Use Docker cache from the current repository This is needed to make the cache work after moving CI from the `rust-lang-ci` org to `rust-lang`. Shouldn't be merged until we actually move bors. Context: rust-lang/infra-team#188 r? `@marcoieni`
Add bors environment to CI This will be used to access secrets once we move off rust-lang-ci. The PR configures the environment: - Only for `rust-lang/rust`, so that it doesn't affect `rust-lang-ci/rust` before we switch (we can remove this condition later, but the environment likely won't work for forks anyway, so we might as well just keep it to make fork CI work) - Only for the `try`/`auto` branches, so that PR CI still works. Context: rust-lang/infra-team#188 r? `@marcoieni`
Rollup merge of rust-lang#141323 - Kobzol:bors-environment, r=marcoieni Add bors environment to CI This will be used to access secrets once we move off rust-lang-ci. The PR configures the environment: - Only for `rust-lang/rust`, so that it doesn't affect `rust-lang-ci/rust` before we switch (we can remove this condition later, but the environment likely won't work for forks anyway, so we might as well just keep it to make fork CI work) - Only for the `try`/`auto` branches, so that PR CI still works. Context: rust-lang/infra-team#188 r? `@marcoieni`
Uh oh!
There was an error while loading. Please reload this page.
We would like to get rid of the rust-lang-ci organization, which should no longer be needed:
The following (probably non-exhaustive) list below tracks what needs to be done to get rid of
rust-lang-ci
:auto
andtry
branches onrust-lang/rust
.bors
GitHub account has access to theauto
andtry
branches onrust-lang/rust
.homu
can actually force-push these branches. (Move off rust-lang-ci #188 (comment))try-perf
andperf-tmp
branches/branch protections inrust-lang/rust
.rust-timer
merge bot andtry-perf
/perf-tmp
branch protections team#1828rust-timer
GitHub account can force-push these branches. (Move off rust-lang-ci #188 (comment))rust-lang
organizationtry
andauto
branches and if it can access environment secrets.dist-x86_64-linux
CI job to GitHub temporarily rust#141388rust-lang-ci
fork (configured here) and redeploy homu - probably the scariest part.rust-lang
instead ofrust-lang-ci
for all commits rustc-perf#2023rust-lang/rust
instead ofrust-lang-ci/rust
for unrolled rollup build commit URLs cargo-bisect-rustc#381rust-lang-ci/rust
dist-x86_64-linux
CI job to GitHub temporarily rust#141388 AND change the try build to run on codebuild as well https://github.com/rust-lang/rust/blob/1d679446b01e65f9bc9ae609d0ae1e4a9c0ccaa3/src/ci/github-actions/jobs.yml#L131This idea was discussed on Zulip.
The text was updated successfully, but these errors were encountered: