Compare commits
No commits in common. "6e138d16b0839a681e9f1baa34a6f8a743a1d59f" and "9400f5a8695e2b5ee6f605f8a665d8e5a92cdc0b" have entirely different histories.
6e138d16b0
...
9400f5a869
3 changed files with 2 additions and 47 deletions
45
.github/workflows/alpine.yml
vendored
45
.github/workflows/alpine.yml
vendored
|
|
@ -1,45 +0,0 @@
|
|||
name: Alpine build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container: alpine
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apk add build-base openssl-dev zlib-dev pcre2-dev \
|
||||
cmake git grpc-dev protobuf-dev \
|
||||
python3
|
||||
- name: Checkout nginx
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: nginx/nginx
|
||||
path: nginx
|
||||
- name: Build nginx
|
||||
working-directory: nginx
|
||||
run: |
|
||||
auto/configure --with-compat --with-http_ssl_module \
|
||||
--with-http_v2_module --with-http_v3_module
|
||||
make -j $(nproc)
|
||||
- name: Build module
|
||||
working-directory: nginx
|
||||
run: |
|
||||
NGX_OTEL_CMAKE_OPTS="-D NGX_OTEL_GRPC=package" \
|
||||
auto/configure --with-compat --add-dynamic-module=..
|
||||
make -j $(nproc) modules
|
||||
- name: Install test dependencies
|
||||
run: |
|
||||
python -m venv tests-venv
|
||||
tests-venv/bin/pip install -r tests/requirements.txt
|
||||
- name: Run tests
|
||||
run: |
|
||||
tests-venv/bin/pytest tests --maxfail=10 --nginx=nginx/objs/nginx \
|
||||
--module=nginx/objs/ngx_otel_module.so
|
||||
2
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
build-module:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
|
|||
|
|
@ -296,10 +296,10 @@ ngx_int_t setHeader(ngx_http_request_t* r, StrView name, StrView value)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
*header = {};
|
||||
header->hash = hash;
|
||||
header->key = toNgxStr(name);
|
||||
header->lowcase_key = header->key.data;
|
||||
header->next = NULL;
|
||||
}
|
||||
|
||||
header->value = toNgxStr(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue