Skip to content

Commit

Permalink
refacto: new workers package (#702)
Browse files Browse the repository at this point in the history
* new workers package
* update the docs
* remove processors package
  • Loading branch information
dmachard authored May 9, 2024
1 parent 1dde5cc commit 53cfdf3
Show file tree
Hide file tree
Showing 68 changed files with 779 additions and 1,032 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/testing-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,9 @@ jobs:
- 'pkglinker'
- 'pkgutils'
- 'dnsutils'
- 'collectors'
- 'loggers'
- 'workers'
- 'transformers'
- 'netutils'
- 'processors'
# exclude:
# - os-version: macos-latest
# go-version: '1.20'

runs-on: ${{ matrix.os-version }}

Expand Down Expand Up @@ -64,7 +59,7 @@ jobs:
sudo go version
- name: Test ${{ matrix.package }}
run: sudo go test -timeout 120s ./${{ matrix.package }}/ -race -cover -v
run: sudo go test -timeout 240s ./${{ matrix.package }}/ -race -cover -v

int:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -148,7 +143,7 @@ jobs:

- id: count_tests
run: |
data=$(sudo go test -timeout 360s -v ./collectors ./processors ./dnsutils ./netutils ./loggers ./transformers ./pkgconfig ./pkglinker ./pkgutils ././ 2>&1 | grep -c RUN)
data=$(sudo go test -timeout 360s -v ./workers ./dnsutils ./netutils ./transformers ./pkgconfig ./pkglinker ./pkgutils ././ 2>&1 | grep -c RUN)
echo "Count of Tests: $data"
echo "data=$data" >> $GITHUB_OUTPUT
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ tests: check-go
@go test ./netutils/ -race -cover -v
@go test -timeout 90s ./dnsutils/ -race -cover -v
@go test -timeout 90s ./transformers/ -race -cover -v
@go test -timeout 90s ./collectors/ -race -cover -v
@go test -timeout 90s ./loggers/ -race -cover -v
@go test -timeout 90s ./processors/ -race -cover -v
@go test -timeout 180s ./workers/ -race -cover -v

# Cleans the project using go clean.
clean: check-go
Expand Down
238 changes: 0 additions & 238 deletions collectors/dnstap.go

This file was deleted.

Loading

0 comments on commit 53cfdf3

Please sign in to comment.