Skip to content

Fix BuilderStart race, parallelize container build tests.#2002

Open
jglogan wants to merge 1 commit into
apple:mainfrom
jglogan:parallel-builds
Open

Fix BuilderStart race, parallelize container build tests.#2002
jglogan wants to merge 1 commit into
apple:mainfrom
jglogan:parallel-builds

Conversation

@jglogan

@jglogan jglogan commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fix concurrency issue, improve integration test times.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

- Closes apple#2001.
- Handle "container exists" error gracefully instead of
  failing, when trying to start the buildkit container.
- Move build tests to parallel suites, while the builder
  lifecycle tests remain serial. Parallel builds don't
  use the fixture lock that deletes and restarts the
  builder and runs a build block in isolation.
@jglogan
jglogan requested a review from katiewasnothere July 23, 2026 16:29
@github-actions github-actions Bot added the cli label Jul 23, 2026
Comment thread Sources/ContainerTestSupport/BuildFixture.swift
@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 23.37%
Integration 66.21%
Combined 75.15%

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Racing container build commands can fail on buildkit container cold start.

2 participants