正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Test plan for nginx-module-vts component upgrade

一貫した開発プロセスとドキュメントを確保するため、GitLabへのすべての貢献は英語で提出する必要があります。そのため、GitLabへの貢献に関するドキュメント(https://docs.gitlab.com/development/に掲載)も英語でのみ提供されています。

以下を希望される場合:

  • コードの貢献を提出する
  • バグの報告または修正
  • 機能や改善の提案
  • ドキュメントへの貢献

これらのページの英語版のガイドラインに従ってください。

このページの英語版にアクセスしてください。

Copy the test plan below to a comment of the merge request that upgrades the component.

Test plan

  • Checked nginx-vts module changelog for potential breaking changes.
  • Started a new pipeline and trigger Trigger::ee-package.
  • Started a new pipeline on dev.gitlab.org for the branch.
    • Rebase to tip of dev/master if needed.
  • Test the library:
    • Confirm nginx has vts support

      • The command /opt/gitlab/embedded/sbin/nginx -V should include --add-module=/opt/gitlab/src/nginx_modules/nginx-module-vts in the return.
    • Check the version of the vts module.

      • Create a minimal nginx.conf:
      worker_processes  1;
      events {
          worker_connections  1024;
      }
      http {
          vhost_traffic_status_zone;
          default_type  application/octet-stream;
          sendfile        on;
          keepalive_timeout  65;
          server {
              listen       80;
              server_name localhost;
              location /status {
                  vhost_traffic_status_display;
                  vhost_traffic_status_display_format html;
              }
          }
      }
      • Start nginx with the configuration with /opt/gitlab/embedded/sbin/nginx -c nginx.conf
      • Check the version with curl -ssL localhost:80/status/format/json | jq '.moduleVersion'
    • function

      • Follow the instructions to configure the VTS module.
      • Run curl -s -g "http://localhost:9090/api/v1/query?query=rate(nginx_vts_server_request_seconds_total[5m])"
      • The command should return "status":"success"...