Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: client: enable a batch of integration tests for wcow (pt.1) #5554

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

profnandaa
Copy link
Collaborator

@profnandaa profnandaa commented Nov 27, 2024

A number of tests have been skipped on Windows.

Enable the following tests in client/, with minor modifications to run/unskip on Windows:

  • testStdinClosed
  • testHostnameLookup
  • testHostnameSpecifying
  • testFileOpCopyAlwaysReplaceExistingDestPaths
  • testFileOpInputSwap
  • testLocalSourceDiffer
  • testLocalSourceWithDiffer
  • testBuildHTTPSource
  • testBuildHTTPSourceEtagScope
  • testNoTarOCIIndexMediaType
  • testOCIIndexMediatype
  • testFrontendMetadataReturn
  • testFrontendUseSolveResults
  • testExporterTargetExists
  • testLazyImagePush
  • testRegistryEmptyCacheExport
  • testExportLocalNoPlatformSplit
  • testExportLocalNoPlatformSplitOverwrite
  • testSchema1Image
  • testSourceMapFromRef

count: +20

Addressing #4485

@profnandaa profnandaa force-pushed the tests-4485-client-wcow branch 7 times, most recently from c14b23b to 95e9807 Compare December 5, 2024 06:52
@profnandaa profnandaa changed the title tests: client: enable a batch of integration tests for wcow tests: client: enable a batch of integration tests for wcow (pt.1) Dec 5, 2024
@profnandaa profnandaa requested a review from Copilot December 5, 2024 07:05
@profnandaa profnandaa marked this pull request as ready for review December 5, 2024 07:05

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.

profnandaa added a commit to profnandaa/buildkit that referenced this pull request Dec 5, 2024
Follow up on the moby#5554 PR series. Enabling a number
of previously skipped tests for Windows platform.

- [x] `testInvalidExporter`

Count: 1

Signed-off-by: Anthony Nandaa <[email protected]>
@profnandaa
Copy link
Collaborator Author

Looks like the CI failure is unrelated / flaky?

profnandaa added a commit to profnandaa/buildkit that referenced this pull request Dec 6, 2024
Follow up on the moby#5554 PR series. Enabling a number
of previously skipped tests for Windows platform.

- [x] `testInvalidExporter`
- [x] `testParallelLocalBuilds`
- [x] `testCallInfo`
- [x] `testFrontendVerifyPlatforms`

Count: 4

Signed-off-by: Anthony Nandaa <[email protected]>
profnandaa added a commit to profnandaa/buildkit that referenced this pull request Dec 6, 2024
Follow up on the moby#5554 PR series. Enabling a number
of previously skipped tests for Windows platform.

- [x] `testInvalidExporter`
- [x] `testParallelLocalBuilds`
- [x] `testCallInfo`
- [x] `testFrontendVerifyPlatforms`
- [x] `testClientCustomGRPCOpts`
- [x] `testRunValidExitCodes`

Count: 5

> NOTE: this is a top-to-bottom runthrough of all the tests
> in `client/client_test.go` that were straight-forward.
> The rest will require code changes, especially most needing
> `llb.AddMount` support on Windows. These will be addressed
> in separate follow-up PRs.

Signed-off-by: Anthony Nandaa <[email protected]>
profnandaa added a commit to profnandaa/buildkit that referenced this pull request Dec 6, 2024
Follow up on the moby#5554 PR series. Enabling a number
of previously skipped tests for Windows platform.

- [x] `testInvalidExporter`
- [x] `testParallelLocalBuilds`
- [x] `testCallInfo`
- [x] `testFrontendVerifyPlatforms`
- [x] `testClientCustomGRPCOpts`
- [x] `testRunValidExitCodes`

Count: 5

> NOTE: this is a top-to-bottom runthrough of all the tests
> in `client/client_test.go` that were straight-forward.
> The rest will require code changes, especially most needing
> `llb.AddMount` support on Windows. These will be addressed
> in separate follow-up PRs.

Signed-off-by: Anthony Nandaa <[email protected]>
@@ -629,12 +644,13 @@ func testHostnameSpecifying(t *testing.T, sb integration.Sandbox) {

// moby/buildkit#614
func testStdinClosed(t *testing.T, sb integration.Sandbox) {
integration.SkipOnPlatform(t, "windows")
c, err := New(sb.Context(), sb.Address())
Copy link

@billywr billywr Dec 6, 2024

Choose a reason for hiding this comment

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

notice extra space after function's curl brace, check the rest of the functions

Copy link
Contributor

@iankingori iankingori left a comment

Choose a reason for hiding this comment

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

LGTM

A number of tests have been skipped on Windows.

Enable the following tests in `client/`, with
minor modifications to run/unskip on Windows:

- [x] `testStdinClosed`
- [x] `testHostnameLookup`
- [x] `testHostnameSpecifying`
- [x] `testFileOpCopyAlwaysReplaceExistingDestPaths`
- [x] `testFileOpInputSwap`
- [x] `testLocalSourceDiffer`
- [x] `testLocalSourceWithDiffer`
- [x] `testBuildHTTPSource`
- [x] `testBuildHTTPSourceEtagScope`
- [x] `testNoTarOCIIndexMediaType`
- [x] `testOCIIndexMediatype`
- [x] `testFrontendMetadataReturn`
- [x] `testFrontendUseSolveResults`
- [x] `testExporterTargetExists`
- [x] `testLazyImagePush`
- [x] `testRegistryEmptyCacheExport`
- [x] `testExportLocalNoPlatformSplit`
- [x] `testExportLocalNoPlatformSplitOverwrite`
- [x] `testSchema1Image`
- [x] `testSourceMapFromRef`

count: +20

Addressing moby#4485

Signed-off-by: Anthony Nandaa <[email protected]>
@profnandaa profnandaa force-pushed the tests-4485-client-wcow branch from 95e9807 to aab2e30 Compare December 9, 2024 06:53
@tonistiigi tonistiigi merged commit f118814 into moby:master Dec 16, 2024
97 checks passed
@profnandaa profnandaa deleted the tests-4485-client-wcow branch December 16, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants