Skip to content

Conversation

@vm-001
Copy link
Collaborator

@vm-001 vm-001 commented Nov 21, 2025

Note

Adds Docker image caching (save/load) to integration test jobs to reduce image pull time.

  • CI (GitHub Actions)
    • Integration tests (tests-integration-main, tests-integration-o11):
      • Add Docker image caching via actions/cache to store images under /tmp/.docker keyed by test/docker-compose.yml.
      • Load cached images when available; otherwise pull images and save combined archive (images.tar).
      • No changes to unit tests or test execution steps beyond caching.

Written by Cursor Bugbot for commit 524ec8a. Configure here.

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
integration 73.57% <ø> (ø)
integration-o11 43.02% <ø> (ø)
unit 12.94% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@webhookx-x
Copy link
Contributor

cursor review

@cursor
Copy link

cursor bot commented Nov 24, 2025

Skipping Bugbot: Bugbot is disabled for this repository

@webhookx-x
Copy link
Contributor

cursor review

@cursor
Copy link

cursor bot commented Nov 24, 2025

Skipping Bugbot: Bugbot is disabled for this repository

@webhookx-x
Copy link
Contributor

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

fi
- name: Pull Docker images
run: |
docker compose -f test/docker-compose.yml pull
Copy link

Choose a reason for hiding this comment

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

Bug: Docker images pulled despite cache hit

The docker compose pull command runs unconditionally, even when cached images are successfully loaded. This defeats the caching mechanism's purpose by always pulling images from the registry regardless of cache hits, negating any performance benefits from the cache.

Additional Locations (1)

Fix in Cursor Fix in Web

done < /tmp/.docker/images_list.txt
# Combine all image tars into one compressed archive
if ls /tmp/.docker/*.tar 1> /dev/null 2>&1; then
cd /tmp/.docker && tar -czf images.tar.gz *.tar && rm -f *.tar images_list.txt && mv images.tar.gz images.tar
Copy link

Choose a reason for hiding this comment

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

Bug: Cached images cannot be loaded correctly

The save step creates individual tar files per image, then combines them into a compressed archive using tar -czf. However, docker load expects the format produced by docker save, not a tar archive containing multiple tar files. This nested structure won't load correctly, causing the cache restoration to fail.

Additional Locations (1)

Fix in Cursor Fix in Web

@webhookx-x
Copy link
Contributor

cursor review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants