StackStorm / StackStorm/st2

st2 trace list does not have the correct execution ID.

Open
#5,563 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

SUMMARY

st2 trace list does not have the correct execution ID. When an execution is made using the trace-tag, in the list of traces "st2 trace list" the execution ID is wrong in the last character, you can see that Stackstorm is adding the last character +1.

Example:
If the id of the execution is 61f98e7f0bd5ceba623a05c6, in the command "st2 trace list" the id of this execution is 61f98e7f0bd5ceba623a05c7

STACKSTORM VERSION

st2 3.6.0.post0, on Python 3.8.10

OS, environment, install method

helm instalation

Steps to reproduce the problem

run commands:

//given
st2 run core.local cmd=date --trace-tag="TEST-TRACE"
st2 run core.local cmd=date --trace-tag="TEST-TRACE"

//when
st2 trace list --trace-tag "TEST-TRACE"

//then
st2 execution get <ID_THAT_TRACE_LIST_SHOWS>

this should work but it doesn't. Because the ID is not the same ID of execution. The stackstorm chaged it adding +1 to the last character of the ID.

Expected Results

The id showing in trace list be correct and be equal of execution ID

Actual Results

The id in trace list is wrong

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the two st2 run core.local cmd=date --trace-tag="TEST-TRACE" commands, then compare the IDs from st2 trace list --trace-tag "TEST-TRACE" with st2 execution get. Trace where the trace list obtains and formats the execution ID; done means the displayed ID exactly matches the execution ID and can be retrieved successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.