Skip to content

Conversation

@scadu
Copy link
Contributor

@scadu scadu commented Nov 21, 2025

Format spans in format expected by Test Engine.

Since details type is changed from string to dict, this could be a breaking change, even though span details previously wouldn't work due to the type mismatch between collector and Test Engine.

@scadu scadu marked this pull request as ready for review November 21, 2025 10:57
Align type with Test Engine, simplify implementation.

Make pylint happy
@scadu scadu force-pushed the fix/span_details_missing branch from d286f98 to 0ea0fa4 Compare November 25, 2025 08:41
Copy link
Contributor

@nprizal nprizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @scadu, thanks for opening the PR. It looks great! I appreciate you adding the codedoc around the expected data structure for span details.

We’re planning to implement validation to prevent the collector from sending invalid span data but we’ll open a separate PR for that.

@scadu scadu changed the title Fix span detail formatting for Test Engine UI Fix span detail format for Test Engine UI Nov 26, 2025
Copy link
Contributor

@nprizal nprizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the validation 💚 . I think we want the detail to be required for sql, http, and annotation. Is that right @gchan @malclocke?

@gchan
Copy link
Contributor

gchan commented Nov 27, 2025

I think we want the detail to be required for sql, http, and annotation

Yep that's correct. Here's the reference which should be up-to-date and correct.
https://buildkite.com/docs/test-engine/test-collection/importing-json#json-test-results-data-reference-span-objects

scadu and others added 3 commits November 27, 2025 08:47
Co-authored-by: Naufan P. Rizal <np.rizal@icloud.com>
@scadu scadu requested a review from nprizal November 27, 2025 08:17
Copy link
Contributor

@nprizal nprizal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@scadu
Copy link
Contributor Author

scadu commented Nov 28, 2025

Thanks for the review @nprizal! I think it should be good to merge now?

@nprizal nprizal merged commit 059f291 into buildkite:main Nov 30, 2025
10 checks passed
@nprizal nprizal mentioned this pull request Dec 1, 2025
@nprizal nprizal changed the title Fix span detail format for Test Engine UI Fix span detail format Dec 1, 2025
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