-
Notifications
You must be signed in to change notification settings - Fork 73
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
Core: Generate xUnit Reports for e2e tests #962
Open
sawood14012
wants to merge
36
commits into
codeready-toolchain:master
Choose a base branch
from
sawood14012:add-reporting
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
bba8838
added a way to generate reports
sawood14012 754a54b
install go-unit-report
sawood14012 45853c2
Merge branch 'master' into add-reporting
sawood14012 b62d260
Merge branch 'codeready-toolchain:master' into add-reporting
sawood14012 994ee26
check and install go-junit-report
sawood14012 9a4f036
another try
sawood14012 3608890
another try 2
sawood14012 cfc77de
add another path
sawood14012 ba52cf0
changed the base image
sawood14012 89aa8f9
Merge branch 'master' into add-reporting
sawood14012 54d88be
another try with path
sawood14012 66d7085
try again with different base
sawood14012 5e78253
Update make/test.mk
sawood14012 dd88f5b
Merge branch 'master' into add-reporting
sawood14012 c6b6145
added path
sawood14012 38e2527
Update make/test.mk
sawood14012 1261cef
Update test.mk
sawood14012 c4c1e1f
Merge branch 'master' into add-reporting
sawood14012 c566e6c
remove check go-junit-report
sawood14012 395097d
reinstall before trigger
sawood14012 8f42fb8
Update make/test.mk
sawood14012 bb08a5c
Merge branch 'master' into add-reporting
sawood14012 bd89da5
add metrics report
sawood14012 b6edfad
tidy up
sawood14012 a176b82
Revert Dockerfile change
sawood14012 1202053
Merge branch 'master' into add-reporting
sawood14012 1162d6d
Merge branch 'master' into add-reporting
sawood14012 da34df6
move the binary to /tmp
sawood14012 40c634c
run only on openshift ci
sawood14012 9768327
run only on openshift ci
sawood14012 1ecbfe3
Fix Pipe everyting
sawood14012 113cd51
Merge branch 'master' into add-reporting
sawood14012 466d6a5
Merge branch 'master' into add-reporting
sawood14012 0438d14
move test output to /tmp
sawood14012 0519d8e
move test output to /tmp 2
sawood14012 8732398
generate rp if failed
sawood14012 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi:latest as build-tools | ||
FROM registry.access.redhat.com/ubi8/go-toolset:1.20.12-5.1713833129 as build-tools | ||
|
||
LABEL maintainer "Devtools <[email protected]>" | ||
LABEL author "Devtools <[email protected]>" | ||
|
@@ -8,12 +8,13 @@ ENV LANG=en_US.utf8 \ | |
GOCACHE=/tmp/.cache \ | ||
PATH=$PATH:$GOPATH/bin \ | ||
GIT_COMMITTER_NAME=devtools \ | ||
[email protected] \ | ||
GOLANG_VERSION=go1.20.11 \ | ||
GOLANG_SHA256=ef79a11aa095a08772d2a69e4f152f897c4e96ee297b0dc20264b7dec2961abe | ||
[email protected] | ||
|
||
ARG GO_PACKAGE_PATH=github.com/codeready-toolchain/toolchain-e2e | ||
|
||
# Switch to root user to install packages | ||
USER root | ||
|
||
RUN yum install -y \ | ||
findutils \ | ||
git \ | ||
|
@@ -27,20 +28,22 @@ RUN yum install -y \ | |
gcc \ | ||
&& yum clean all | ||
|
||
WORKDIR /tmp | ||
# Switch back to the default user | ||
USER 1001 | ||
|
||
# download, verify and install golang | ||
ENV PATH=$PATH:/usr/local/go/bin | ||
RUN curl -Lo ${GOLANG_VERSION}.linux-amd64.tar.gz https://dl.google.com/go/${GOLANG_VERSION}.linux-amd64.tar.gz \ | ||
&& echo "${GOLANG_SHA256} ${GOLANG_VERSION}.linux-amd64.tar.gz" > ${GOLANG_VERSION}.linux-amd64.sha256 \ | ||
&& sha256sum -c ${GOLANG_VERSION}.linux-amd64.sha256 \ | ||
&& tar xzf ${GOLANG_VERSION}.linux-amd64.tar.gz \ | ||
&& tar -C /usr/local -xzf ${GOLANG_VERSION}.linux-amd64.tar.gz \ | ||
&& rm -f ${GOLANG_VERSION}.linux-amd64.tar.gz \ | ||
&& go version | ||
WORKDIR /tmp | ||
|
||
RUN mkdir -p ${GOPATH}/src/${GO_PACKAGE_PATH}/ | ||
|
||
# Install the go-junit-report package | ||
RUN go install github.com/jstemmer/go-junit-report/v2@latest | ||
|
||
# Ensure the installed Go package is in the PATH | ||
ENV PATH=$PATH:$GOPATH/bin | ||
|
||
# Verify the installation | ||
RUN go-junit-report --version | ||
|
||
WORKDIR ${GOPATH}/src/${GO_PACKAGE_PATH} | ||
|
||
ENTRYPOINT [ "/bin/bash" ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you cannot use the pipe for the whole output; otherwise, we will lose the content/output of the tests when running it locally as well as in openshift-ci