Skip to content

Commit

Permalink
fix: Add more space for ubuntu image. Check size after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matovidlo committed Dec 9, 2024
1 parent 9fbec90 commit a2cc29a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 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 /
4 changes: 2 additions & 2 deletions test/stream/bridge/keboola/keboola_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 Expand Up @@ -599,7 +599,7 @@ func TestNetworkIssuesKeboolaBridgeWorkflow(t *testing.T) {
{"level":"info","message":"imported file","component":"storage.node.operator.file.import"}
`)
}, 60*time.Second, 100*time.Millisecond)
//ts.checkKeboolaTable(t, ctx, 1, 129)
// ts.checkKeboolaTable(t, ctx, 1, 129)
}

func (ts *testState) testSlicesUpload(t *testing.T, ctx context.Context, expectations sliceUpload) {
Expand Down

0 comments on commit a2cc29a

Please sign in to comment.