Skip to content

Commit 47811da

Browse files
authored
Revert "[opampsupervisor] Add MSI installer to release artifacts (#1261)" (#1332)
* Revert "[opampsupervisor] Add MSI installer to release artifacts (#1261)" This reverts commit 8036680 * add changelog
1 parent 72ad708 commit 47811da

File tree

18 files changed

+26
-198
lines changed

18 files changed

+26
-198
lines changed

.chloggen/revert-msi-change.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: bug_fix
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: opampsupervisor
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: revert "Add MSI package release artifacts for the OpAMP supervisor (#1261)"
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [1332]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: []
26+

.github/workflows/base-binary-release.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ jobs:
8585
- name: Copy Dockerfile to Collector dependency directory
8686
run: cp cmd/${{ inputs.binary }}/Dockerfile ${{ inputs.dependency-target-folder }}/cmd/${{ inputs.binary }}/Dockerfile
8787

88-
- name: Copy MSI files to Core Repo directory
89-
run: |
90-
cp cmd/${{ inputs.binary }}/opentelemetry.ico ${{ inputs.dependency-target-folder }}/cmd/${{ inputs.binary }}
91-
cp cmd/${{ inputs.binary }}/config.windows.example.yaml ${{ inputs.dependency-target-folder }}/cmd/${{ inputs.binary }}
92-
9388
- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
9489
with:
9590
cosign-release: "v2.6.1"

.github/workflows/base-ci-binary.yaml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ on:
2222
type: boolean
2323
default: false
2424
description: "Set to true if linux packages should be uploaded as an artifact"
25-
windows-msi:
26-
required: false
27-
type: boolean
28-
default: false
29-
description: 'Set to true if windows msi should be uploaded as an artifact'
3025

3126
permissions:
3227
contents: read
@@ -54,12 +49,6 @@ jobs:
5449
- name: Copy Dockerfile to Core Repo directory
5550
run: cp cmd/${{ inputs.binary }}/Dockerfile ${{ inputs.dependency-target-folder }}/cmd/${{ inputs.binary }}/Dockerfile
5651

57-
- name: Copy MSI files to Core Repo directory
58-
if: inputs.windows-msi == true
59-
run: |
60-
cp cmd/${{ inputs.binary }}/opentelemetry.ico ${{ inputs.dependency-target-folder }}/cmd/${{ inputs.binary }}
61-
cp cmd/${{ inputs.binary }}/config.windows.example.yaml ${{ inputs.dependency-target-folder }}/cmd/${{ inputs.binary }}
62-
6352
- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
6453
with:
6554
cosign-release: "v2.6.1"
@@ -77,12 +66,6 @@ jobs:
7766
with:
7867
go-version: "~1.25.0"
7968

80-
- name: Setup wixl # Required to build MSI packages for Windows
81-
if: runner.os != 'Windows'
82-
run: |
83-
sudo apt-get update
84-
sudo apt-get install -y wixl
85-
8669
- name: Check GoReleaser
8770
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
8871
with:
@@ -113,12 +96,3 @@ jobs:
11396
dist/*amd64*.deb
11497
dist/*amd64*.rpm
11598
if-no-files-found: error
116-
117-
- name: Upload Windows MSI
118-
if: ${{ inputs.windows-msi == true }}
119-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
120-
with:
121-
name: windows-msi
122-
path: |
123-
dist/msi/**/*.msi
124-
if-no-files-found: error

.github/workflows/ci-opampsupervisor.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ jobs:
3838
collector-dependency: 'open-telemetry/opentelemetry-collector-contrib'
3939
dependency-target-folder: '.contrib'
4040
linux-packages: true
41-
windows-msi: true
4241
secrets: inherit
4342
permissions: write-all

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ dist/
77
.core
88
.contrib
99
.tools
10-
.DS_Store
11-
.zed

cmd/builder/.goreleaser.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
21
version: 2
32
project_name: opentelemetry-collector-releases
43
env:

cmd/goreleaser/internal/distro_opamp.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ var (
3333
withBinaryMonorepo(".contrib/cmd/opampsupervisor").
3434
withDefaultBinaryRelease(opampReleaseHeader).
3535
withDefaultNfpms().
36-
withDefaultMSIConfig().
3736
// This is required because of some non-obvious path/workdir handling in
3837
// Github Actions specific to the binaries CI.
3938
withConfigFunc(func(d *distribution) {
@@ -49,9 +48,6 @@ var (
4948
d.Nfpms[0].Scripts.PreInstall = path.Join("cmd", d.Name, d.Nfpms[0].Scripts.PreInstall)
5049
d.Nfpms[0].Scripts.PostInstall = path.Join("cmd", d.Name, d.Nfpms[0].Scripts.PostInstall)
5150
d.Nfpms[0].Scripts.PreRemove = path.Join("cmd", d.Name, d.Nfpms[0].Scripts.PreRemove)
52-
53-
d.MsiConfig[0].Files = append(d.MsiConfig[0].Files, "config.windows.example.yaml")
54-
d.MsiConfig[0].WXS = path.Join("cmd", d.Name, d.MsiConfig[0].WXS)
5551
}).
5652
withNightlyConfig().
5753
build()

cmd/goreleaser/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func main() {
2525
}
2626
project := internal.BuildDistribution(*distFlag, *contribBuildOrRestFlag)
2727

28-
os.Stdout.WriteString("# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json\n")
2928
e := yaml.NewEncoder(os.Stdout)
3029
e.SetIndent(2)
3130
if err := e.Encode(&project); err != nil {

cmd/opampsupervisor/.goreleaser.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
21
version: 2
32
project_name: opentelemetry-collector-releases
43
env:
@@ -14,13 +13,6 @@ release:
1413
name: opentelemetry-collector-releases
1514
make_latest: "false"
1615
header: '### Release of OpAMP supervisor artifacts'
17-
msi:
18-
- id: opampsupervisor
19-
name: opampsupervisor_{{ .Version }}_{{ .Os }}_{{ .MsiArch }}
20-
wxs: cmd/opampsupervisor/windows-installer.wxs
21-
extra_files:
22-
- opentelemetry.ico
23-
- config.windows.example.yaml
2416
builds:
2517
- id: opampsupervisor-linux
2618
goos:

cmd/opampsupervisor/config.windows.example.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)