Some checks failed
Memory limit test (temporary branch) / limit-visible (push) Successful in 3s
Memory limit test (temporary branch) / plain-step-uses-2gb (push) Failing after 8s
Memory limit test (temporary branch) / kaniko-run-step-uses-2gb (push) Failing after 27s
Memory limit test (temporary branch) / kaniko-normal-build (push) Successful in 6s
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Memory limit test (temporary branch)
|
|
on:
|
|
push:
|
|
branches: [test/memory-limit]
|
|
jobs:
|
|
limit-visible:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: |
|
|
echo "SCOTTY_GIT_JOB_MEMORY_LIMIT=$SCOTTY_GIT_JOB_MEMORY_LIMIT"
|
|
echo "kernel memory limit for this job: $(cat /sys/fs/cgroup/memory.max 2>/dev/null || cat /sys/fs/cgroup/memory/memory.limit_in_bytes)"
|
|
plain-step-uses-2gb:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: node -e 'const a=[]; for (let i=0;i<40;i++){ a.push(Buffer.alloc(50*1024*1024, 1)); console.log((i+1)*50, "MB held"); }'
|
|
kaniko-run-step-uses-2gb:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./kaniko-build
|
|
with:
|
|
context: kaniko-build/test-memhog
|
|
dockerfile: kaniko-build/test-memhog/Dockerfile
|
|
push: "false"
|
|
kaniko-normal-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./kaniko-build
|
|
with:
|
|
context: kaniko-build/test
|
|
dockerfile: kaniko-build/test/Dockerfile
|
|
push: "false"
|