opentelemetry-collector-releases icon indicating copy to clipboard operation
opentelemetry-collector-releases copied to clipboard

Windows MSI

Open HaroonSaid opened this issue 2 years ago • 20 comments

Is there a windows msi installer release for the collector?

HaroonSaid avatar Mar 12 '22 06:03 HaroonSaid

We used to, but not anymore since we moved to releasing with goreleaser on the open-telemetry/opentelemetry-collector-releases repostiory. We don't seem to have a volunteer to work on that.

jpkrohling avatar Mar 14 '22 13:03 jpkrohling

@jpkrohling do we want to add an MSI back? Should we open an issue for it?

TylerHelmuth avatar Mar 14 '22 14:03 TylerHelmuth

I believe there might be an issue with this already, just not sure where. But yes, we want this back. The problem from what I remember is that it requires a cert to sign the binary and we don't have it.

jpkrohling avatar Mar 14 '22 15:03 jpkrohling

Should we transfer this to the releases repository?

mx-psi avatar Jun 22 '22 10:06 mx-psi

Done

jpkrohling avatar Jul 04 '22 17:07 jpkrohling

@jpkrohling I may be willing to research and work on this. What is the build system used to create the releases? GitHub Actions seems to have a ton of steps defined.

dodegaard avatar Nov 08 '23 03:11 dodegaard

We use goreleaser for automating our build. Look at .goreleaser.yaml at the root of this repository, and goreleaser.io for more information about the tool itself.

Our .goreleaser.yaml is auto-generated, but I'd recommend playing directly with that file at first, and then bringing the changes back to the Go files that generate it (cmd/goreleaser/internal/configure.go)

jpkrohling avatar Nov 23 '23 09:11 jpkrohling

Hey, just one quick note/good news: looks like goreleaser pro (version this repo uses) supports creating MSIs:

https://goreleaser.com/customization/msi/

smithclay avatar Feb 20 '24 17:02 smithclay

Creating it is the easy part, maintaining is something more: it requires people who'd be willing to take care of bug reports. Ideally, that would be a maintainer, but if someone active enough volunteers to take care of this build, I think we can give it a try.

jpkrohling avatar Feb 22 '24 08:02 jpkrohling

Would be great to have someone with Windows expertise listed on here https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/platform-support.md#tier-2--secondary-support

mx-psi avatar Feb 29 '24 09:02 mx-psi

@mx-psi I volunteer myself for tier 2 support for Windows/amd64

pjanotti avatar Mar 01 '24 19:03 pjanotti

Awesome! I am in favor of proceeding with this then :) cc @open-telemetry/collector-contrib-approvers

mx-psi avatar Mar 04 '24 08:03 mx-psi

Let's start by updating https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions#criteria-for-supported-distributions

TylerHelmuth avatar Mar 11 '24 15:03 TylerHelmuth

Let's start by updating https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions#criteria-for-supported-distributions

What exactly should be updated there @TylerHelmuth? Do you mean to add the requirement to build Windows MSI package to point 7.?

Btw. to be honest I'm surprised that the requirement for brew packages is there - I don't think we publish brew packages for Otelcol core or contrib at all? Here's a related issue I found:

  • https://github.com/open-telemetry/opentelemetry-collector/issues/7891.

andrzej-stencel avatar Mar 18 '24 17:03 andrzej-stencel

@astencel-sumo ya lets update 7 to say Windows MSIs are allowed.

I forget the origin of that brew comment, but I believe it was calling out brew specifically as something that a distribution can support if it wants to. I know there has been work to get a brew formula and there was some roadblocks but it is still desired.

TylerHelmuth avatar Mar 18 '24 17:03 TylerHelmuth

lets update 7 to say Windows MSIs are allowed.

You're saying "allowed" but point 7 uses the word "must":

Must include the following assets (...) [unless] clearly stated which assets are skipped and why

I'll add Windows MSI to that list for now, we can separately consider if we should rephrase this point to make it less demanding. We currently don't provide brew or MSI for any distro.

EDIT: Oh I just re-read and found that phrase "Additional assets may be included", hm I'm not sure how this changes the meaning of this whole point 7 :thinking:

andrzej-stencel avatar Mar 18 '24 18:03 andrzej-stencel

Ya maybe this doesn't need updated because of that line, but I think if we're gonna support Windows, providing an MSI as an expectation (unless otherwise specified) makes sense.

TylerHelmuth avatar Mar 18 '24 18:03 TylerHelmuth

  • https://github.com/open-telemetry/opentelemetry-collector-releases/pull/501

andrzej-stencel avatar Mar 18 '24 18:03 andrzej-stencel