From 45767d4a7b79f38348eb6bc9347ce5e3a93758e6 Mon Sep 17 00:00:00 2001 From: hyj1991 Date: Sun, 31 Dec 2023 15:49:38 +0800 Subject: [PATCH] test: get_config --- .github/workflows/nodejs.yml | 5 +++++ test/fixtures/cases/command.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e5a6477..c3c479b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,6 +20,11 @@ jobs: ] node-version: [ 12, 14, 16, 18, 20, 21 ] steps: + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Checkout Git Source uses: actions/checkout@master diff --git a/test/fixtures/cases/command.js b/test/fixtures/cases/command.js index 203e819..e9be589 100644 --- a/test/fixtures/cases/command.js +++ b/test/fixtures/cases/command.js @@ -236,12 +236,15 @@ exports = module.exports = function (logdir) { { key: 'data.enable_fatal_error_coredump', rule: { label: 'false', test: value => value === false } }, { key: 'data.enable_http_profiling', rule: { label: 'false', test: value => value === false } }, { key: 'data.enable_auto_incr_heap_limit', rule: { label: 'false', test: value => value === false } }, + { key: 'data.enable_avoid_rss_leak', rule: { label: 'false', test: value => value === false } }, + { key: 'data.m_mmap_threshold', rule: /^128$/ }, ], xprofctlRules(data) { return [new RegExp(`^X-Profiler 当前配置\\(pid ${data.pid}\\):\n` + ' - auto_incr_heap_limit_size: 256\n' + ' - check_throw: false\n' + ' - enable_auto_incr_heap_limit: false\n' + + ' - enable_avoid_rss_leak: false\n' + ' - enable_fatal_error_coredump: false\n' + ' - enable_fatal_error_hook: true\n' + ' - enable_fatal_error_report: true\n' @@ -252,6 +255,7 @@ exports = module.exports = function (logdir) { + ' - log_interval: 60\n' + ' - log_level: 2\n' + ' - log_type: 1\n' + + ' - m_mmap_threshold: 128\n' + ' - patch_http: true\n' + ' - patch_http_timeout: 30') ];