Compare commits
3 commits
d4f16e6f5e
...
8359d0d7ca
Author | SHA1 | Date | |
---|---|---|---|
8359d0d7ca | |||
93cf6f83df | |||
681d85aac1 |
3 changed files with 17 additions and 34 deletions
|
@ -17,21 +17,20 @@ impl Handler<ReceiveCIStatus> for RepoActor {
|
|||
type Result = ();
|
||||
|
||||
fn handle(&mut self, msg: ReceiveCIStatus, ctx: &mut Self::Context) -> Self::Result {
|
||||
let log = self.log.clone();
|
||||
logger(log.as_ref(), "start: ReceiveCIStatus");
|
||||
let addr = ctx.address();
|
||||
logger(self.log.as_ref(), "start: ReceiveCIStatus");
|
||||
let (next, status) = msg.peel();
|
||||
self.update_tui(RepoUpdate::ReceiveCIStatus {
|
||||
status: status.clone(),
|
||||
});
|
||||
debug!(?status, "");
|
||||
let graph_log = graph::log(&self.repo_details);
|
||||
self.update_tui_log(graph_log.clone());
|
||||
|
||||
let addr = ctx.address();
|
||||
let forge_alias = self.repo_details.forge.forge_alias().clone();
|
||||
let repo_alias = self.repo_details.repo_alias.clone();
|
||||
let message_token = self.message_token;
|
||||
let sleep_duration = self.sleep_duration;
|
||||
let graph_log = graph::log(&self.repo_details);
|
||||
self.update_tui_log(graph_log.clone());
|
||||
self.update_tui(RepoUpdate::ReceiveCIStatus {
|
||||
status: status.clone(),
|
||||
});
|
||||
|
||||
debug!(?status, "");
|
||||
match status {
|
||||
Status::Pass => {
|
||||
do_send(&addr, AdvanceMain::new(next), self.log.as_ref());
|
||||
|
@ -57,8 +56,9 @@ impl Handler<ReceiveCIStatus> for RepoActor {
|
|||
commit: next,
|
||||
log: graph_log,
|
||||
},
|
||||
log.as_ref(),
|
||||
self.log.as_ref(),
|
||||
);
|
||||
let log = self.log.clone();
|
||||
async move {
|
||||
debug!("sleeping before retrying...");
|
||||
logger(log.as_ref(), "before sleep");
|
||||
|
|
|
@ -79,7 +79,6 @@ impl Handler<ValidateRepo> for RepoActor {
|
|||
self.update_tui_log(git_log);
|
||||
if next_is_valid && next != main {
|
||||
info!("Checking CI");
|
||||
self.update_tui(RepoUpdate::CheckingCI);
|
||||
do_send(&ctx.address(), CheckCIStatus::new(next), self.log.as_ref());
|
||||
} else if next != dev {
|
||||
info!("Advance next");
|
||||
|
|
28
justfile
28
justfile
|
@ -47,28 +47,6 @@ grcov-coverage:
|
|||
find . -name '*.profraw' -exec rm "{}" \;
|
||||
echo "Now:\n\topen target/debug/coverage/index.html"
|
||||
|
||||
publish version:
|
||||
#!/usr/bin/bash -e
|
||||
echo "Publishing git-next v{{version}} to crates.io..."
|
||||
if [ -z $(git status --short) ]; then
|
||||
echo "Worktree is clean - proceeding"
|
||||
else
|
||||
echo "Worktree is Dirty - aborting" ; exit
|
||||
fi
|
||||
git checkout v{{version}}
|
||||
ORDER=$(cargo publish-workspace --target-version {{version}} --crate-prefix git-next --show-order 2>/dev/null | cut -d\ -f2-)
|
||||
echo "Publishing crates in order: ${ORDER}"
|
||||
# INFO: Why not use publish-workspace to publish? It doesn't support when crates-io registry is replaced
|
||||
for P in ${ORDER}
|
||||
do
|
||||
echo "Publishing ${P}..."
|
||||
cargo publish --registry crates-io -p $P
|
||||
echo "Done: ${P}"
|
||||
echo "======================================"
|
||||
done
|
||||
echo "All crates published"
|
||||
git checkout dev
|
||||
|
||||
docker-build-builder:
|
||||
docker build -t git.kemitix.net/kemitix/git-next-builder:2024.08.04 -f Dockerfile.builder .
|
||||
|
||||
|
@ -77,3 +55,9 @@ docker-build: docker-build-builder
|
|||
|
||||
docker-run: docker-build
|
||||
docker run -it -p "7777:8888" -v .:/app/ git.kemitix.net/kemitix/git-next:latest server start --ui
|
||||
|
||||
run *args:
|
||||
cargo run -- {{ args }}
|
||||
|
||||
run-ui:
|
||||
just run server start --ui
|
||||
|
|
Loading…
Reference in a new issue