Repository navigation
Conversation
This change modifies the eureka discovery module to iterate through the configured list of Eureka servers when fetching the registry. If a server is unreachable or returns an error, it proceeds to the next one, ensuring high availability of the discovery mechanism. A new test case is added to verify this failover behavior.
* Update Makefile to handle macos paths and dependencies * Update rockspec to support macosx platform * Patch t/APISIX.pm to fix test runner on standard OpenResty * Update install-dependencies.sh to support Homebrew installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive support for setting up the APISIX development and testing environment on macOS using Homebrew and standard OpenResty.
Changes
Makefile:
darwin(macOS).ENV_OPENSSL_PREFIXandENV_LIBYAML_INSTALL_PREFIXto usebrew --prefix.LUAROCKS_LUA_FLAGto point LuaRocks to the OpenResty LuaJIT installation managed by Homebrew.sudousage for OpenResty symlinking on macOS (not needed/recommended for Homebrew).apisix-master-0.rockspec:
"macosx"to thesupported_platformslist.t/APISIX.pm (Test Runner):
lua_shared_dictdefinitions (likeprometheus-cache) in thehttp {}block. This fixes crashes when running tests with standard OpenResty (which lacks theapisix-nginx-modulesignature).http_v3_modulebefore enablinghttp3 onandreuseportdirectives, preventing failures on Nginx builds without HTTP/3 support.lua-resty-worker-eventsto match standard OpenResty capabilities better.utils/install-dependencies.sh:
install_dependencies_with_brewfunction to automate installing OpenResty, LuaRocks, OpenSSL, and LibYAML via Homebrew on macOS.Verification
t/core/json.t) which previously failed due to missing shared dictionaries.