Skip to content
Back to skills

Qa

ASecurity

QA a pinpoint-node-agent change end to end on a worktree. Derive scenarios from the issue, run them in an app with the agent against a collector, check memory with heap snapshots when the change calls for it, and report pass/fail with evidence. Use after the Tape tests pass, before a PR is merged and before a release.

  • 63 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
devopsgonextjsnodeexpressdatabase

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add pinpoint-apm/pinpoint-node-agent --skill qa --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qa?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qa
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pinpoint-apm-pinpoint-node-agent/badge)](https://www.skillsdirectory.com/skills/pinpoint-apm-pinpoint-node-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qa
description: QA a pinpoint-node-agent change end to end on a worktree. Derive scenarios from the issue, run them in an app with the agent against a collector, check memory with heap snapshots when the change calls for it, and report pass/fail with evidence. Use after the Tape tests pass, before a PR is merged and before a release.
---

# QA

Tape tests prove the code. QA proves the change in a running app, the way a user of the
agent sees it. Run QA after the tests pass.

## Target

- QA runs on a worktree path of the branch under test.
- Run every scenario on the base, the branch it merges into, and on the change branch.
  A scenario that passes on both did not test the change.

## Scenarios

- Write the scenario list before running anything, and show it to the developer.
- One scenario per `input → expected` bullet of the issue.
- Add the regressions the change can cause: the other frameworks (Express, Koa, Next.js),
  sampling off, error routes, async child traces, and the paths next to the changed code.
- Scenarios test the features an app developer writes: routes, outgoing calls, database calls,
  calls between apps and the errors the app throws. Requests carry the values the app sends in
  normal use.
- Run every scenario in `scenarios.md` on each framework, plus the scenarios of the issue.
  A change that adds a feature adds its route to `apps/` and its scenario to `scenarios.md`
  in the same format.
- Report each expected value of a scenario as matched or not.

## Environment

- Apps: the Express, Koa and Next.js apps in `apps/`, which serve the routes of `scenarios.md`.
  `scenarios.md` says how to start them.
- Collector: one whose received data QA can read back, such as the call tree of a collector the
  developer names, or every message a local gRPC server records. Point the agent at it with
  `PINPOINT_COLLECTOR_IP`, `PINPOINT_COLLECTOR_SPAN_PORT`,
  `PINPOINT_COLLECTOR_STAT_PORT` and `PINPOINT_COLLECTOR_TCP_PORT`.
  - The collector answers the span RPC the branch uses (`SendSpanBatch`, or the `SendSpan`
    stream on older branches).
  - Bind the span, stat and tcp services to separate ports, as in production. With one port,
    grpc-js shares the connection opened at agent start, so the span channel never opens its
    own socket inside a request and that path goes untested.
  - On master the adaptors in `test/support/test-grpc-data-sender.js` can serve as the collector.
- QA starts and stops its own app and collector. Note each PID and stop only those.
- Start node by its real binary (`node -p process.execPath`), not a version manager shim such
  as Volta's. With a shim the noted PID is the shim's, and a signal such as SIGUSR2 for a heap
  snapshot stops the shim instead of reaching the app.
  A server the developer started is left running.

## Checks

Pick the checks per change and say why each one was picked or skipped.

### Functional

- Send the scenario requests and check the Pinpoint Web result: transaction list, call tree
  and Error Analysis. With a local gRPC server, check the messages it recorded: Span rpc and
  annotations, SpanChunk `localAsyncId`, metadata, ExceptionMetaData, stats.
- Judge by the collected data, not by agent logs.

### Memory

- Pick it when the change touches the lifetime of traces, AsyncLocalStorage, senders,
  caches, timers or sockets.
- Run the app with `--inspect` or `--heapsnapshot-signal=SIGUSR2`. Load it with
  `wrk -t2 -c2` on the main route, plus the error routes every few seconds.
- Take a snapshot after warm-up, then more at intervals under load.
- Compare across snapshots: `Trace`, `SpanEvent`, `DisableTrace`, `TraceRoot`,
  `SpanBuilder` / `SpanRecorder` / `CallStack`, the singletons, and heap size.
- For every retained `Trace`, read its retainer path. A path through `TCP`, `Http2Stream`
  or `Timeout` to `Symbol(kResourceStore)` means an agent resource holds a request's store.
- Pass: counts stay bounded, heap size stays flat, no `Trace` is held by an agent resource.
- Report it in the format of the 1.4.4 release issue comment (#549): environment, load,
  object count table per snapshot, findings, conclusion.

### Compatibility

- The Node.js versions in `package.json` `engines` and the frameworks the change touches.

## Report

- One line per scenario: PASS or FAIL, the scenario, the evidence (command, output,
  received data). Base and change branch side by side.
- Then the environment: worktree, commit, Node.js version, app, load.
- Post the report as a comment on the PR under test. When QA runs before the PR exists,
  post it right after the PR is created.

## Cleanup

- No app, collector or load process is left after QA.
- Heap snapshot files are removed unless the developer asks to keep them.

Files in this skill

  • SKILL.md4.7 KB
  • apps/calls.js5.2 KB
  • apps/express.js3.3 KB
  • apps/grpc-proxy.js5.5 KB
  • apps/koa.js3.2 KB
  • apps/nextjs/next.config.js20 B
  • apps/nextjs/package.json82 B
  • apps/nextjs/pages/api/call-both.js219 B
  • apps/nextjs/pages/api/call-express-abort.js201 B
  • apps/nextjs/pages/api/call-express-databases.js179 B
  • apps/nextjs/pages/api/call-express-fetch-fail.js180 B
  • apps/nextjs/pages/api/call-express-then-throw.js200 B
  • apps/nextjs/pages/api/call-express-throw.js175 B
  • apps/nextjs/pages/api/call-express.js169 B
  • apps/nextjs/pages/api/call-koa-abort.js191 B
  • apps/nextjs/pages/api/call-koa-databases.js169 B
  • apps/nextjs/pages/api/call-koa-fetch-fail.js170 B
  • apps/nextjs/pages/api/call-koa-then-throw.js190 B
  • apps/nextjs/pages/api/call-koa-throw.js165 B
  • apps/nextjs/pages/api/call-koa.js159 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.