Skip to content

Add allow_in_sandbox! DSL #28794

Add allow_in_sandbox! DSL

Add allow_in_sandbox! DSL #28794

Triggered via pull request July 15, 2024 20:13
Status Failure
Total duration 9m 19s
Artifacts

tests.yml

on: pull_request
Matrix: test-default-formula
Matrix: tests
Matrix: update-test
Fit to window
Zoom out
Zoom in

Annotations

47 errors
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982dc606e8>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982dc25340>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for build Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982dc508d8>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for build Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982ddef518>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982df4d860>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982e227ef0>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can allow network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982e323480>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can deny network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982e4fad30>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L35
Formula::new formula instantiation Failure/Error: [:build, :test, :postinstall].each { |phase| expect(f.network_access_allowed?(phase)).to be(true) } NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982e244a78>
tests (generic OS): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L49
Formula::new formula instantiation with alias Failure/Error: [:build, :test, :postinstall].each { |phase| expect(f_alias.network_access_allowed?(phase)).to be(true) } NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f982e4f1230>
tests (Ubuntu 20.04)
The job was canceled because "tests__generic_OS__--gene" failed.
tests (Ubuntu 20.04)
The operation was canceled.
tests (Ubuntu 22.04)
The job was canceled because "tests__generic_OS__--gene" failed.
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1930
Formula#network_access_allowed? throws an error when passed an invalid symbol Failure/Error: expect { f.network_access_allowed?(:foo) }.to raise_error(ArgumentError) expected ArgumentError, got #<NoMethodError: undefined method `network_access_allowed?' for class Testball> with backtrace: # ./test/formula_spec.rb:1932:in `block (4 levels) in <top (required)>' # ./test/formula_spec.rb:1932:in `block (3 levels) in <top (required)>'
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for build Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c49a69ec0>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can deny network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c4988bd60>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c49507bd0>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c4929a8c0>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for build Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c490da788>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c4912d8e8>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c4918fa20>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can allow network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c492b3fc8>
tests (Ubuntu 22.04): home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formula_spec.rb#L35
Formula::new formula instantiation Failure/Error: [:build, :test, :postinstall].each { |phase| expect(f.network_access_allowed?(phase)).to be(true) } NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00007f2c4902ddf8>
tests (online)
The job was canceled because "tests__generic_OS__--gene" failed.
tests (online)
The operation was canceled.
tests (macOS 13 x86_64)
The job was canceled because "tests__generic_OS__--gene" failed.
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_installer_spec.rb#L75
FormulaInstaller offline installation Failure/Error: expect { temporary_install(FailballOfflineInstall.new) }.to raise_error(BuildError) if Sandbox.available? expected BuildError but nothing was raised
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/dev-cmd/test_spec.rb#L23
Homebrew::DevCmd::Test blocks network access when test phase is offline Failure/Error: expect { brew "test", "--verbose", "testball_offline_test" } .to output(/curl: \(6\) Could not resolve host: example\.org/).to_stdout .and be_a_failure expected block to output /curl: \(6\) Could not resolve host: example\.org/ to stdout, but output "==> Testing testball_offline_test\n\e[34m==>\e[0m \e[1mcurl example.org\e[0m\r\n % Total % Received % Xferd Average Speed Time Time Time Current\r\n Dload Upload Total Spent Left Speed\r\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 1256 100 1256 0 0 61665 0 --:--:-- --:--:-- --:--:-- 62800\r\n<!doctype html>\r\n<html>\r\n<head>\r\n <title>Example Domain</title>\r\n\r\n <meta charset=\"utf-8\" />\r\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n <style type=\"text/css\">\r\n body {\r\n background-color: #f0f0f2;\r\n margin: 0;\r\n padding: 0;\r\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\r\n \r\n }\r\n div {\r\n width: 600px;\r\n margin: 5em auto;\r\n padding: 2em;\r\n background-color: #fdfdff;\r\n border-radius: 0.5em;\r\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\r\n }\r\n a:link, a:visited {\r\n color: #38488f;\r\n text-decoration: none;\r\n }\r\n @media (max-width: 700px) {\r\n div {\r\n margin: 0 auto;\r\n width: auto;\r\n }\r\n }\r\n </style> \r\n</head>\r\n\r\n<body>\r\n<div>\r\n <h1>Example Domain</h1>\r\n <p>This domain is for use in illustrative examples in documents. You may use this\r\n domain in literature without prior coordination or asking for permission.</p>\r\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\r\n</div>\r\n</body>\r\n</html>\r\n" ...and: expected #<Proc:0x000000012a53e2f8 /usr/local/Homebrew/Library/Homebrew/test/dev-cmd/test_spec.rb:32> to be a failure Diff for (output /curl: \(6\) Could not resolve host: example\.org/ to s...): @@ -1,51 +1,101 @@ -/curl: \(6\) Could not resolve host: example\.org/ +==> Testing testball_offline_test +==> curl example.org + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1256 100 1256 0 0 61665 0 --:--:-- --:--:-- --:--:-- 62800 +<!doctype html> +<html> +<head> + <title>Example Domain</title> + + <meta charset="utf-8" /> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <style type="text/css"> + body { + background-color: #f0f0f2; + margin: 0; + padding: 0; + font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + + } + div { + width: 600px; + margin: 5em auto; + padding: 2em; + background-color: #fdfdff; + border-radius: 0.5em; + box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02); + } + a:link, a:visited { + color: #38488f; + text-decoration: none; + } + @media (max-width: 700px) { + div { + margin: 0 auto; + width: auto; + } + } + </style> +</head> + +<body> +<div> + <h1>Example Domain</h1> + <p>This domain is for use in illustrative examples in documents. You may use this + domain in literature wit
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1930
Formula#network_access_allowed? throws an error when passed an invalid symbol Failure/Error: expect { f.network_access_allowed?(:foo) }.to raise_error(ArgumentError) expected ArgumentError, got #<NoMethodError: undefined method `network_access_allowed?' for class Testball> with backtrace: # ./test/formula_spec.rb:1932:in `block (4 levels) in <top (required)>' # ./test/formula_spec.rb:1932:in `block (3 levels) in <top (required)>'
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012c0d6c40>
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012bf7aa18>
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for build Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012beff0c0>
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can deny network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012bed2c78>
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012bcd6eb0>
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can allow network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012badb2c8>
tests (macOS 13 x86_64): usr/local/Homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012a4f7268>
tests (macOS 14 arm64)
The job was canceled because "tests__generic_OS__--gene" failed.
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/dev-cmd/test_spec.rb#L23
Homebrew::DevCmd::Test blocks network access when test phase is offline Failure/Error: expect { brew "test", "--verbose", "testball_offline_test" } .to output(/curl: \(6\) Could not resolve host: example\.org/).to_stdout .and be_a_failure expected block to output /curl: \(6\) Could not resolve host: example\.org/ to stdout, but output "==> Testing testball_offline_test\n\e[34m==>\e[0m \e[1mcurl example.org\e[0m\r\n % Total % Received % Xferd Average Speed Time Time Time Current\r\n Dload Upload Total Spent Left Speed\r\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 1256 100 1256 0 0 69357 0 --:--:-- --:--:-- --:--:-- 66105\r\n<!doctype html>\r\n<html>\r\n<head>\r\n <title>Example Domain</title>\r\n\r\n <meta charset=\"utf-8\" />\r\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n <style type=\"text/css\">\r\n body {\r\n background-color: #f0f0f2;\r\n margin: 0;\r\n padding: 0;\r\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\r\n \r\n }\r\n div {\r\n width: 600px;\r\n margin: 5em auto;\r\n padding: 2em;\r\n background-color: #fdfdff;\r\n border-radius: 0.5em;\r\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\r\n }\r\n a:link, a:visited {\r\n color: #38488f;\r\n text-decoration: none;\r\n }\r\n @media (max-width: 700px) {\r\n div {\r\n margin: 0 auto;\r\n width: auto;\r\n }\r\n }\r\n </style> \r\n</head>\r\n\r\n<body>\r\n<div>\r\n <h1>Example Domain</h1>\r\n <p>This domain is for use in illustrative examples in documents. You may use this\r\n domain in literature without prior coordination or asking for permission.</p>\r\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\r\n</div>\r\n</body>\r\n</html>\r\n" ...and: expected #<Proc:0x000000013243c6b8 /opt/homebrew/Library/Homebrew/test/dev-cmd/test_spec.rb:32> to be a failure Diff for (output /curl: \(6\) Could not resolve host: example\.org/ to s...): @@ -1,51 +1,101 @@ -/curl: \(6\) Could not resolve host: example\.org/ +==> Testing testball_offline_test +==> curl example.org + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1256 100 1256 0 0 69357 0 --:--:-- --:--:-- --:--:-- 66105 +<!doctype html> +<html> +<head> + <title>Example Domain</title> + + <meta charset="utf-8" /> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <style type="text/css"> + body { + background-color: #f0f0f2; + margin: 0; + padding: 0; + font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + + } + div { + width: 600px; + margin: 5em auto; + padding: 2em; + background-color: #fdfdff; + border-radius: 0.5em; + box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02); + } + a:link, a:visited { + color: #38488f; + text-decoration: none; + } + @media (max-width: 700px) { + div { + margin: 0 auto; + width: auto; + } + } + </style> +</head> + +<body> +<div
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_installer_spec.rb#L75
FormulaInstaller offline installation Failure/Error: expect { temporary_install(FailballOfflineInstall.new) }.to raise_error(BuildError) if Sandbox.available? expected BuildError but nothing was raised
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L49
Formula::new formula instantiation with alias Failure/Error: [:build, :test, :postinstall].each { |phase| expect(f_alias.network_access_allowed?(phase)).to be(true) } NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00000001313bb370>
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L35
Formula::new formula instantiation Failure/Error: [:build, :test, :postinstall].each { |phase| expect(f.network_access_allowed?(phase)).to be(true) } NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x00000001314750b8>
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L1930
Formula#network_access_allowed? throws an error when passed an invalid symbol Failure/Error: expect { f.network_access_allowed?(:foo) }.to raise_error(ArgumentError) expected ArgumentError, got #<NoMethodError: undefined method `network_access_allowed?' for class Testball> with backtrace: # ./test/formula_spec.rb:1932:in `block (4 levels) in <top (required)>' # ./test/formula_spec.rb:1932:in `block (3 levels) in <top (required)>'
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x0000000130257bd8>
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L1917
Formula {allow,deny}_network_access can allow network access for all phases Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x0000000127fd8c20>
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for postinstall Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x0000000127f173b8>
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can deny network access for test Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x000000012753e800>
tests (macOS 14 arm64): opt/homebrew/Library/Homebrew/test/formula_spec.rb#L1906
Formula {allow,deny}_network_access can allow network access for build Failure/Error: expect(f.network_access_allowed?(phase)).to be(action == "allow") NoMethodError: undefined method `network_access_allowed?' for class #<Class:0x0000000126458040>