-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pipeline: use pointer receivers and separate instanciation from startup * pipeline: rework instanciation, add initial subpipeline segment * flowfilter: add ability to subscribe to dropped flows * subpipeline: add conditional pipelines * rename blackhole to drop * rename noop to pass * give filter/drop the ability to report drops for subpipeline * simplify drop handling in elephant segment * give segments from filter group their own base type * change subpipeline segment into a conditional branch segment * add deprecation notice for skip segment * fix deadlock on drops within either branch * fix tests * remove skip and re-simplify rewire methods * greatly simplify branch segment by having empty pipelines replace themselves with a single pass segment * fix accidental close of nil channels in filter segments * setup github action for testing * make testing on github action more silent * fail a test on purpose * Revert "fail a test on purpose" This reverts commit 82e9628. * remove logging setup from all tests * fix panic on exit when two or more filter segments were part of the if branch * further simplify drop outputs of filter segments * make the branch segment test a bit less dummy * add some basic testing for branch segment * add more tests using a generator segment to detect deadlocks in branch segment
- Loading branch information
Showing
44 changed files
with
586 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: go test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- run: go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.