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

Run unit tests on CI for MacOS #5264

Merged
merged 2 commits into from
Mar 25, 2021
Merged

Run unit tests on CI for MacOS #5264

merged 2 commits into from
Mar 25, 2021

Conversation

mxpv
Copy link
Member

@mxpv mxpv commented Mar 25, 2021

Though we don't officially support Macs, we should at least run unit tests
to make sure things are not broken on this platform.

Signed-off-by: Maksym Pavlenko pavlenko.maksym@gmail.com

Though we don't officially support Apple platform, we should
at least run unit tests to make sure things are not broken.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
@k8s-ci-robot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
@mxpv mxpv marked this pull request as ready for review March 25, 2021 06:11
@@ -19,6 +19,7 @@ package server
import (
"context"
"path/filepath"
goruntime "runtime"
Copy link
Member

Choose a reason for hiding this comment

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

Elsewhere in the codebase this is aliased as "gruntime".

Copy link
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

LGTM other than a naming suggestion

@@ -1,4 +1,4 @@
// +build !windows
// +build !windows,!darwin
Copy link
Member

Choose a reason for hiding this comment

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

Do you know what didn't work on Darwin for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

--- FAIL: TestBreakouts (9.18s)
    --- FAIL: TestBreakouts/HardlinkSymlinkBeforeCreateTarget (8.78s)
        tar_test.go:934: Failed to apply tar: link /var/folders/nx/lmjd5hsx3r3gwyr3tgw14q140000gn/T/test-writer-to-tar-027924874/localpasswd /var/folders/nx/lmjd5hsx3r3gwyr3tgw14q140000gn/T/test-writer-to-tar-027924874/localpasswd-dup: operation not permitted
    --- FAIL: TestBreakouts/HardlinkSymlinkRelative (0.01s)
        tar_test.go:934: Failed to apply tar: link /var/folders/nx/lmjd5hsx3r3gwyr3tgw14q140000gn/T/test-writer-to-tar-068255073/passwdlink /var/folders/nx/lmjd5hsx3r3gwyr3tgw14q140000gn/T/test-writer-to-tar-068255073/localpasswd: no such file or directory
    --- FAIL: TestBreakouts/HardlinkSymlinkAbsolute (0.09s)
        tar_test.go:934: Failed to apply tar: link /var/folders/nx/lmjd5hsx3r3gwyr3tgw14q140000gn/T/test-writer-to-tar-814375756/passwdlink /var/folders/nx/lmjd5hsx3r3gwyr3tgw14q140000gn/T/test-writer-to-tar-814375756/localpasswd: operation not permitted
FAIL
FAIL	github.com/containerd/containerd/archive	13.724s

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't dive in a lot what exactly is wrong here, for now I just want to enable tests in general.
We can follow up with this to run more tests.

@dmcgowan dmcgowan merged commit 75a0c2b into containerd:master Mar 25, 2021
@mxpv mxpv deleted the tests branch March 25, 2021 16:47
@kzys kzys mentioned this pull request Mar 25, 2021
6 tasks
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.

None yet

7 participants