Skip to content

Conversation

@Vampire
Copy link
Member

@Vampire Vampire commented Jun 10, 2023

No description provided.

@Vampire
Copy link
Member Author

Vampire commented Jun 10, 2023

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Jun 10, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.08%. Comparing base (caec02d) to head (d85e850).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1696   +/-   ##
=========================================
  Coverage     82.07%   82.08%           
- Complexity     4754     4756    +2     
=========================================
  Files           465      465           
  Lines         14872    14879    +7     
  Branches       1877     1877           
=========================================
+ Hits          12206    12213    +7     
  Misses         1978     1978           
  Partials        688      688           
Files with missing lines Coverage Δ
...va/org/spockframework/runtime/SpecInfoBuilder.java 99.27% <100.00%> (+0.01%) ⬆️
...rg/spockframework/runtime/model/IterationInfo.java 95.45% <100.00%> (+0.21%) ⬆️
...ava/org/spockframework/runtime/model/NodeInfo.java 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Vampire Vampire force-pushed the unique-node-ids branch 3 times, most recently from 595c6da to 3cacaf6 Compare August 21, 2023 16:15
@leonard84
Copy link
Member

What is the use-case? And shouldn't we have something that is stable across invocations, otherwise it's use is severely limited.

@Vampire
Copy link
Member Author

Vampire commented Aug 21, 2023

What is the use-case?

Well, everytime you need a unique ID during the test.
One use-case where I needed it is for example to put it as thread context map entry to log messages, so that you can identify log messages belonging to an iteration and test logging behavior in a multi-threaded SUT.

And shouldn't we have something that is stable across invocations, otherwise it's use is severely limited.

Well, the intended use by me was during one test run to relate things, without needing to build a unique ID yourself.
And for spec info, feature info and iteration info, it actually is stable across invocations, just not for "other" nodes.
Others being data provider info, field info, method info and parameter info.

Not sure whether we need stable unique ids for those. :-/

@Vampire
Copy link
Member Author

Vampire commented Aug 22, 2023

Also, that they are stable across invocations for spec, feature, and iteration info is mainly a side-effect. The goal was to have something descriptive that can the also easily be readable for example in the log output where I intend to use it. :-D

@Vampire Vampire force-pushed the unique-node-ids branch 2 times, most recently from 82329d4 to 9e20670 Compare September 16, 2023 10:37
@Vampire Vampire force-pushed the unique-node-ids branch 2 times, most recently from 0a54c3f to 53f0557 Compare September 18, 2023 23:41
@Vampire Vampire force-pushed the unique-node-ids branch 3 times, most recently from 5c9ac8c to 02aff00 Compare October 14, 2023 11:36
@Vampire Vampire force-pushed the unique-node-ids branch 3 times, most recently from 6e21a45 to b3d7dbb Compare November 7, 2023 00:29
@Vampire Vampire force-pushed the unique-node-ids branch 4 times, most recently from 2caee62 to 6c400f0 Compare November 13, 2023 00:50
@Vampire Vampire force-pushed the unique-node-ids branch 4 times, most recently from 0422e2b to d6e3be7 Compare November 30, 2023 13:08
@Vampire Vampire force-pushed the unique-node-ids branch 2 times, most recently from 06b7338 to df62f37 Compare March 7, 2025 13:45
@Vampire Vampire force-pushed the unique-node-ids branch 3 times, most recently from 00a4141 to 307e4dc Compare April 27, 2025 23:22
@Vampire Vampire force-pushed the unique-node-ids branch from 307e4dc to 888f6ee Compare May 19, 2025 14:03
@Vampire Vampire force-pushed the unique-node-ids branch 3 times, most recently from a01553f to f410524 Compare June 5, 2025 14:46
@Vampire Vampire force-pushed the unique-node-ids branch 14 times, most recently from 46743f5 to c502d9c Compare October 25, 2025 17:25
@Vampire Vampire force-pushed the unique-node-ids branch 3 times, most recently from 4d3b222 to a961c7c Compare October 29, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants