Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

feat(deployer): StateChangeLayer, DeploymentLogLayer, new log item structure#1171

Merged
chesedo merged 10 commits intoshuttle-hq:feat/shuttle-logger-servicefrom
jonaro00:feat/shuttle-logger-service
Sep 6, 2023
Merged

feat(deployer): StateChangeLayer, DeploymentLogLayer, new log item structure#1171
chesedo merged 10 commits intoshuttle-hq:feat/shuttle-logger-servicefrom
jonaro00:feat/shuttle-logger-service

Conversation

@jonaro00
Copy link
Copy Markdown
Member

@jonaro00 jonaro00 commented Aug 23, 2023

Description of change

  • Renamed deploy_layer, added new generic layer for deployment logs from all backends
  • Deployer sends logs to Logger
  • Update tests

How has this been tested? (if applicable)

@jonaro00 jonaro00 changed the title [logger] shuttle logger service [logger] update deploy_layer Aug 28, 2023
Copy link
Copy Markdown
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few early comments

Comment thread common/src/log.rs
Comment thread common/src/log.rs Outdated
Comment thread common/src/log.rs Outdated
Comment thread common/src/log.rs Outdated
Comment thread common/src/log.rs Outdated
Comment thread deployer/src/deployment/queue.rs Outdated
Comment thread deployer/src/deployment/state_change_layer.rs
Comment thread deployer/src/deployment/state_change_layer.rs Outdated
Comment thread deployer/src/persistence/deployment.rs
Comment thread deployer/src/persistence/mod.rs
Comment thread common/src/log.rs Outdated
Copy link
Copy Markdown
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, seems about done 🥳

Comment thread deployer/src/deployment/queue.rs Outdated
Comment thread deployer/src/deployment/state_change_layer.rs
Comment thread deployer/src/deployment/state_change_layer.rs
Comment thread deployer/src/deployment/state_change_layer.rs
Comment thread deployer/src/persistence/log.rs
Comment thread proto/src/lib.rs Outdated
@jonaro00 jonaro00 changed the title [logger] update deploy_layer feat(deployer): StateChangeLayer, DeploymentLogLayer, new log item structure Sep 1, 2023
@jonaro00 jonaro00 marked this pull request as ready for review September 1, 2023 20:49
Comment thread cargo-shuttle/src/lib.rs
Copy link
Copy Markdown
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, we just have to match the crash correctly and can then merge

Comment thread cargo-shuttle/src/lib.rs Outdated
Comment thread common/src/log.rs
Copy link
Copy Markdown
Collaborator

@oddgrd oddgrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just a few small comments.

Comment thread common/src/log.rs Outdated
Comment thread deployer/src/deployment/queue.rs
Comment thread deployer/src/main.rs
Copy link
Copy Markdown
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread common/src/deployment.rs
Comment on lines +31 to +39
pub const DEPLOYER_END_MSG_STARTUP_ERR: &str = "Service startup encountered an error";
pub const DEPLOYER_END_MSG_CRASHED: &str = "Service encountered an error and crashed";
pub const DEPLOYER_END_MSG_STOPPED: &str = "Service was stopped by the user";
pub const DEPLOYER_END_MSG_COMPLETED: &str = "Service finished running all on its own";

pub const DEPLOYER_END_MESSAGES_BAD: &[&str] =
&[DEPLOYER_END_MSG_STARTUP_ERR, DEPLOYER_END_MSG_CRASHED];
pub const DEPLOYER_END_MESSAGES_GOOD: &[&str] =
&[DEPLOYER_END_MSG_STOPPED, DEPLOYER_END_MSG_COMPLETED];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nice!! 🥳

@chesedo chesedo merged commit 7ab8d11 into shuttle-hq:feat/shuttle-logger-service Sep 6, 2023
@jonaro00 jonaro00 deleted the feat/shuttle-logger-service branch September 6, 2023 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants