Skip to content

Commit

Permalink
Merge pull request #2177 from keboola/fix-ci-no-space-left-on-device
Browse files Browse the repository at this point in the history
fix: unit test CI no space left on device
  • Loading branch information
Matovidlo authored Dec 10, 2024
2 parents 95cb46b + 1cc117c commit 12a4d3e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
large-packages: true
docker-images: true
swap-storage: false

# To free up disk space to not run out during the run
# To free up disk space to not run out during the run
- name: Delete unused SDKs MacOS
if: matrix.name == 'mac-os'
run: |
Expand All @@ -75,6 +75,14 @@ jobs:
without-cache: ${{ inputs.without-cache }}
cache-s3-bucket: ${{ vars.CACHE_S3_BUCKET }}

- name: Check how much space is left after go setup
if: matrix.name == 'linux'
shell: bash
run: |
echo "AFTER GO SETUP:"
df -h /
df -a /
- name: Set TEST_KBC_PROJECTS_FILE entries
uses: ./.github/actions/export-kbc-projects
with:
Expand All @@ -87,6 +95,14 @@ jobs:
docker compose run -d --rm --publish 2379:2379 etcd
sudo echo "127.0.0.1 etcd" | sudo tee -a /etc/hosts
- name: Check how much space is left after etcd setup
if: matrix.name == 'linux'
shell: bash
run: |
echo "AFTER ETCD SETUP:"
df -h /
df -a /
- name: Run tests
shell: bash
run: |
Expand Down Expand Up @@ -128,3 +144,11 @@ jobs:
TEST_KBC_PROJECTS_FILE: '${{ github.workspace }}/${{ vars.TEST_KBC_PROJECTS_FILE }}'
UNIT_ETCD_ENABLED: ${{ matrix.name == 'linux' && 'true' || 'false' }}

- name: Check how much space is left after unit test
if: matrix.name == 'linux'
shell: bash
run: |
echo "AFTER UNIT TEST:"
df -h /
df -a /
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"net"

"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/connectivity"
Expand Down Expand Up @@ -86,12 +85,6 @@ func OpenNetworkFile(ctx context.Context, logger log.Logger, telemetry telemetry
grpc.WithContextDialer(dialer),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultServiceConfig(serviceConfig),
grpc.WithStatsHandler(
otelgrpc.NewClientHandler(
otelgrpc.WithMeterProvider(telemetry.MeterProvider()),
otelgrpc.WithTracerProvider(telemetry.TracerProvider()),
),
),
)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi
# Run tests, sequentially because the API is shared resource
echo "Running tests ..."
export KBC_VERSION_CHECK=false # do not check the latest version in the tests
cmd="gotestsum --no-color=false --format \"$TEST_LOG_FORMAT\" -- -timeout 1200s -p $TEST_PARALLELISM_PKG -parallel $TEST_PARALLELISM $TEST_ARGS "$TEST_PACKAGE" $@"
cmd="gotestsum --no-color=false --format \"$TEST_LOG_FORMAT\" -- -timeout 1800s -p $TEST_PARALLELISM_PKG -parallel $TEST_PARALLELISM $TEST_ARGS "$TEST_PACKAGE" $@"
echo $cmd
eval $cmd
echo "Ok. All tests passed."
Expand Down
3 changes: 1 addition & 2 deletions test/stream/bridge/keboola/keboola_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import (
"github.com/keboola/keboola-as-code/internal/pkg/service/stream/storage/model"
)

// To see details run: TEST_VERBOSE=true go test ./test/stream/bridge/... -v

// To see details run: TEST_VERBOSE=true go test ./test/stream/bridge/... -v.
func TestKeboolaBridgeWorkflow(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 12a4d3e

Please sign in to comment.