diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index cb7b094e96..d1aa1fa92e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -190,10 +190,11 @@ body:
Pulse CPU, memory or disk writes: comparable measurements - For CPU, memory or disk-write reports about Pulse itself, use existing readings or safe, passive observations. Say whether the reading covers the Pulse process, its container or the whole host, and give its units, measurement window and uptime. Include allocated CPUs or memory limit, fleet size, polling interval and open dashboards where relevant and known. A process-start CPU average is not a recent sampling window; database size is not a write rate. - Existing screenshots are useful; write "unavailable" when safe collection is not possible. Do not restart, create load or change polling or retention just to measure. Do not attach raw profiles, heap dumps, databases or full process command lines; summarise only relevant counters after local review. + If Pulse stopped, say whether the service or the whole container stopped. Give each stop's time and time zone, Pulse version and memory limit, if known. A high memory chart does not prove a kill. If you already have a kernel line naming Pulse as killed for lack of memory, share just that line after removing private details. Otherwise leave the cause unknown. - For Pulse memory reports, distinguish a higher steady baseline from growth during one uninterrupted run. A higher baseline is worth reporting even if usage stays flat. Keep already available versions, uptime, workload and enabled collectors/features with each reading; a lower reading shortly after an upgrade is not proof of recovery compared with a days-old run. Unknown context is valid; do not restart, downgrade or change features to create a comparison. + For Pulse CPU, memory or disk writes, use existing readings, screenshots or passive checks. Give the scope (Pulse process, container or host), units, measurement window and uptime. Add known CPU or memory limits, fleet size, polling interval and open dashboards. CPU averaged since start is not a recent sample. Database size is not a write rate. + + A higher steady memory baseline matters, not just growth during one run. Compare at similar uptimes, noting versions, workload and enabled collectors or features. Write "unavailable" if you cannot measure safely. Do not restart, downgrade, add load or change limits, features, polling or retention to measure. Summarise reviewed counters, not raw profiles, heap dumps, databases or full process command lines.
diff --git a/.github/ISSUE_TEMPLATE/v6_rc_feedback.yml b/.github/ISSUE_TEMPLATE/v6_rc_feedback.yml index 1b4bae2b74..4d8b07c90b 100644 --- a/.github/ISSUE_TEMPLATE/v6_rc_feedback.yml +++ b/.github/ISSUE_TEMPLATE/v6_rc_feedback.yml @@ -232,10 +232,11 @@ body:
Pulse CPU, memory or disk writes: comparable measurements - For CPU, memory or disk-write reports about Pulse itself, use existing readings or safe, passive observations. Say whether the reading covers the Pulse process, its container or the whole host, and give its units, measurement window and uptime. Include allocated CPUs or memory limit, fleet size, polling interval and open dashboards where relevant and known. A process-start CPU average is not a recent sampling window; database size is not a write rate. - Existing screenshots are useful; write "unavailable" when safe collection is not possible. Do not restart, create load or change polling or retention just to measure. Do not attach raw profiles, heap dumps, databases or full process command lines; summarise only relevant counters after local review. + If Pulse stopped, say whether the service or the whole container stopped. Give each stop's time and time zone, Pulse version and memory limit, if known. A high memory chart does not prove a kill. If you already have a kernel line naming Pulse as killed for lack of memory, share just that line after removing private details. Otherwise leave the cause unknown. - For Pulse memory reports, distinguish a higher steady baseline from growth during one uninterrupted run. A higher baseline is worth reporting even if usage stays flat. Keep already available versions, uptime, workload and enabled collectors/features with each reading; a lower reading shortly after an upgrade is not proof of recovery compared with a days-old run. Unknown context is valid; do not restart, downgrade or change features to create a comparison. + For Pulse CPU, memory or disk writes, use existing readings, screenshots or passive checks. Give the scope (Pulse process, container or host), units, measurement window and uptime. Add known CPU or memory limits, fleet size, polling interval and open dashboards. CPU averaged since start is not a recent sample. Database size is not a write rate. + + A higher steady memory baseline matters, not just growth during one run. Compare at similar uptimes, noting versions, workload and enabled collectors or features. Write "unavailable" if you cannot measure safely. Do not restart, downgrade, add load or change limits, features, polling or retention to measure. Summarise reviewed counters, not raw profiles, heap dumps, databases or full process command lines.
diff --git a/.github/scripts/issue-version-triage.test.cjs b/.github/scripts/issue-version-triage.test.cjs index 0155276c21..c739da454c 100644 --- a/.github/scripts/issue-version-triage.test.cjs +++ b/.github/scripts/issue-version-triage.test.cjs @@ -2052,41 +2052,51 @@ for (const [name, field] of [ test(`performance report measurement context stays optional: ${name}`, () => { const attachment = evidenceField(); - assert.match(attachment, /For CPU, memory or disk-write reports/); - assert.match(attachment, /existing readings or safe, passive observations/); - assert.match(attachment, /Pulse process, its container or the whole host/); - for (const context of ["units", "measurement window", "uptime", "allocated CPUs", "memory limit", "fleet size", "polling interval", "open dashboards"]) { + assert.match(attachment, /For Pulse CPU, memory or disk writes/); + assert.match(attachment, /existing readings, screenshots or passive checks/); + assert.match(attachment, /Pulse process, container or host/); + for (const context of ["units", "measurement window", "uptime", "CPU or memory limits", "fleet size", "polling interval", "open dashboards"]) { assert.ok(attachment.includes(context), `${name} must distinguish ${context}`); } - assert.match(attachment, /where relevant and known/); - assert.match(attachment, /process-start CPU average is not a recent sampling window/); - assert.match(attachment, /database size is not a write rate/); - assert.match(attachment, /Existing screenshots are useful/); - assert.match(attachment, /write "unavailable" when safe collection is not possible/); + assert.match(attachment, /Add known CPU or memory limits, fleet size, polling interval and open dashboards/); + assert.match(attachment, /CPU averaged since start is not a recent sample/); + assert.match(attachment, /Database size is not a write rate/); + assert.match(attachment, /Write "unavailable" if you cannot measure safely/); assert.doesNotMatch(attachment, /required: true|render:/); }); test(`performance report attachment safety: ${name}`, () => { const attachment = evidenceField(); - assert.match(attachment, /Do not restart, create load or change polling or retention just to measure/); - assert.match(attachment, /Do not attach raw profiles, heap dumps, databases or full process command lines/); - assert.match(attachment, /summarise only relevant counters after local review/); + assert.match(attachment, /Do not restart, downgrade, add load or change limits, features, polling or retention to measure/); + assert.match(attachment, /Summarise reviewed counters, not raw profiles, heap dumps, databases or full process command lines/); }); test(`baseline memory regressions need no continuing growth or restart: ${name}`, () => { const attachment = evidenceField(); - assert.match(attachment, /higher steady baseline from growth during one uninterrupted run/); - assert.match(attachment, /worth reporting even if usage stays flat/); - assert.match(attachment, /already available versions, uptime, workload and enabled collectors\/features/); - assert.match(attachment, /not proof of recovery compared with a days-old run/); - assert.match(attachment, /Unknown context is valid/); - assert.match(attachment, /do not restart, downgrade or change features to create a comparison/); + assert.match(attachment, /higher steady memory baseline matters, not just growth during one run/); + assert.match(attachment, /Compare at similar uptimes, noting versions, workload and enabled collectors or features/); + assert.match(attachment, /Write "unavailable" if you cannot measure safely/); + assert.doesNotMatch(attachment, /required: true|render:/); + }); + + test(`a Pulse stop needs original evidence, not a finding inferred from a chart: ${name}`, () => { + const attachment = evidenceField(); + const performance = attachment.match( + /Pulse CPU, memory or disk writes:[^<]*<\/summary>([\s\S]*?)<\/details>/, + )?.[1]; + assert.ok(performance, "keep this guidance in the optional Pulse performance section"); + assert.match(performance, /^\s*If Pulse stopped, say whether the service or the whole container stopped/); + assert.match(performance, /each stop's time and time zone, Pulse version and memory limit, if known/); + assert.match(performance, /high memory chart does not prove a kill/); + assert.match(performance, /already have a kernel line naming Pulse as killed.*share just that line after removing private details/); + assert.match(performance, /Otherwise leave the cause unknown/); + assert.match(performance, /Do not restart, downgrade, add load or change limits/); assert.doesNotMatch(attachment, /required: true|render:/); }); test(`guest memory comparisons retain optional target and sample context: ${name}`, () => { const attachment = evidenceField(); - assert.match(attachment, /For CPU, memory or disk-write reports about Pulse itself/); + assert.match(attachment, /For Pulse CPU, memory or disk writes/); const guest = attachment.split("For VM or LXC memory disagreements,")[1]; assert.ok(guest, "guest readings must not inherit Pulse process-only guidance"); assert.match(guest, /overview, History, alert, Patrol or another tool/);