Skip to content
Merged
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
20 changes: 20 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- android-runner
- org-runner
fail-fast: false
max-parallel: 1

steps:
- name: Checkout code
Expand All @@ -57,6 +58,18 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-

- name: Free up disk space
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo docker system prune -af --volumes
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docker system prune -af --volumes in the pre-test cleanup step will remove all Docker images and cached layers. Since tests run sequentially with max-parallel: 1, the first test in each job will need to pull all images fresh, but subsequent tests could potentially benefit from reusing layers if this prune is skipped on the first iteration. Consider moving this Docker cleanup to only run in the post-test step, which already cleans up after each test. The filesystem cleanup (dotnet, ghc, boost, agent tools) should be sufficient for the pre-test step.

Suggested change
sudo docker system prune -af --volumes

Copilot uses AI. Check for mistakes.
echo "Disk space after cleanup:"
df -h

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -73,6 +86,13 @@ jobs:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'

- name: Clean up Docker after test
if: always()
run: |
docker system prune -af --volumes
echo "Disk space after test cleanup:"
df -h

- name: Upload molecule logs on failure
if: failure()
uses: actions/upload-artifact@v5
Expand Down