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

K8s runner various fixes #545

Closed

Conversation

joshrwolf
Copy link
Contributor

@joshrwolf joshrwolf commented Jul 12, 2023

adds some low hanging fruit bug fixes / qol improvements isolated to the k8s runner:

bug fixes:

  • fixes the cases where the build workspace contained symlinks/targets that weren't previous unpacked, causing them to be missed the pkg.Emit()

qol:

  • add a retryable workspace tar fetcher (inspired by kubectl cp)
  • logs logs logs! most of the errors pop up for k8s specific reasons, so surface these better

@joshrwolf joshrwolf requested a review from a team as a code owner July 12, 2023 15:46
@joshrwolf joshrwolf requested review from dlorenc and removed request for a team July 12, 2023 15:46
return fmt.Errorf("failed to create remote command executor: %v", err)
}

return exec.StreamWithContext(context.Background(), remotecommand.StreamOptions{
Copy link
Contributor

Choose a reason for hiding this comment

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

Please propagate context 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I missed this thanks! this also made me realize I missed passing the actual retry 🤯

will refactor things slightly to make sure context is passed while still implementing io.Reader

}

// TODO: The primary caller of this function is the KubernetesRunner, which
// uses the busybox variant of `tar` that doesn't support xattrs. So this
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we not make it use libarchive-tools instead?

@joshrwolf
Copy link
Contributor Author

I'm closing this in favor of some more bite sized chunks:

#549 , #550 , #551

@joshrwolf joshrwolf closed this Jul 17, 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.

4 participants