Skip to content

feat: integrate testrr for CI test reporting#2606

Merged
chmouel merged 1 commit intotektoncd:mainfrom
chmouel:add-testrr-ci-reporting
Mar 26, 2026
Merged

feat: integrate testrr for CI test reporting#2606
chmouel merged 1 commit intotektoncd:mainfrom
chmouel:add-testrr-ci-reporting

Conversation

@chmouel
Copy link
Copy Markdown
Member

@chmouel chmouel commented Mar 25, 2026

Added a script to upload test results to testrr and updated Tekton and GitHub Actions pipelines to capture and report unit and E2E test execution data. Configured pipelines to handle upload failures as non-fatal to ensure CI remains resilient. Added documentation on the required setup for test reporting.

see an example here:
https://testrr.pipelinesascode.com/projects/testrr

📝 Description of the Change

🔗 Linked GitHub Issue

Fixes #

🧪 Testing Strategy

  • Unit tests
  • Integration tests
  • End-to-end tests
  • Manual testing
  • Not Applicable

🤖 AI Assistance

AI assistance can be used for various tasks, such as code generation,
documentation, or testing.

Please indicate whether you have used AI assistance
for this PR and provide details if applicable.

  • I have not used any AI assistance for this PR.
  • I have used AI assistance for this PR.

Important

Slop will be simply rejected, if you are using AI assistance you need to make sure you
understand the code generated and that it meets the project's standards. you
need at least know how to run the code and deploy it (if needed). See
startpaac to make it easy
to deploy and test your code changes.

If the majority of the code in this PR was generated by an AI, please add a Co-authored-by trailer to your commit message.
For example:

Co-authored-by: Claude noreply@anthropic.com

✅ Submitter Checklist

  • 📝 My commit messages are clear, informative, and follow the project's How to write a git commit message guide. The Gitlint linter ensures in CI it's properly validated
  • ✨ I have ensured my commit message prefix (e.g., fix:, feat:) matches the "Type of Change" I selected above.
  • ♽ I have run make test and make lint locally to check for and fix any
    issues. For an efficient workflow, I have considered installing
    pre-commit and running pre-commit install to
    automate these checks.
  • 📖 I have added or updated documentation for any user-facing changes.
  • 🧪 I have added sufficient unit tests for my code changes.
  • 🎁 I have added end-to-end tests where feasible. See README for more details.
  • 🔎 I have addressed any CI test flakiness or provided a clear reason to bypass it.
  • If adding a provider feature, I have filled in the following and updated the provider documentation:
    • GitHub App
    • GitHub Webhook
    • Gitea/Forgejo
    • GitLab
    • Bitbucket Cloud
    • Bitbucket Data Center

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces testrr integration into the CI/CD pipelines to provide enhanced visibility and centralized reporting for unit, coverage, and end-to-end tests. By updating existing Tekton and GitHub Actions configurations and adding a dedicated upload script, the project can now automatically push detailed test results to a testrr instance. A key design choice ensures that any issues with the reporting mechanism do not halt the CI process, maintaining pipeline resilience.

Highlights

  • Test Reporting Integration: Integrated testrr for centralized CI test reporting across Tekton and GitHub Actions.
  • Pipeline Updates: Modified Tekton and GitHub Actions pipelines to capture and upload go test -json output to testrr for unit, coverage, and E2E tests.
  • Resilient CI: Configured testrr upload failures to be non-fatal, ensuring CI pipelines continue to run even if reporting fails.
  • New Upload Script: Introduced hack/upload-testrr.sh to standardize the process of uploading test results.
  • Documentation: Added comprehensive documentation on setting up and configuring testrr for CI test reporting.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/e2e.yaml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request integrates testrr for CI test reporting across Tekton pipelines and GitHub Actions. It introduces a new upload-testrr.sh script to process and upload go test -json output, configures CI workflows to use this script with appropriate environment variables, and updates documentation on the new reporting mechanism. Feedback from the review highlights the unintended removal of the Go race detector flag in Tekton unit tests, a potential issue with tee -a appending to JSON output files in GitHub Actions, and suggests clarifying error messages in the upload-testrr.sh script that incorrectly refer to JUnit files instead of Go test JSON output.

@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 25, 2026

/test go-testing

@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 25, 2026

this worked and generated https://testrr.pipelinesascode.com/projects/pipelinesascode

@chmouel chmouel force-pushed the add-testrr-ci-reporting branch 2 times, most recently from 2ea516e to b866177 Compare March 25, 2026 18:49
@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 25, 2026

/test doc-deployment

pipelinesascode.tekton.dev/on-event: "pull_request"
pipelinesascode.tekton.dev/on-target-branch: "[*]"
pipelinesascode.tekton.dev/on-path-change: "[***/*.go]"
pipelinesascode.tekton.dev/on-path-change: "[***/*.go, .tekton/go.yaml]"
Copy link
Copy Markdown
Member

@zakisk zakisk Mar 25, 2026

Choose a reason for hiding this comment

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

may be adding .tekton/generate-coverage-release.yaml as well??

Copy link
Copy Markdown
Member Author

@chmouel chmouel Mar 25, 2026

Choose a reason for hiding this comment

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

i think it's fine... we need to fix generate-coverage to øn't try to generte since it doesnt work actually, codecov.io hasbt worked for ages on this repo...

Copy link
Copy Markdown
Member

@zakisk zakisk left a comment

Choose a reason for hiding this comment

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

/lgtm

just a small comment

@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 25, 2026

/test go-testing

Added a script to upload test results to testrr and updated Tekton and
GitHub Actions pipelines to capture and report unit and E2E test
execution data. Configured pipelines to handle upload failures as
non-fatal to ensure CI remains resilient. Added documentation on the
required setup for test reporting.

see an example here:
  https://testrr.pipelinesascode.com/projects/testrr

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel force-pushed the add-testrr-ci-reporting branch from b866177 to 1672e61 Compare March 25, 2026 19:22
@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 25, 2026

@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 25, 2026

/test go-testing

@chmouel
Copy link
Copy Markdown
Member Author

chmouel commented Mar 26, 2026

the failure is related to #2612

let's merge this so we can collect

@chmouel chmouel merged commit e40416c into tektoncd:main Mar 26, 2026
41 of 45 checks passed
@chmouel chmouel deleted the add-testrr-ci-reporting branch March 26, 2026 12:46
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.

2 participants