Skip to content

Conversation

NutsaB
Copy link
Contributor

@NutsaB NutsaB commented Aug 18, 2025

Proposed changes

  • Format and add Agent v3 integration test results to QE Grafana dashboard using Promtail.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@NutsaB NutsaB self-assigned this Aug 18, 2025
@NutsaB NutsaB requested a review from a team as a code owner August 18, 2025 11:38
@github-actions github-actions bot added the chore Pull requests for routine tasks label Aug 18, 2025
@oCHRISo oCHRISo added the v3.x Issues and Pull Requests related to the major version v3 label Aug 19, 2025
@NutsaB NutsaB changed the title [DRAFT] Push v3 results to QE grafana dashboard Push v3 results to QE grafana dashboard Aug 22, 2025
@@ -32,19 +33,22 @@ func (s *AuxiliaryTestSuite) SetupSuite() {
t := s.T()
// Expect errors in logs should be false for recconnection tests
// For now for these test we will skip checking the logs for errors
slog.Info("starting auxiliary command server tests")
Copy link
Contributor

Choose a reason for hiding this comment

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

would t.Log() work instead of using slog for these or does the dashbaord need them to be slog ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or is there a way to have the test Suite handle the the log message in the setup so its not needed for every test ?

set -euo pipefail

# Check if required arguments are provided
if [ $# -lt 3 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [ $# -lt 3 ]; then
if [ "$#" -ne 3 ]; then


# Validate input file exists
if [ ! -f "$INPUT_FILE" ]; then
echo "Error: Input file $INPUT_FILE does not exist."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "Error: Input file $INPUT_FILE does not exist."
echo "Error: Input file not found: $INPUT_FILE"

fi

format_log() {
local line="$1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be local?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks v3.x Issues and Pull Requests related to the major version v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants