Skip to content

Run unit tests on CI for MacOS#5264

Merged
dmcgowan merged 2 commits intocontainerd:masterfrom
mxpv:tests
Mar 25, 2021
Merged

Run unit tests on CI for MacOS#5264
dmcgowan merged 2 commits intocontainerd:masterfrom
mxpv:tests

Conversation

@mxpv
Copy link
Copy Markdown
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 [email protected]

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 <[email protected]>
@k8s-ci-robot
Copy link
Copy Markdown

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 <[email protected]>
@mxpv mxpv marked this pull request as ready for review March 25, 2021 06:11
import (
"context"
"path/filepath"
goruntime "runtime"
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread archive/tar_test.go
@@ -1,4 +1,4 @@
// +build !windows
// +build !windows,!darwin
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

7 participants