Skip to content

Commit

Permalink
Merge branch 'main' into feat/local-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
noahmmcgivern authored Sep 28, 2023
2 parents 39105bb + 3cbad50 commit f552260
Show file tree
Hide file tree
Showing 23 changed files with 458 additions and 117 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
go-version:
- 1.18.x
- 1.19.x
platform:
- ubuntu-latest
- macos-latest
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Compile
run: make compile-only
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

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

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/release-homebrew.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

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

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin"
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tutone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [ workflow_dispatch ]
jobs:
createPullRequest:
runs-on: ubuntu-latest
container: golang:1.18-bullseye
container: golang:1.19-bullseye
steps:
- uses: actions/checkout@v2

Expand Down
76 changes: 44 additions & 32 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="v0.72.0"></a>
## [v0.72.0] - 2023-09-27
### Features
- **install:** validate user API key format ([#1510](https://github.com/newrelic/newrelic-cli/issues/1510))

<a name="v0.71.0"></a>
## [v0.71.0] - 2023-08-30
### Features
- **synthetics:** addition of a command to run automated tests on monitors ([#1508](https://github.com/newrelic/newrelic-cli/issues/1508))

<a name="v0.70.0"></a>
## [v0.70.0] - 2023-08-21
### Features
Expand Down Expand Up @@ -1808,38 +1818,38 @@
## [v0.8.11] - 2021-01-08
### Bug Fixes
- duplicitous task running
- **build:** update changelog action for improved standards
- **build:** skip go generate as part of build process
- **build:** update changelog action for improved standards
- **config:** ensure compatible case with nr1
- **config:** remove extra comment
- **config:** compatible case with any loglevel value
- **config:** remove extra comment
- **diagnostics:** update download URL
- **install:** avoid duplicate installs for logging and infra
- **install:** avoid prompting when user has specified a named recipe
- **install:** capture task output and print only when debug logging
- **install:** avoid nil pointer and extra matches for service results
- **install:** update logMatch type to list
- **install:** capture task output and print only when debug logging
- **install:** fix few lint issues
- **install:** update recipe spec to support displayName
- **install:** ensure secret input is hidden
- **install:** skip account-based link if default profile does not exist
- **install:** fixes for end to end flow
- **install:** tidy up the permissions on new files
- **install:** replace package ID with default value
- **install:** print newline after banner
- **install:** create default log folder if not exists
- **install:** ignore region string case when checking profile
- **install:** reduce sudo requirement of install.sh
- **install:** detect and warn for empty NRQL validation
- **install:** set better default value when running automatic
- **install:** include displayName in request and recipe constructor
- **install:** let dead processes stay dead
- **install:** use string type for ID returned from the API
- **install:** update logMatch type to list
- **install:** avoid prompting when user has specified a named recipe
- **install:** update logMatch type to list
- **install:** wire up all installContext fields
- **install:** include displayName in request and recipe constructor
- **install:** avoid duplicate installs for logging and infra
- **install:** fix meltMatch struct to match spec
- **install:** fix few lint issues
- **install:** skip linting maligned struct
- **install:** return error when default value is needed and not provided
- **install:** create default log folder if not exists
- **install:** print newline after banner
- **install:** skip linting maligned struct
- **install:** set better default value when running automatic
- **internal/diagnose:** download udpates via https!
- **linting:** remove unused function
- **output:** Fix FormatText to do more than just tables
Expand All @@ -1854,29 +1864,29 @@
- **readme:** include installation notes for Chocolatey users

### Features
- add a command for posting custom events
- release edge command
- add a command for posting custom events
- **apiaccess:** add generated apiAccess commands (prerelease)
- **config:** Add config option to show Pre-Release Features (resolves [#274](https://github.com/newrelic/newrelic-cli/issues/274))
- **edge:** add infinite tracing support
- **edge:** mark as pre-release
- **install:** implement a mock server for process-based task selection
- **edge:** add infinite tracing support
- **install:** wire up process discovery with cloned nri-process-discovery code
- **install:** sketching out recipe validation
- **install:** fetch recipes from recipe service
- **install:** implement a mock server for process-based task selection
- **install:** prompt for variable input
- **install:** fetch recipes from recipe service
- **install:** add -y flag
- **internal/diagnose:** add minimal command line options
- **install:** sketching out recipe validation
- **internal/diagnose:** lint command; break out commands & helpers
- **internal/diagnose:** add minimal command line options
- **nerdgraph:** implement tutone-generated mutation command alertsPolicyCreate
- **newrelic:** integrate with nrdiag (prototype)
- **nrql:** Add NRQL Query and History commands
- **output:** Add text output formatter to general package
- **profiles:** create a profile automatically if it's possible
- **release:** [#45](https://github.com/newrelic/newrelic-cli/issues/45) add support for command chaining
- **release:** update master branch with latest code from upstream
- **release:** attempt to automate syncing our homebrew-core fork with upstream
- **release:** add step to update newrelic-forks/homebrew-core with latest from upstream homebrew-code
- **release:** update master branch with latest code from upstream
- **release:** [#45](https://github.com/newrelic/newrelic-cli/issues/45) add support for command chaining
- **reporting:** add junit reporting

<a name="v0.8.5"></a>
Expand Down Expand Up @@ -1942,12 +1952,12 @@
- **ci:** chmod +x the brew PR script
- **ci:** update the snap app name to match the binary
- **ci:** revert snapcraft binary name
- **ci:** update the snap name to match the binary
- **ci:** upgrade snapcraft grade
- **ci:** add a step to install snapcraft
- **ci:** wire snapcraft token into publish step
- **ci:** wire docker creds into publish step
- **ci:** fix yaml indentation
- **ci:** update the snap name to match the binary

### Features
- **ci:** automate updating of homebrew formula
Expand Down Expand Up @@ -1989,12 +1999,12 @@
### Features
- **docs:** Add auto-generated CLI documentation
- **docs:** Add cobra generated documentation command (hidden)
- **workloads:** add a command to list workloads
- **workloads:** add a command to get a workload
- **workloads:** add a command to duplicate workloads
- **workloads:** add a command to update workloads
- **workloads:** add a command to delete workloads
- **workloads:** add a command to create workloads
- **workloads:** add a command to list workloads
- **workloads:** add a command to get a workload

<a name="v0.4.1"></a>
## [v0.4.1] - 2020-03-11
Expand Down Expand Up @@ -2076,28 +2086,30 @@
- **entities:** include some examples and longer help

### Features
- **apm:** implement apm deployment marker retrieval
- **apm:** implement apm deployment create/delete
- **apm:** implement apm deployment marker retrieval
- **build:** Add docker handling to make system (build/clean/run)
- **build:** Create basic Dockerfile
- **completion:** include completion command for shell completion
- **config:** Add basic config loading
- **config:** write config file if none exists
- **config:** Add basic config loading
- **config:** add remaining config methods
- **config:** add list method
- **config:** Add log level configuration
- **credentials:** implement initial credential management
- **credentials:** set default profile if adding one for the first time
- **credentials:** allow overriding api keys via env vars
- **entities:** add ability to filter entities search by entity type, tag, alert severity, domain, and reporting
- **entities:** add entity tag retrieval
- **entities:** implement entities tag and tag value deletion
- **credentials:** set default profile if adding one for the first time
- **credentials:** implement initial credential management
- **entities:** implement add/replace tags
- **entities:** implement entities tag and tag value deletion
- **entities:** add entity tag retrieval
- **entities:** add ability to filter entities search by entity type, tag, alert severity, domain, and reporting
- **entities:** add entity search
- **profile:** Enable reading of profiles and use Region/APIKey from default profile
- **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.70.0...HEAD
[Unreleased]: https://github.com/newrelic/newrelic-cli/compare/v0.72.0...HEAD
[v0.72.0]: https://github.com/newrelic/newrelic-cli/compare/v0.71.0...v0.72.0
[v0.71.0]: https://github.com/newrelic/newrelic-cli/compare/v0.70.0...v0.71.0
[v0.70.0]: https://github.com/newrelic/newrelic-cli/compare/v0.69.0...v0.70.0
[v0.69.0]: https://github.com/newrelic/newrelic-cli/compare/v0.68.25...v0.69.0
[v0.68.25]: https://github.com/newrelic/newrelic-cli/compare/v0.68.24...v0.68.25
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ are used to construct or destroy an item, respectively.

### Requirements

- Go 1.18+
- Go 1.19+
- GNU Make
- git

Expand Down
15 changes: 8 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/newrelic/newrelic-cli

go 1.18
go 1.19

require (
github.com/AlecAivazis/survey/v2 v2.3.6
Expand All @@ -16,11 +16,11 @@ require (
github.com/jedib0t/go-pretty/v6 v6.4.4
github.com/joshdk/go-junit v0.0.0-20210226021600-6145f504ca0d
github.com/mitchellh/go-homedir v1.1.0
github.com/newrelic/newrelic-client-go/v2 v2.20.0
github.com/newrelic/newrelic-client-go/v2 v2.21.0
github.com/pkg/errors v0.9.1
github.com/shirou/gopsutil/v3 v3.22.12
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/splitio/go-client/v6 v6.2.1
github.com/stretchr/testify v1.8.1
Expand Down Expand Up @@ -48,21 +48,21 @@ require (
github.com/google/go-querystring v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/itchyny/timefmt-go v0.1.5 // indirect
github.com/joho/godotenv v1.4.0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-zglob v0.0.3 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/radovskyb/watcher v1.0.7 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/segmentio/backo-go v1.0.1 // indirect
github.com/splitio/go-split-commons/v4 v4.2.0 // indirect
Expand All @@ -76,8 +76,9 @@ require (
github.com/valyala/fastjson v1.6.3 // indirect
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.7.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)
Loading

0 comments on commit f552260

Please sign in to comment.