Skip to content
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

[chore] tweak junit.xml upload #12001

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ankitpatel96
Copy link
Contributor

@ankitpatel96 ankitpatel96 commented Dec 31, 2024

Description

This PR tweaks the output junit test files introduced in #11963.
It introduces underscores as a delimiter, adds the architecture to name, and add test file outputs to arm and windows builds.

Testing

Hopefully just these unit tests. For some reason, the arm tests aren't running, and I'm not sure why.

Copy link

codecov bot commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.67%. Comparing base (ffcef93) to head (ed92bb7).
Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12001      +/-   ##
==========================================
+ Coverage   91.62%   91.67%   +0.05%     
==========================================
  Files         447      455       +8     
  Lines       23739    24038     +299     
==========================================
+ Hits        21751    22037     +286     
- Misses       1613     1629      +16     
+ Partials      375      372       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ankitpatel96 ankitpatel96 changed the title tweak junit.xml upload [chore] tweak junit.xml upload Dec 31, 2024
@ankitpatel96 ankitpatel96 marked this pull request as ready for review January 6, 2025 15:50
@ankitpatel96 ankitpatel96 requested a review from a team as a code owner January 6, 2025 15:50
@@ -141,15 +141,16 @@ jobs:
unittest-matrix:
strategy:
matrix:
runner: [ubuntu-latest]
Copy link
Member

Choose a reason for hiding this comment

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

is this relevant to junit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i use matrix.os later on - and we use matrix.os in other files. I chose to align the different files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reversed this

@songy23 songy23 added the Run ARM label Jan 6, 2025
@songy23
Copy link
Member

songy23 commented Jan 6, 2025

For some reason, the arm tests aren't running, and I'm not sure why.

It needs the Run Arm label (added)

@songy23 songy23 added ci-cd CI, CD, testing, build issues Skip Changelog PRs that do not require a CHANGELOG.md entry Skip Contrib Tests labels Jan 6, 2025
- name: Run Unit Tests
run: |
make -j4 gotest-with-junit
- uses: actions/upload-artifact@v4
with:
name: test-results-${{ runner.os }}-${{ matrix.runner }}-${{ matrix.go-version }}
name: test-results_${{ runner.os }}_${{ matrix.os }}_${{ runner.arch }}_${{ steps.setup-go.outputs.go-version }}
Copy link
Contributor

Choose a reason for hiding this comment

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

wont this result in duplicated os name in the name string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sort of - not quite. Here's what the artifacts look like -
test-results_Linux_ubuntu-latest_X64_1.22.10
so the runner.os is Linux, Macos, etc, and the matrix.os is what we use to request a runner - so ubuntu-latest in this particular example. I captured both since technically one day we may test against different Linux distros

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed my mind. If we ever want to do this we can - for now I eliminated the matrix.os variable for simplicity. Plus the information is pretty duplicated and unspecific

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd CI, CD, testing, build issues Run ARM Skip Changelog PRs that do not require a CHANGELOG.md entry Skip Contrib Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants