Tickets from a report
Each change in report.md has a link that opens a new issue in your tracker with the change filled in. nk opens nothing and calls no tracker; you file the ticket by following the link.
On this page
The change key #
Every change has a key: nk- and 8 hex digits. It is the same in every run and every build for the same change.
Which requests showed the change is not part of the key, so the same change in another request keeps its ticket. Search your tracker for the key to find an earlier ticket. report.json gives each finding its key.
What a ticket holds #
A ticket holds only text report.md already shows.
The title #
[nk-6f7cf426] VALUE /response/status 200 -> 500 in 0001 GET /api/userThe 0001 numbers the request in the order the compare sent them, starting at 0000, so this is the second one. The report's word for each request is a scenario, defined in Words in a report.
The body #
The body holds:
- the change's line;
- the requests it showed in;
- its key;
- where the full report is. That is the CI run when Nikasa runs in CI (on Jenkins, only when the Jenkins URL is set).
A body is at most 2,000 characters, as long links break in browsers.
What has no ticket #
- Unstable differences, which only some new runs showed. The Changes that show only sometimes section of Reading the report explains them.
- Lines that count nothing. They are listed for information, such as the outside hosts a run reached, and marked
told, never countedin the report.
Which tracker #
Nikasa uses the first one it finds, in this order:
-
--tracker <url>onnk compareornk diff. -
tracker:underx-nk:in the app file, your team's choice checked in:x-nk: host: http://app:8000 tracker: https://linear.app/acme/team/ENG -
A CI that knows its own project. These link on any host:
- GitHub Actions, including GitHub Enterprise Server;
- GitLab CI, including self-managed;
- Azure Pipelines, opening Azure Boards work items.
-
A CI that only knows the checkout's address: CircleCI, Bitbucket Pipelines, Buildkite and Jenkins. They link only when the repository the job checked out is on github.com or gitlab.com. On another host, set
--trackerortracker:.
The address to give #
The host says which tracker it is. Nikasa adds the new-issue page and keeps any query you give, such as ?labels=nk.
| Tracker | Give | The link opens |
|---|---|---|
| GitHub | https:// |
/ |
| GitLab | https:// |
/ |
| Linear | https://, or a link ending in / |
/ |
| Azure DevOps | https:// |
A new Bug; give .../ for another type |
| Jira | https:// |
The ticket text to paste, with its key |
A tracker on your own host needs its kind beside it: tracker_kind: under x-nk:, or --tracker-kind. The kind is one of github, gitlab, linear, azure, jira or jira-link.
Jira #
On Jira, each change gives its key and ticket text to paste, as Jira documents no address for a prefilled new issue.
If you want a link anyway, Jira has an undocumented one, which can change without notice. Set tracker_kind: jira-link, with a tracker: address of this form, using numeric ids and not keys:
https://<site>.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=<project id>&issuetype=<issue type id>With no tracker known #
Nothing fails. Instead:
- each change shows its key;
- one line under the changes says why there are no links and how to have them;
- the ticket text of every change follows, ready to copy.
Tickets change no count and no exit status, with or without --fail-on-change.
Related pages #
- Reading the report: where each change and its key appear.
- The app file: the
trackerandtracker_kindsettings. - Commands: the
--trackerand--tracker-kindflags.
Written for nk 0.3.14. Something wrong or unclear? Write to hello@nikasa.dev.