GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — ci: test-unit job matrix for win/macos/ubuntu by crazy-max · Pull Request #2206 · docker/buildx Conversation
Member
follow-up #2205 (comment)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
crazy-max
force-pushed
the
test-os
branch
4 times, most recently
from
61852c8 to
173a44d
Compare
crazy-max
force-pushed
the
test-os
branch
3 times, most recently
from
5137a6c to
947498a
Compare
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was an error while loading. Please reload this page.
|
This one is interesting when running tests on macOS runner when temp dir is the default one: https://github.com/docker/buildx/actions/runs/7652363539/job/20851977017?pr=2206#step:6:863 Note the diff with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f3c264e to
b04b304
Compare
Signed-off-by: CrazyMax <[email protected]>
| // getLongPathName converts Windows short pathnames to full pathnames. | ||
| // For example C:\Users\ADMIN~1 --> C:\Users\Administrator. | ||
| func getLongPathName(path string) (string, error) { | ||
| // See https://groups.google.com/forum/#!topic/golang-dev/1tufzkruoTg | ||
| p, err := windows.UTF16FromString(path) | ||
| if err != nil { | ||
| return "", err | ||
| } | ||
| b := p // GetLongPathName says we can reuse buffer | ||
| n, err := windows.GetLongPathName(&p[0], &b[0], uint32(len(b))) | ||
| if err != nil { | ||
| return "", err | ||
| } | ||
| if n > uint32(len(b)) { | ||
| b = make([]uint16, n) | ||
| _, err = windows.GetLongPathName(&p[0], &b[0], uint32(len(b))) | ||
| if err != nil { | ||
| return "", err | ||
| } | ||
| } | ||
| return windows.UTF16ToString(b), nil | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Logic is the same as moby one https://github.com/moby/moby/blob/e8346c53d93d2cddf3d09910e166cdd8874070b3/integration-cli/utils_windows_test.go#L5-L27
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| expected := "C:\\Users\\foobar" | ||
| if isGitBash() { | ||
| expected = "C:/Users/foobar" | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
As we are using Git bash on ci to run tests, the behavior is not the same.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
|
Second commit is a bug on Windows. Let me know if you want this in a dedicated PR. Should be backported as well. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,26 @@ | |||
| package build | |||
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we should put this in this package or util one. Maybe on buildkit as it might be useful for Windows support (cc @TBBle @gabriel-samfira)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| include: | ||
| - pkg: ./... | ||
| skip-integration-tests: 1 |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@jedevc I removed this one as it's already handled in test-unit job through ubuntu-latest otherwise we have dup testing. Let me know if that sounds good.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| directory: ./bin/testreports | ||
| flags: integration |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Added some flags for codecov so we have a clear distinction between unit and integration tests
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Needs follow-up for client-side integration tests on windows/macos |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.