Skip to content

fix(devcontainer): pin Test::Nginx to the Linux CI revision - #14281

Open
Zi-Yi-Ming wants to merge 2 commits into
apache:masterfrom
Zi-Yi-Ming:fix/devcontainer-test-nginx-pin
Open

Zi-Yi-Ming wants to merge 2 commits into
apache:masterfrom
Zi-Yi-Ming:fix/devcontainer-test-nginx-pin

Conversation

@Zi-Yi-Ming

@Zi-Yi-Ming Zi-Yi-Ming commented Nov 27, 2026 •

Copy link
Copy Markdown

Description

The Dev Container clones Test::Nginx from master, while Linux OpenResty CI uses ced30a31 for compatibility with APISIX tests that use --- http2. With the current Test::Nginx master, t/plugin/azure-functions.t reaches 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 test use 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

  • With OpenResty 1.31.9.1, Test::Nginx ee25abd failed at the first HTTP/2 case in two runs. The CI-pinned revision passed all 63 assertions in the same file.
  • Ran the dependency checkout commands from the updated postCreateCommand in a clean Ubuntu directory. They checked out ced30a31bafab6c68873efb17b6d80f39bcd95f5. The Dev Container JSON, Bash syntax, and git diff --check passed.
  • Tested which Test::Nginx copy make test loaded in five layouts. With both copies present, the original target loaded the sibling copy at ee25abd. The updated target loaded the workspace copy at ced30a31. A sibling-only checkout and lookup through PERL5LIB still worked.
  • With both copies present, the updated make test passed all 115 assertions in t/admin/api.t and t/plugin/azure-functions.t, including the existing HTTP/2 cases.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect the changes made in the PR
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

The existing HTTP/2 case already detects the failure when the bootstrap selects the wrong revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant