Conversation
|
Please split your commits so that each commit modifies at most one formula. Thanks! I'm also not certain about adding another versioned Envoy formula. One is fine, but two is probably a bit much, especially given that it works on only two out of five supported platforms. |
|
arm isn't expected to work as nothing upstream improved on this see #79312 and related |
|
@carlocab sounds good. so I will replace 1.17 with 1.18 that's fine with me. |
3376f60 to
bcbdfb8
Compare
bcbdfb8 to
4137a10
Compare
|
Looks like Envoy failed to build with the same error as in the previous PR. #81266 |
|
cool was waiting for a failed build on a branch with write access. likely Xcode related per some investigations from @mathetake |
|
ps any clue on "The homepage URL https://www.envoyproxy.io is not reachable" could it be timeout related? |
|
to fix the audit issue is easier, basically Envoy's Netlify is redirecting unless you hit something. Adding index.html will sort it out. |
4137a10 to
a986a5b
Compare
|
the problem is upstream compatibility with xcode 12 envoyproxy/envoy#17393 suppose we can figure out how to revert to an earlier version for these formulas as ^^ won't be in the source history until a later version of envoy |
a986a5b to
67c3d25
Compare
Formula/envoy@1.18.rb
Outdated
There was a problem hiding this comment.
this isn't needed as it doesn't run envoy's unit tests
Formula/envoy@1.18.rb
Outdated
There was a problem hiding this comment.
this works around the xcode issue until it is fixed upstream
|
thanks especially to @mathetake as he helped form the syntax. I'm not knowledgeable on this part. |
|
looks like an impossible combination.. we need to downgrade or delete this line https://github.com/envoyproxy/envoy/blob/main/bazel/envoy_internal.bzl#L69 |
093656e to
74715d9
Compare
|
watching paint dry to test locally as the build takes so long, but here's my idea for patching the file diff --git a/Formula/envoy.rb b/Formula/envoy.rb
index 471b5c5099..38887f2ef8 100644
--- a/Formula/envoy.rb
+++ b/Formula/envoy.rb
@@ -22,6 +22,8 @@ class Envoy < Formula
depends_on macos: :catalina
def install
+ # Work around xcode 12 incompatibility until envoyproxy/envoy#17393
+ inreplace "bazel/envoy_internal.bzl", '"-Wrange-loop-analysis",', ""
args = %W[
-c
opt
|
74715d9 to
3c3992f
Compare
|
at least in the build dir the above replacement worked locally even if the build won't finish for a few hours. I pushed here jic it finishes fine |
3c3992f to
04d40e7
Compare
|
trying both deleting the explicit entry for the linter from the config file and also adding its exclude as an arg. Maybe it is implicitly on by default. If this doesn't work and still no progress upstream... maybe we temporarily downgrade to the previous version of xcode. this project is extremely complex in terms of flags and attempts cost 3-5hrs each depending on how fast your machine is, and with the build is running it takes it completely over |
|
envoyproxy/envoy#17428 is the current approach to solve this |
04d40e7 to
7316f64
Compare
|
ok switched approach to an inline patch |
7316f64 to
369d5e5
Compare
|
I'm not sure the world record on slowest build, but one dimension is fast approaching 8hrs. 🍿 |
|
Unfortunately that one is taken by rust/go/python builds. Those often are over 24 hours 😅 . |
|
one can dream.. |
|
Successful in 481m! ok this is now passing more than before. There's a patch aka tech debt, but frankly the upstream patch...
and regardless I'm on the hook at least for a while, so don't mind playing revert duty if/when above change |
carlocab
left a comment
There was a problem hiding this comment.
We can use a patch from the upstream PR instead of carrying it around in the formula, I think.
|
thanks for the help as usual @carlocab I will re-organize the commits per formula again and 🤞 |
Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
3e02df5 to
ee66622
Compare
|
ok finally green! |
carlocab
left a comment
There was a problem hiding this comment.
Oops; this got buried under a bunch of other PRs. LGTM. Thanks, @codefromthecrypt!
Signed-off-by: Adrian Cole adrian@tetrate.io
brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew test <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingbrew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?