Enable the josh-sync cron job#107
Conversation
|
Error: The feature Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip. |
There was a problem hiding this comment.
Can you just add a comment to the top of the file saying what it is doing.
|
I'm running into some issues while testing the rustc push and I'm investigating, but rustc pull should be fine. |
|
I think I should do an update here. TL;DR: We're able to set up the josh sync, but should hold off on it to re-think our strategy based on the recent discussions on the MCP. Okay so I finally found out what was blocking us from doing rustc push, and I fixed it in rust-lang/josh-sync#38 which just got merged. So now we should be able to sync both ways, but before that we have to do a force-push to this repo since the josh filter we're going to use is different from #104. We should be aware that once we determine the josh filter we can no longer change that unless we do a force-push again, so I'm going to propose the overall solution and want some discussions here. First off, we're facing these problems:
To resolve the Problem 1, I'm going to propose the josh configuration below: org = "rust-lang"
repo = "project-stable-mir"
filter = ":/compiler/rustc_public/src:prefix=rustc_public/src"
subtree-filter = ":/rustc_public/src:prefix=rustc_public/src"I.e., we could mirror only one single Of course we could do something like this: filter = ":/compiler/rustc_public:exclude[:[::build.rs,::tests/,::Cargo.toml]]:prefix=rustc_public"
subtree-filter = ":/rustc_public:exclude[:[::build.rs,::tests/,::Cargo.toml]]:prefix=rustc_public"But that seems to be so much more fragile... It would be broken if we later try to add something to To resolve the Problem 2, the solution is:
This works well on my machine with rustc pull and push. Nevertheless, we might have to re-think our sync strategy here, based on the recent discussions on the MCP, even though we've been ready to set up the josh sync here. I think it's possible to end up not needing a josh sync any more... I'm trying to come up with a doc that outlines the problems we're facing and some possible solutions. |
No description provided.