Skip to content

Commit b072b17

Browse files
ArthurSensmx-psi
andauthored
Introduce issuegenerator to open issues when tests fail on main (#38177)
#### Description This PR extends the current unit test workflow to download the artifacts we started uploading at #37941. Further docs can be found here: https://github.com/actions/download-artifact I'm also moving files around to make sure we start small. Generating issues only for the `hostmetricsreceiver` component. Once we notice that is working well I plan to raise another PR to cover all components of contrib <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Related to #36761 --------- Signed-off-by: Arthur Silva Sens <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]>
1 parent 8b594ea commit b072b17

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build-and-test.yml

+24
Original file line numberDiff line numberDiff line change
@@ -648,3 +648,27 @@ jobs:
648648
return
649649
}
650650
}
651+
652+
flakytests-generate-issues:
653+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
654+
runs-on: ubuntu-24.04
655+
needs: [unittest-matrix]
656+
steps:
657+
- uses: actions/checkout@v4
658+
- uses: actions/download-artifact@v4
659+
with:
660+
merge-multiple: true
661+
pattern: test-results-*
662+
path: ./internal/tools/testresults/
663+
- name: Install Tools
664+
run: make install-tools
665+
- name: Generate Issues
666+
run: |
667+
# We want to start by generating issues of a single component
668+
# As we mature the usage of issuegenerator, we can extend it to
669+
# generate issues for multiple components.
670+
#
671+
# We'll start with the hostmetricsreceiver.
672+
mkdir -p ./internal/tools/testresults/hostmetricsreceiver
673+
mv ./internal/tools/testresults/g.yxqyang.asia-open-telemetry-opentelemetry-collector-contrib-receiver-hostmetricsreceiver-junit.xml ./internal/tools/testresults/hostmetricsreceiver/
674+
./tools/issuegenerator -path ./internal/tools/testresults/hostmetricsreceiver/

0 commit comments

Comments
 (0)