Skip to content

Conversation

@mariomac
Copy link

@mariomac mariomac commented Mar 8, 2022

If a stage is not fully connected, it returns more descriptive messages, indicating which stage is wrongly connected. E.g.:

pipeline stage "ingest1": pipeline stage from type "ingest" should send data to at least another stage
pipeline stage "decode1": pipeline stage from type "decode" should receive data from at least another stage
pipeline stage "decode1": pipeline stage from type "decode" should send data to at least another stage
pipeline stage "write1": pipeline stage from type "write" should receive data from at least another stage

return nil, fmt.Errorf("stage %q of type %q can't send data",
connection.Follows, srcEntry.stageType)
}
log.Debugf("connecting stages: %s --> %s", connection.Follows, connection.Name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that you can move this to be info

@codecov-commenter
Copy link

Codecov Report

Merging #134 (92bd015) into main (4db06d3) will decrease coverage by 0.15%.
The diff coverage is 69.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
- Coverage   57.14%   56.98%   -0.16%     
==========================================
  Files          49       49              
  Lines        2842     2878      +36     
==========================================
+ Hits         1624     1640      +16     
- Misses       1103     1123      +20     
  Partials      115      115              
Flag Coverage Δ
unittests 56.98% <69.87%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/pipeline/pipeline_builder.go 59.05% <69.87%> (+4.77%) ⬆️
pkg/pipeline/utils/exit.go 52.17% <0.00%> (-47.83%) ⬇️
pkg/pipeline/write/write_loki.go 67.04% <0.00%> (-0.19%) ⬇️
pkg/pipeline/write/write.go 100.00% <0.00%> (ø)
pkg/pipeline/write/write_stdout.go 100.00% <0.00%> (ø)
pkg/confgen/flowlogs2metrics_config.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4db06d3...92bd015. Read the comment docs.

@mariomac mariomac merged commit ba7cddd into netobserv:main Mar 8, 2022
@mariomac mariomac deleted the errors branch March 8, 2022 14:48
Comment on lines +27 to +28
- { follows: ingest1, name: decode1 }
- { follows: decode1, name: write1 }
Copy link
Collaborator

Choose a reason for hiding this comment

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

COOL! I didn't know that curly braces are valid in YAML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants