Skip to content

Add docker integration tests for parallel resource builds - #39

Merged
llambeau merged 1 commit into
masterfrom
feat/parallel-builds
Jul 16, 2026
Merged

Add docker integration tests for parallel resource builds#39
llambeau merged 1 commit into
masterfrom
feat/parallel-builds

Conversation

@llambeau

Copy link
Copy Markdown
Contributor

Prove the scheduler's dependency barrier and the -j/--force flags hold against a real Docker daemon (microservices example, api/worker depend on base:image):

  • honours the dependency barrier under -j 4 on a CLEAN daemon -- base:image does not exist yet, so api/worker's real FROM microservices/base would fail if the scheduler let them start before base finished; a green build proves base was built first, then api and worker concurrently
  • accepts -j auto
  • -j 1 builds a dependent chain serially
  • --force rebuilds under -j

Kept in their own spec file (one top-level suite per file, and their own useExampleWithDocker gives a fresh/clean daemon for the barrier test).

Also raise the integration-features-docker hookTimeout to 120s: clean --force image removal in setup/teardown legitimately exceeds vitest's default 10s hook timeout.

Prove the scheduler's dependency barrier and the -j/--force flags hold against
a real Docker daemon (microservices example, api/worker depend on base:image):

- honours the dependency barrier under -j 4 on a CLEAN daemon -- base:image
  does not exist yet, so api/worker's real `FROM microservices/base` would fail
  if the scheduler let them start before base finished; a green build proves
  base was built first, then api and worker concurrently
- accepts -j auto
- -j 1 builds a dependent chain serially
- --force rebuilds under -j

Kept in their own spec file (one top-level suite per file, and their own
useExampleWithDocker gives a fresh/clean daemon for the barrier test).

Also raise the integration-features-docker hookTimeout to 120s: `clean --force`
image removal in setup/teardown legitimately exceeds vitest's default 10s hook
timeout.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@llambeau
llambeau merged commit 1fa7a8d into master Jul 16, 2026
4 checks passed
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.

1 participant