Skip to content

Migrates container create, run-lifecycle, exec, remove, copy.#1844

Merged
jglogan merged 2 commits into
apple:mainfrom
jglogan:testmigrate-group4
Jul 1, 2026
Merged

Migrates container create, run-lifecycle, exec, remove, copy.#1844
jglogan merged 2 commits into
apple:mainfrom
jglogan:testmigrate-group4

Conversation

@jglogan

@jglogan jglogan commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Type of Change

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

Motivation and Context

More reliable integration tests.

Testing

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

@jglogan jglogan changed the title Testmigrate group4 Migrate CLI resource management tests to new test support. Jun 27, 2026
@github-actions

github-actions Bot commented Jun 27, 2026

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 30.78%
Integration 15.68%
Combined 46.03%

@jglogan jglogan changed the title Migrate CLI resource management tests to new test support. Migrate container management tests to new test support. Jun 27, 2026
@jglogan jglogan force-pushed the testmigrate-group4 branch from 0ff39ee to ba3ef5d Compare June 29, 2026 23:16
@jglogan jglogan changed the title Migrate container management tests to new test support. Migrates container create, run-lifecycle, exec, remove, copy. Jun 30, 2026
@jglogan jglogan force-pushed the testmigrate-group4 branch 5 times, most recently from 1611374 to a9f18e8 Compare June 30, 2026 16:39
@jglogan jglogan force-pushed the testmigrate-group4 branch from a9f18e8 to 7401107 Compare June 30, 2026 22:32

@katiewasnothere katiewasnothere left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A couple comments but LGTM and can be done in a later PR


@Test func testStartIdempotent() async throws {
try await ContainerFixture.with { f in
let image = try f.copyWarmupImage(ContainerFixture.warmupImages[0])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Images are being copied here unnecessarily

/// Serial prune tests — `container prune` affects all stopped containers regardless of name.
@Suite(.serialized)
struct TestCLIPruneCommandSerial {
@Test(.disabled("flaky — prune picks up containers from concurrent suites; tests being rewritten"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this ready to be re-enabled?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch...I'll see if we can reenable in the final PR.

@jglogan jglogan merged commit 9bd3c47 into apple:main Jul 1, 2026
3 checks passed
@jglogan jglogan deleted the testmigrate-group4 branch July 1, 2026 00:38
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.

2 participants