Skip to content

Conversation

@alphanota
Copy link
Contributor

Draft-PR.
This branch was created to run a github action that tests the makefile changes in #9657

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Hi team,

I'm currently reviewing this pull request and will provide my feedback shortly. In the meantime, here's a summary of the changes for you and other reviewers to quickly get up to speed:

This pull request, "Fix kokoro v4 test", aims to address issues with the kokoro v4 test. The description mentions it's a draft PR related to Makefile changes in #9657. Based on the code changes, I can infer the following:

  • New GitHub Workflow: A new GitHub workflow, .github/workflows/compile-mac.yaml, has been added to cross-compile skaffold on MacOS. This workflow triggers on push and pull request events and includes steps to check out code, set up Docker, and build skaffold binaries for various platforms (linux-amd64, darwin-amd64, windows-amd64.exe, linux-arm64, darwin-arm64).
  • Makefile Modifications: The Makefile has been updated. Specifically, line 14 adds a GOVERSION variable set to 1.23.4. More significantly, lines 96-126 in the Makefile have been extensively revised to use a docker image (docker.elastic.co/beats-dev/golang-crossbuild:$(GOVERSION)-$(image_platform)-debian12) for cross compilation, rather than relying on the system's Go toolchain. This change likely improves the consistency and reliability of cross-compilation across different environments.

Summary Table:

File Changes
.github/workflows/compile-mac.yaml Added a new workflow for cross-compiling skaffold on MacOS.
Makefile Added GOVERSION variable (line 14) and significantly revised cross-compilation logic (lines 96-126) using a docker image.

I'll provide a more detailed review shortly. Thanks!


And now, a little haiku to brighten your day:

Code flows like a stream,
Tests run, a gentle cascade,
Bugs flee in the night.

@alphanota alphanota changed the title Fix kokoro v4 test fix: kokoro v4 test Jan 14, 2025
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This PR introduces a GitHub Actions workflow to cross-compile Skaffold on macOS and updates the Makefile to use a Docker image for cross-compilation. This addresses the Kokoro v4 test issue by providing a consistent build environment. The changes look good overall, but there are a few points to consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant