Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refacto: new workers package #702

Merged
merged 5 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading