Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: newrelic/newrelic-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.94.0
Choose a base ref
...
head repository: newrelic/newrelic-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 806 additions and 316 deletions.
  1. +5 −5 .github/scripts/package.json
  2. +2 −2 .github/workflows/compile.yml
  3. +1 −1 .github/workflows/e2e-dp-eu.yml
  4. +1 −1 .github/workflows/e2e-dp-us.yml
  5. +1 −1 .github/workflows/e2e-eu.yml
  6. +1 −1 .github/workflows/e2e.yml
  7. +2 −2 .github/workflows/release-publish-windows.yml
  8. +1 −1 .github/workflows/release-windows-installer.yml
  9. +10 −10 .github/workflows/release.yml
  10. +1 −1 .github/workflows/snapshot.yml
  11. +3 −3 .github/workflows/test.yml
  12. +33 −3 .goreleaser.yml
  13. +90 −1 CHANGELOG.md
  14. +1 −1 build/package/Dockerfile
  15. +14 −12 go.mod
  16. +24 −25 go.sum
  17. +47 −1 internal/agent/command.go
  18. +7 −1 internal/agent/command_test.go
  19. +34 −0 internal/agent/version/version.go
  20. +105 −0 internal/agent/version/version_test.go
  21. +2 −2 internal/install/bundle_installer.go
  22. +5 −5 internal/install/bundle_installer_test.go
  23. +4 −4 internal/install/command.go
  24. +1 −1 internal/install/execution/go_task_recipe_executor_test.go
  25. +7 −5 internal/install/execution/install_status.go
  26. +4 −2 internal/install/execution/install_status_test.go
  27. +9 −6 internal/install/execution/installevents_reporter.go
  28. +3 −3 internal/install/execution/line_capture_buffer.go
  29. +65 −28 internal/install/execution/line_capture_buffer_test.go
  30. +1 −0 internal/install/execution/status_subscriber.go
  31. +2 −2 internal/install/execution/terminal_reporter.go
  32. +3 −3 internal/install/execution/terminal_reporter_test.go
  33. +22 −19 internal/install/recipe_installer.go
  34. +39 −39 internal/install/recipe_installer_test.go
  35. +9 −9 internal/install/recipes/bundler.go
  36. +21 −21 internal/install/recipes/bundler_test.go
  37. +1 −1 internal/install/recipes/recipe_repository.go
  38. +3 −3 internal/install/recipes/recipe_repository_test.go
  39. +1 −1 internal/install/types/errors.go
  40. +7 −7 internal/install/types/recipe.go
  41. +114 −1 internal/utils/terraform/dashboard.go
  42. +4 −0 internal/utils/utils.go
  43. +9 −0 internal/utils/utils_test.go
  44. +1 −1 internal/utils/validation/polling_nrql_validator.go
  45. +3 −3 newrelic-cli.json
  46. +27 −24 tools/go.mod
  47. +56 −54 tools/go.sum
10 changes: 5 additions & 5 deletions .github/scripts/package.json
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@actions/core": "1.9.1",
"@aws-sdk/client-sqs": "3.27.0",
"@aws-sdk/client-dynamodb": "3.27.0",
"@aws-sdk/util-dynamodb": "3.27.0",
"@aws-sdk/credential-providers": "3.451.0"
"@actions/core": "1.11.1",
"@aws-sdk/client-sqs": "3.670.0",
"@aws-sdk/client-dynamodb": "3.670.0",
"@aws-sdk/util-dynamodb": "3.670.0",
"@aws-sdk/credential-providers": "3.670.0"
},
"keywords": [],
"author": "",
4 changes: 2 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
go-version:
- 1.21.x
- 1.22.x
platform:
- ubuntu-latest
- macos-latest
@@ -25,7 +25,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Compile
run: make compile-only
2 changes: 1 addition & 1 deletion .github/workflows/e2e-dp-eu.yml
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
2 changes: 1 addition & 1 deletion .github/workflows/e2e-dp-us.yml
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
2 changes: 1 addition & 1 deletion .github/workflows/e2e-eu.yml
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
4 changes: 2 additions & 2 deletions .github/workflows/release-publish-windows.yml
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ jobs:
sudo apt-get install awscli -y
- name: Write AWS config 1
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@v1.3
with:
path: /home/runner/.aws/credentials
contents: |
@@ -68,7 +68,7 @@ jobs:
write-mode: overwrite

- name: Write AWS config 2
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@v1.3
with:
path: /home/runner/.aws/config
contents: |
2 changes: 1 addition & 1 deletion .github/workflows/release-windows-installer.yml
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ jobs:
uses: microsoft/setup-msbuild@v1.3

- name: Download Windows binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: windows-binary
path: .\dist\newrelic_windows_amd64_v1
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
@@ -85,13 +85,6 @@ jobs:
./scripts/win_metadata_files_remove.sh
# Note the uploaded binary is downloaded and used in the release-windows-installer job
- name: Upload Windows binary to GitHub
uses: actions/upload-artifact@v3
with:
name: windows-binary
path: dist/newrelic_windows_amd64_v1/newrelic.exe

- name: Sign newrelic.exe
shell: bash
env:
@@ -105,6 +98,13 @@ jobs:
-in dist/newrelic_windows_amd64_v1/newrelic-unsigned.exe -out dist/newrelic_windows_amd64_v1/newrelic.exe
rm -f cert.pfx dist/newrelic_windows_amd64_v1/newrelic-unsigned.exe
# Note the uploaded binary is downloaded and used in the release-windows-installer job
- name: Upload Windows binary to GitHub
uses: actions/upload-artifact@v4
with:
name: windows-binary
path: dist/newrelic_windows_amd64_v1/newrelic.exe

- name: Re-do Windows_x86_64.zip
run: |
VERSION=$(ls dist/*Windows_x86_64.zip | cut -d_ -f2)
@@ -117,7 +117,7 @@ jobs:
sudo apt-get install awscli -y
- name: Write AWS config 1
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@v1.3
with:
path: /home/runner/.aws/credentials
contents: |
@@ -127,7 +127,7 @@ jobs:
write-mode: overwrite

- name: Write AWS config 2
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@v1.3
with:
path: /home/runner/.aws/config
contents: |
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
@@ -54,7 +54,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin"
@@ -85,7 +85,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin"
36 changes: 33 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -67,14 +67,44 @@ signs:
dockers:
- dockerfile: build/package/Dockerfile
image_templates:
- "newrelic/cli:{{ .Tag }}"
- "newrelic/cli:v{{ .Major }}.{{ .Minor }}"
- "newrelic/cli:latest"
- "newrelic/cli:{{ .Tag }}-amd64"
- "newrelic/cli:v{{ .Major }}.{{ .Minor }}-amd64"
- "newrelic/cli:latest-amd64"
use: buildx
build_flag_templates:
- "--pull"
- "--label=repository=http://github.com/newrelic/newrelic-cli"
- "--label=homepage=https://developer.newrelic.com/"
- "--label=maintainer=Developer Toolkit <opensource@newrelic.com>"
- "--platform=linux/amd64"
goarch: amd64
- dockerfile: build/package/Dockerfile
image_templates:
- "newrelic/cli:{{ .Tag }}-arm64"
- "newrelic/cli:v{{ .Major }}.{{ .Minor }}-arm64"
- "newrelic/cli:latest-arm64"
use: buildx
build_flag_templates:
- "--pull"
- "--label=repository=http://github.com/newrelic/newrelic-cli"
- "--label=homepage=https://developer.newrelic.com/"
- "--label=maintainer=Developer Toolkit <opensource@newrelic.com>"
- "--platform=linux/arm64"
goarch: arm64

docker_manifests:
- name_template: "newrelic/cli:{{ .Tag }}"
image_templates:
- "newrelic/cli:{{ .Tag }}-amd64"
- "newrelic/cli:{{ .Tag }}-arm64"
- name_template: "newrelic/cli:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "newrelic/cli:v{{ .Major }}.{{ .Minor }}-amd64"
- "newrelic/cli:v{{ .Major }}.{{ .Minor }}-arm64"
- name_template: "newrelic/cli:latest"
image_templates:
- "newrelic/cli:latest-amd64"
- "newrelic/cli:latest-arm64"

# Uses git-chglog output from release flow
changelog:
91 changes: 90 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,74 @@
<a name="v0.97.9"></a>
## [v0.97.9] - 2025-03-05
### Bug Fixes
- **dependabot-alerts:** Updated module github.com/golang-jwt/jwt/v4 to v4.5.1 ([#1690](https://github.com/newrelic/newrelic-cli/issues/1690))

<a name="v0.97.8"></a>
## [v0.97.8] - 2025-03-03
### Bug Fixes
- Fixed newrelic.exe signature missing issue ([#1686](https://github.com/newrelic/newrelic-cli/issues/1686))

<a name="v0.97.7"></a>
## [v0.97.7] - 2025-02-12
<a name="v0.97.6"></a>
## [v0.97.6] - 2025-02-11
<a name="v0.97.5"></a>
## [v0.97.5] - 2025-02-04
### Bug Fixes
- Bumped windows download artifact version to v4 ([#1684](https://github.com/newrelic/newrelic-cli/issues/1684))

<a name="v0.97.4"></a>
## [v0.97.4] - 2025-02-04
### Bug Fixes
- Revert PR [#1677](https://github.com/newrelic/newrelic-cli/issues/1677) causing regression test failure ([#1680](https://github.com/newrelic/newrelic-cli/issues/1680))
- **dependabot:** Updates to dependencies to fix dependabot alerts ([#1677](https://github.com/newrelic/newrelic-cli/issues/1677))
- **release:** Bumped windows upload-artifact to v4 ([#1679](https://github.com/newrelic/newrelic-cli/issues/1679))

<a name="v0.97.3"></a>
## [v0.97.3] - 2025-01-07
### Bug Fixes
- **agent-control:** rename Super Agent to Agent Control in the CLI ([#1674](https://github.com/newrelic/newrelic-cli/issues/1674))

<a name="v0.97.2"></a>
## [v0.97.2] - 2024-12-04
### Bug Fixes
- **dashboard:** Updated the Dashboard JSON to HCL Converter Utility with Latest Fields in the Resource ([#1669](https://github.com/newrelic/newrelic-cli/issues/1669))

<a name="v0.97.1"></a>
## [v0.97.1] - 2024-11-12
<a name="v0.97.0"></a>
## [v0.97.0] - 2024-11-11
### Features
- Add optimized message field to recipe and status events ([#1666](https://github.com/newrelic/newrelic-cli/issues/1666))

<a name="v0.96.3"></a>
## [v0.96.3] - 2024-10-31
<a name="v0.96.2"></a>
## [v0.96.2] - 2024-10-24
<a name="v0.96.1"></a>
## [v0.96.1] - 2024-10-21
<a name="v0.96.0"></a>
## [v0.96.0] - 2024-10-07
### Features
- Arm64 docker image ([#1652](https://github.com/newrelic/newrelic-cli/issues/1652))

<a name="v0.95.0"></a>
## [v0.95.0] - 2024-10-04
### Features
- Agent version command ([#1648](https://github.com/newrelic/newrelic-cli/issues/1648))

<a name="v0.94.3"></a>
## [v0.94.3] - 2024-10-02
### Bug Fixes
- Eu license keys ([#1650](https://github.com/newrelic/newrelic-cli/issues/1650))

<a name="v0.94.2"></a>
## [v0.94.2] - 2024-09-27
### Bug Fixes
- License key fatal error ([#1649](https://github.com/newrelic/newrelic-cli/issues/1649))

<a name="v0.94.1"></a>
## [v0.94.1] - 2024-09-24
<a name="v0.94.0"></a>
## [v0.94.0] - 2024-09-20
### Features
@@ -2383,7 +2454,25 @@
- **profile:** Add listing of profiles to command
- **profile:** Enable reading of profiles and use Region/APIKey from default profile

[Unreleased]: https://github.com/newrelic/newrelic-cli/compare/v0.94.0...HEAD
[Unreleased]: https://github.com/newrelic/newrelic-cli/compare/v0.97.9...HEAD
[v0.97.9]: https://github.com/newrelic/newrelic-cli/compare/v0.97.8...v0.97.9
[v0.97.8]: https://github.com/newrelic/newrelic-cli/compare/v0.97.7...v0.97.8
[v0.97.7]: https://github.com/newrelic/newrelic-cli/compare/v0.97.6...v0.97.7
[v0.97.6]: https://github.com/newrelic/newrelic-cli/compare/v0.97.5...v0.97.6
[v0.97.5]: https://github.com/newrelic/newrelic-cli/compare/v0.97.4...v0.97.5
[v0.97.4]: https://github.com/newrelic/newrelic-cli/compare/v0.97.3...v0.97.4
[v0.97.3]: https://github.com/newrelic/newrelic-cli/compare/v0.97.2...v0.97.3
[v0.97.2]: https://github.com/newrelic/newrelic-cli/compare/v0.97.1...v0.97.2
[v0.97.1]: https://github.com/newrelic/newrelic-cli/compare/v0.97.0...v0.97.1
[v0.97.0]: https://github.com/newrelic/newrelic-cli/compare/v0.96.3...v0.97.0
[v0.96.3]: https://github.com/newrelic/newrelic-cli/compare/v0.96.2...v0.96.3
[v0.96.2]: https://github.com/newrelic/newrelic-cli/compare/v0.96.1...v0.96.2
[v0.96.1]: https://github.com/newrelic/newrelic-cli/compare/v0.96.0...v0.96.1
[v0.96.0]: https://github.com/newrelic/newrelic-cli/compare/v0.95.0...v0.96.0
[v0.95.0]: https://github.com/newrelic/newrelic-cli/compare/v0.94.3...v0.95.0
[v0.94.3]: https://github.com/newrelic/newrelic-cli/compare/v0.94.2...v0.94.3
[v0.94.2]: https://github.com/newrelic/newrelic-cli/compare/v0.94.1...v0.94.2
[v0.94.1]: https://github.com/newrelic/newrelic-cli/compare/v0.94.0...v0.94.1
[v0.94.0]: https://github.com/newrelic/newrelic-cli/compare/v0.93.8...v0.94.0
[v0.93.8]: https://github.com/newrelic/newrelic-cli/compare/v0.93.7...v0.93.8
[v0.93.7]: https://github.com/newrelic/newrelic-cli/compare/v0.93.6...v0.93.7
2 changes: 1 addition & 1 deletion build/package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18.3
FROM alpine:3.20.3

# Add the binary
COPY newrelic /bin/newrelic
Loading