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

Tap reporting of or1k-tests #92

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Nancy-Chauhan
Copy link
Contributor

@Nancy-Chauhan Nancy-Chauhan commented Aug 4, 2019

Create a Tap Reporting on Jenkins Instance ( https://ci.librecores.org/job/Projects/job/OpenRISC/ ) with the PR (openrisc/or1k-tests#5), which creates a new report.tap with test results written in TAP format.

TapReporting

CC @oleg-nenashev @stffrdhrn

@Nancy-Chauhan
Copy link
Contributor Author

This Pr requires the rebuild of https://hub.docker.com/r/librecores/librecores-ci-openrisc @oleg-nenashev so that it picks up new changes in openrisc/or1k-tests#5

@Nancy-Chauhan
Copy link
Contributor Author

Nancy-Chauhan commented Aug 6, 2019

@stffrdhrn
Copy link
Member

Why does the result show 344 tests? It seems like 43 x 8, what are the 8 different reports? The first instance you had there were just 43.

@Nancy-Chauhan
Copy link
Contributor Author

Nancy-Chauhan commented Aug 6, 2019

@stffrdhrn @oleg-nenashev these are giving results for all parallel jobs , since or1k-tets run for every job so it produces report.tap ( from runtest.sh) for ever job . Earlier I checked with only 1 job on my local Jenkins instance

Copy link

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

The code will need to be moved to the pipeline library then

@stffrdhrn
Copy link
Member

Some suggestions, the file name report.tap is saved to the current directory and the name is not very descriptive. It would be nice to be able to override the name/location. Also it would be good to be able to disable output of this all together when it is not needed.

@Nancy-Chauhan
Copy link
Contributor Author

Nancy-Chauhan commented Aug 11, 2019

Hi @stffrdhrn I am thinking to introduce different parameter for labeling, can you suggest me what labels/description I should go with

@stffrdhrn
Copy link
Member

Please provide suggestions on what you intend to communicate. I am not clear which labelling you mean.

@Nancy-Chauhan
Copy link
Contributor Author

@stffrdhrn I meant that what names I could use for different tap file generated here : https://ci.librecores.org/job/Projects/job/OpenRISC/job/mor1kx/view/change-requests/job/PR-92/2/tapResults/ , so that it is more clear and doesnt look that there are 8 same reports are produced

@stffrdhrn
Copy link
Member

The script has variables to define what to test. The variables are passes in by Jenkins. I suggest use those to define the report .tap name. Just build up the file name in Jenkins and pass it in.


// TAP Plugin is used which adds the support to TAP test result files to Jenkins which can be seen at https://ci.librecores.org/job/Projects/job/OpenRISC/
void tapReporting() {
step([$class: "TapPublisher", testResults: "report.tap"])
Copy link
Member

Choose a reason for hiding this comment

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

The report.tap name is the same for every run. It's hard to tell which report is for which run. Just like you use env vars in dockerrun() we should create a report name that is unique for each test. One thought, is the stage name available in an env var? We could make stage name more meaningful too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @stffrdhrn I am already on it report-cappuccino--feature-immu-none.tap
does this sounds reasonable. Just $PIPELINE $EXTRA_CORE_ARGS paramaters are passed with some modifications

Copy link
Member

Choose a reason for hiding this comment

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

Looks ok. Sorry the comment was stuck in my browser history, I posted on accident this morning.

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