Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates formula to version 0.1.20 #8

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Formula/pvsadm.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
class Pvsadm < Formula
desc "Tool for managing the IBM Power Systems Virtual Servers"
homepage "https://github.com/ppc64le-cloud/pvsadm"
version "0.1.11"
version "0.1.20"
license "Apache-2.0"
on_macos do
on_intel do
url "https://github.com/ppc64le-cloud/pvsadm/releases/download/v0.1.11/pvsadm-darwin-amd64.tar.gz"
sha256 "7af9d26b61a032f874be6d5a040b762796651bfde1acf95188b23ad85de1a646"
url "https://github.com/ppc64le-cloud/pvsadm/releases/download/v0.1.20/pvsadm-darwin-amd64.tar.gz"
sha256 "84146a337e5de594e3fdc4d837e7359ad5aacdf15d226ca2f03904e7b9ea249c"
end

on_arm do
url "https://github.com/ppc64le-cloud/pvsadm/releases/download/v0.1.11/pvsadm-darwin-arm64.tar.gz"
sha256 "053068fbfe6b6ea83fe285a22e0c260651714a976aee3d2c2be6529f2fbfc5f3"
url "https://github.com/ppc64le-cloud/pvsadm/releases/download/v0.1.20/pvsadm-darwin-arm64.tar.gz"
sha256 "da0ffefdfb4e4a85807c0d8c23b0fc3753f62c124f273467a7ff15964ec4bdcb"
end
end

on_linux do
on_intel do
url "https://github.com/ppc64le-cloud/pvsadm/releases/download/v0.1.11/pvsadm-linux-amd64.tar.gz"
sha256 "b25e9453bdd75a11af3303783c250c93f05b3472cfe49e795bab200e5db04e03"
url "https://github.com/ppc64le-cloud/pvsadm/releases/download/v0.1.20/pvsadm-linux-amd64.tar.gz"
sha256 "03f9d9787bad7db3785bd51fa4f9bc7bdfa21ecfdbbd00f372e0d9d74da5746b"
end
end

Expand All @@ -26,7 +26,7 @@
bin.install "pvsadm"
end

test do

Check warning on line 29 in Formula/pvsadm.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew test --verbose ppc64le-cloud/pvsadm/pvsadm` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/bin/bundle clean ==> Testing ppc64le-cloud/pvsadm/pvsadm ==> /home/linuxbrew/.linuxbrew/Cellar/pvsadm/0.1.20/bin/pvsadm get events 2>&1 ::error::ppc64le-cloud/pvsadm/pvsadm: failed An exception occurred within a child process: Minitest::Assertion: Expected /Error:\ \-\-instance\-name\ or\ \-\-instance\-name\ required/ to match "Error: api-key can't be empty, pass the token via --api-key or set IBMCLOUD_APIKEY environment variable\nUsage:\n pvsadm get events [flags]\n\nFlags:\n -h, --help help for events\n --since duration Show events since (default 24h0m0s)\n\nGlobal Flags:\n --add_dir_header If true, adds the file directory to the header of the log messages\n --alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)\n -k, --api-key string IBMCLOUD API Key(env name: IBMCLOUD_APIKEY)\n --audit-file string Audit logs for the tool (default \"pvsadm_audit.log\")\n --debug Enable PowerVS debug option(ATTENTION: dev only option, may print sensitive data from APIs)\n --env string IBM Cloud Environments, supported are: [test, prod] (default \"prod\")\n --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)\n --log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)\n --log_file string If non-empty, use this log file (no effect when -logtostderr=true)\n --log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)\n --logtostderr log to standard error instead of files (default true)\n --one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)\n --skip_headers If true, avoid header prefixes in the log messages\n --skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)\n --stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) (default 2)\n -v, --v Level number for the log level verbosity\n --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging\n --workspace-id string Workspace ID of the PowerVS instance\n --workspace-name string Workspace name of the PowerVS\n\nE1118 13:04:14.170687 10898 main.go:26] api-key can't be empty, pass the token via --api-key or set IBMCLOUD_APIKEY environment variable\n". /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/lib/minitest/assertions.rb:176:in `assert' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/lib/minitest/assertions.rb:291:in `assert_match' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/ppc64le-cloud/homebrew-pvsadm/Formula/pvsadm.rb:36:in `block in <class:Pvsadm>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2867:in `block (3 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:539:in `with_env' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2866:in `block (2 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1205:in `with_logging' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2865:in `block in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `block in run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.r

Check warning on line 29 in Formula/pvsadm.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-12)

`brew test --verbose ppc64le-cloud/pvsadm/pvsadm` failed on macOS Monterey (12)!

/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/bin/bundle clean ==> Testing ppc64le-cloud/pvsadm/pvsadm ==> /usr/local/Cellar/pvsadm/0.1.20/bin/pvsadm get events 2>&1 ::error::ppc64le-cloud/pvsadm/pvsadm: failed An exception occurred within a child process: Minitest::Assertion: Expected /Error:\ \-\-instance\-name\ or\ \-\-instance\-name\ required/ to match "Error: api-key can't be empty, pass the token via --api-key or set IBMCLOUD_APIKEY environment variable\nUsage:\n pvsadm get events [flags]\n\nFlags:\n -h, --help help for events\n --since duration Show events since (default 24h0m0s)\n\nGlobal Flags:\n --add_dir_header If true, adds the file directory to the header of the log messages\n --alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)\n -k, --api-key string IBMCLOUD API Key(env name: IBMCLOUD_APIKEY)\n --audit-file string Audit logs for the tool (default \"pvsadm_audit.log\")\n --debug Enable PowerVS debug option(ATTENTION: dev only option, may print sensitive data from APIs)\n --env string IBM Cloud Environments, supported are: [test, prod] (default \"prod\")\n --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)\n --log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)\n --log_file string If non-empty, use this log file (no effect when -logtostderr=true)\n --log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)\n --logtostderr log to standard error instead of files (default true)\n --one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)\n --skip_headers If true, avoid header prefixes in the log messages\n --skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)\n --stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) (default 2)\n -v, --v Level number for the log level verbosity\n --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging\n --workspace-id string Workspace ID of the PowerVS instance\n --workspace-name string Workspace name of the PowerVS\n\nE1118 13:10:48.516277 21242 main.go:26] api-key can't be empty, pass the token via --api-key or set IBMCLOUD_APIKEY environment variable\n". /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/lib/minitest/assertions.rb:176:in `assert' /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/lib/minitest/assertions.rb:291:in `assert_match' /usr/local/Homebrew/Library/Taps/ppc64le-cloud/homebrew-pvsadm/Formula/pvsadm.rb:36:in `block in <class:Pvsadm>' /usr/local/Homebrew/Library/Homebrew/formula.rb:2867:in `block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:539:in `with_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:2866:in `block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1205:in `with_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:2865:in `block in run_test' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:90:in `block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:90:in `chdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:90:in `run' /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11647/lib/types/private/method
output = shell_output("#{bin}/pvsadm get events 2>&1", 1)
assert_match "Error: --instance-name or --instance-name required", output
assert_match "Version: v#{version},", shell_output("#{bin}/pvsadm version | awk '{print $1, $2}'")
Expand Down
Loading