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

Enable tests for all platforms #220

Merged
merged 3 commits into from
Apr 22, 2023

Conversation

dmcgowan
Copy link
Member

Try to run tests on more platforms

Signed-off-by: Derek McGowan <[email protected]>
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.

I've been meaning to do FreeBSD tests for this too on Cirrus, though that can be a separate PR.

fs/copy_unix.go Outdated
@@ -71,6 +71,10 @@ func copyFileContent(dst, src *os.File) error {
func copyXAttrs(dst, src string, excludes map[string]struct{}, errorHandler XAttrErrorHandler) error {
xattrKeys, err := sysx.LListxattr(src)
if err != nil {
if os.IsPermission(err) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if os.IsPermission(err) {
if os.IsPermission(err) && runtime.GOOS == "darwin" {

?

@samuelkarp
Copy link
Member

It'd also be good to test more filesystems: #172

Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
@dmcgowan
Copy link
Member Author

@samuelkarp agreed, would be a little bit more involved. I'm not completely sure about the Windows test, at least what has changed, we should at least have the tests pass for our CI environment. Expanding to more environments would be good though given how the fs library is used.

@samuelkarp
Copy link
Member

I opened #221 to track adding coverage for more filesystems.

@estesp estesp merged commit 58654a2 into containerd:main Apr 22, 2023
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.

3 participants