Skip to content

[CI] Refactor testsreporter tool #13411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 7, 2025
Merged

Conversation

mrodm
Copy link
Collaborator

@mrodm mrodm commented Apr 3, 2025

Proposed commit message

This PR applies the following changes into the testsreporter tool:

  • Add verbose mode
  • Remove some unused fields in tests and other functions
  • Build the common data in its own structs (errorLinks and dataError) to avoid duplication.

Author's Checklist

How to test this PR locally

# generate at least 2 o 3 jUnit failures

# Issues for each test
DRY_RUN=true CI_MAX_TESTS_REPORTED=10 BUILDKITE_BUILD_URL=https://buildkite.com/elastic/integrations/builds/20643 SERVERLESS=false STACK_VERSION=9.0.0-SNAPSHOT TESTSREPORTER_VERBOSE_MODE_ENABLED=true mage -v ReportFailedTests ./build/test-results

# Global issue for all test
DRY_RUN=true CI_MAX_TESTS_REPORTED=1 BUILDKITE_BUILD_URL=https://buildkite.com/elastic/integrations/builds/20643 SERVERLESS=false STACK_VERSION=9.0.0-SNAPSHOT TESTSREPORTER_VERBOSE_MODE_ENABLED=true mage -v ReportFailedTests ./build/test-results

Related issues

@mrodm mrodm self-assigned this Apr 3, 2025
@mrodm mrodm changed the title Refactor testsreporter tool [CI] Refactor testsreporter tool Apr 3, 2025
@elastic-vault-github-plugin-prod
Copy link

elastic-vault-github-plugin-prod bot commented Apr 3, 2025

🚀 Benchmarks report

Package cloud_security_posture 👍(1) 💚(0) 💔(1)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
vulnerabilities 250000 166666.67 -83333.33 (-33.33%) 💔

To see the full report comment with /test benchmark fullreport

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @mrodm

@mrodm mrodm marked this pull request as ready for review April 3, 2025 14:36
@mrodm mrodm requested a review from a team as a code owner April 3, 2025 14:36
@mrodm mrodm merged commit ebb60b4 into elastic:main Apr 7, 2025
7 checks passed
@mrodm mrodm deleted the refactor_testsreporter_tool branch April 7, 2025 09:06
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