Repository navigation
fix(devcontainer): pin Test::Nginx to the Linux CI revision - #14281
Open
Zi-Yi-Ming wants to merge 2 commits into
Open
Zi-Yi-Ming wants to merge 2 commits into
Zi-Yi-Ming wants to merge 2 commits into
Conversation
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.
Description
The Dev Container clones Test::Nginx from
master, while Linux OpenResty CI usesced30a31for compatibility with APISIX tests that use--- http2. With the current Test::Nginxmaster,t/plugin/azure-functions.treaches its first HTTP/2 case and then fails to start OpenResty with"http2" directive is duplicate.Check out the same Test::Nginx revision in the Dev Container and point the testing guide to the CI pin. This applies the version choice from #11816 to the developer setup.
Make
make testuse that workspace checkout when it contains Test::Nginx. Keep the existing sibling lookup for contributors who install Test::Nginx next to the APISIX checkout.Validation
ee25abdfailed at the first HTTP/2 case in two runs. The CI-pinned revision passed all 63 assertions in the same file.postCreateCommandin a clean Ubuntu directory. They checked outced30a31bafab6c68873efb17b6d80f39bcd95f5. The Dev Container JSON, Bash syntax, andgit diff --checkpassed.make testloaded in five layouts. With both copies present, the original target loaded the sibling copy atee25abd. The updated target loaded the workspace copy atced30a31. A sibling-only checkout and lookup throughPERL5LIBstill worked.make testpassed all 115 assertions int/admin/api.tandt/plugin/azure-functions.t, including the existing HTTP/2 cases.Checklist
The existing HTTP/2 case already detects the failure when the bootstrap selects the wrong revision.