Skip to content

Commit

Permalink
Merge pull request #40 from fluentci-io/fix/handle-error-on-parsing-l…
Browse files Browse the repository at this point in the history
…ines

fix(tui): handle error on parsing stdout lines
  • Loading branch information
tsirysndr authored Aug 21, 2024
2 parents b6e304f + 65d7f23 commit 4828170
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 32 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ cargo run -p fluentci-engine -- serve
## 📦 Downloads

- `Mac`: arm64: [fluentci-engine_v0.4.10_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_aarch64-apple-darwin.tar.gz) intel: [fluentci-engine_v0.4.10_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci-engine_v0.4.10_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci-engine_v0.4.10_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_aarch64-unknown-linux-gnu.tar.gz)
- `Mac`: arm64: [fluentci-engine_v0.4.11_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.11/fluentci-engine_v0.4.11_aarch64-apple-darwin.tar.gz) intel: [fluentci-engine_v0.4.11_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.11/fluentci-engine_v0.4.11_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci-engine_v0.4.11_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.11/fluentci-engine_v0.4.11_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci-engine_v0.4.11_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.11/fluentci-engine_v0.4.11_aarch64-unknown-linux-gnu.tar.gz)

## 📚 Documentation

Expand Down
8 changes: 4 additions & 4 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ license = "MPL-2.0"
name = "fluentci-engine"
readme = "../../README.md"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.4.10"
version = "0.4.11"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.81"
clap = "3.2.20"
extism = "1.2.0"
fluentci-core = {path = "../core", version = "0.3.7"}
fluentci-ext = {path = "../ext", version = "0.2.6"}
fluentci-server = {path = "../server", version = "0.3.8"}
fluentci-core = {path = "../core", version = "0.3.8"}
fluentci-ext = {path = "../ext", version = "0.2.7"}
fluentci-server = {path = "../server", version = "0.3.9"}
fluentci-shared = {path = "../shared", version = "0.2.8"}
get-port = "4.0.0"
md5 = "0.7.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ keywords = ["nix", "environment", "ci", "wasm", "devops"]
license = "MPL-2.0"
name = "fluentci-common"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.2.8"
version = "0.2.9"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.81"
dirs = "5.0.1"
fluentci-core = {path = "../core", version = "0.3.7"}
fluentci-ext = {path = "../ext", version = "0.2.6"}
fluentci-core = {path = "../core", version = "0.3.8"}
fluentci-ext = {path = "../ext", version = "0.2.7"}
fluentci-secrets = {path = "../secrets", version = "0.1.0"}
fluentci-types = {path = "../types", version = "0.1.8"}
regex = "1.10.4"
Expand Down
4 changes: 2 additions & 2 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ keywords = ["nix", "environment", "ci", "wasm", "devops"]
license = "MPL-2.0"
name = "fluentci-core"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.3.7"
version = "0.3.8"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.81"
chrono = "0.4.35"
dirs = "5.0.1"
fluentci-ext = {path = "../ext", version = "0.2.6"}
fluentci-ext = {path = "../ext", version = "0.2.7"}
fluentci-logging = {path = "../logging", version = "0.1.0"}
fluentci-secrets = {path = "../secrets", version = "0.1.0"}
fluentci-types = {path = "../types", version = "0.1.8"}
Expand Down
2 changes: 1 addition & 1 deletion crates/ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["nix", "environment", "ci", "wasm", "devops"]
license = "MPL-2.0"
name = "fluentci-ext"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.2.6"
version = "0.2.7"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
7 changes: 5 additions & 2 deletions crates/ext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ pub fn exec(
thread::spawn(move || {
let reader = BufReader::new(stdout);
for line in reader.lines() {
stdout_tx_clone.send(line.unwrap()).unwrap();
match stdout_tx_clone.send(line.unwrap()) {
Ok(_) => {}
Err(_) => {}
}
}
});

Expand Down Expand Up @@ -218,7 +221,7 @@ impl<'a> Component for Log<'a> {
let mut lines: Vec<Line> = self
.lines
.iter()
.map(|l| vec![l.clone()].try_into().unwrap())
.map(|l| vec![l.clone()].try_into().unwrap_or_default())
.collect();
lines.push(
vec![format!(
Expand Down
8 changes: 4 additions & 4 deletions crates/graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["nix", "environment", "ci", "wasm", "devops"]
license = "MPL-2.0"
name = "fluentci-graphql"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.3.8"
version = "0.3.9"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -16,9 +16,9 @@ anyhow = "1.0.80"
async-graphql = "7.0.2"
async-graphql-actix-web = "7.0.2"
dirs = "5.0.1"
fluentci-common = {path = "../common", version = "0.2.8"}
fluentci-core = {path = "../core", version = "0.3.7"}
fluentci-ext = {path = "../ext", version = "0.2.6"}
fluentci-common = {path = "../common", version = "0.2.9"}
fluentci-core = {path = "../core", version = "0.3.8"}
fluentci-ext = {path = "../ext", version = "0.2.7"}
fluentci-secrets = {path = "../secrets", version = "0.1.0"}
fluentci-types = {path = "../types", version = "0.1.8"}
regex = "1.10.3"
Expand Down
6 changes: 3 additions & 3 deletions crates/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["nix", "environment", "ci", "wasm", "devops"]
license = "MPL-2.0"
name = "fluentci-server"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.3.8"
version = "0.3.9"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -17,8 +17,8 @@ actix-web = "4.5.1"
anyhow = "1.0.81"
async-graphql = "7.0.2"
async-graphql-actix-web = "7.0.2"
fluentci-core = {path = "../core", version = "0.3.7"}
fluentci-ext = {path = "../ext", version = "0.2.6"}
fluentci-core = {path = "../core", version = "0.3.8"}
fluentci-ext = {path = "../ext", version = "0.2.7"}
fluentci-graphql = {path = "../graphql", version = "0.3.8"}
mime_guess = "2.0.4"
owo-colors = "4.0.0"
Expand Down
8 changes: 4 additions & 4 deletions crates/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ keywords = ["nix", "environment", "ci", "wasm", "devops"]
license = "MPL-2.0"
name = "fluentci-shared"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.2.8"
version = "0.2.9"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.82"
extism = "1.2.0"
extism-pdk = "1.1.0"
fluentci-common = {path = "../common", version = "0.2.8"}
fluentci-core = {path = "../core", version = "0.3.7"}
fluentci-ext = {path = "../ext", version = "0.2.6"}
fluentci-common = {path = "../common", version = "0.2.9"}
fluentci-core = {path = "../core", version = "0.3.8"}
fluentci-ext = {path = "../ext", version = "0.2.7"}
fluentci-secrets = {path = "../secrets", version = "0.1.0"}
fluentci-types = {path = "../types", version = "0.1.8"}
serde = {version = "1.0.197", features = ["serde_derive", "derive"]}
Expand Down

0 comments on commit 4828170

Please sign in to comment.