Skip to content

Modify output data for ease of use in visualisations#37

Merged
lwr20 merged 9 commits intoprojectcalico:mainfrom
lwr20:lwr-visualisations
Feb 10, 2026
Merged

Modify output data for ease of use in visualisations#37
lwr20 merged 9 commits intoprojectcalico:mainfrom
lwr20:lwr-visualisations

Conversation

@lwr20
Copy link
Member

@lwr20 lwr20 commented Feb 6, 2026

  • Output a junit file for CI to show if JUNIT_REPORT_FILE is set
  • Output RELEASE_STREAM in ClusterDetails if present as an env var, so kibana visualisations can filter using it
  • Defensive namespace cleanups if tests fail
  • Downgrade expected tcpdump context timeouts from Error to Debug
  • if tests fail, don't stop running the test set

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds JUnit XML report generation and improves error handling to allow benchmark tests to continue running when individual tests fail. It also enhances output data for use in visualizations by adding timestamped output files and release stream tracking.

Changes:

  • Added JUnit XML report generation capability with comprehensive test coverage
  • Modified error handling from fatal exits to error logging with continuation, allowing all configured tests to run even when some fail
  • Added timestamped output file naming for results and logs in run.sh
  • Added ReleaseStream field to cluster details for better visualization filtering

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
run.sh Adds JUnit report environment variable, pipes output to timestamped log files, and renames results/junit files with timestamps
pkg/junit/junit.go New package implementing JUnit XML report generation from benchmark results
pkg/junit/junit_test.go Comprehensive unit tests for JUnit report generation
pkg/config/config.go Adds JUnitReportFile configuration option
pkg/cluster/cluster.go Adds ReleaseStream field and removes unused retry import
cmd/benchmark.go Changes fatal errors to non-fatal, adds cleanup before tests, and generates JUnit reports after each test
.gitignore Adds patterns for timestamped output files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lwr20 lwr20 force-pushed the lwr-visualisations branch from 36fa88b to 32e3415 Compare February 6, 2026 11:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,345 @@
// Copyright (c) 2026 Tigera, Inc. All rights reserved.

// Licensed under the Apache License, Version 2.0 (the "License");

Choose a reason for hiding this comment

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

Do we need to call it Apache v2?
This project is public but we have not explicitly called it out as open source yet.

Copy link

@sujeet-kr sujeet-kr left a comment

Choose a reason for hiding this comment

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

LGTM but for one nit.

@@ -1,5 +1,7 @@
#!/bin/bash
set -ex
set -o pipefail

Choose a reason for hiding this comment

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

nit: maybe we can combine both line 2 and 3 to be

Suggested change
set -o pipefail
set -exo pipefail

Choose a reason for hiding this comment

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

Will we be using the junit reports to upload to lens later or something else?

Copy link
Member Author

Choose a reason for hiding this comment

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

Tiger-bench jobs will run as part of standard e2e jobs.

So yes, they'll be uploaded to Lens, and also show in the CI tool "tests" view.

Copy link

@Glen-Tigera Glen-Tigera left a comment

Choose a reason for hiding this comment

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

LGTM

@lwr20 lwr20 merged commit 101b2d6 into projectcalico:main Feb 10, 2026
6 checks passed
@lwr20 lwr20 deleted the lwr-visualisations branch February 10, 2026 19:39
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.

4 participants