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

Introduce test tiers #21

Merged
merged 9 commits into from
Sep 6, 2023
Merged

Introduce test tiers #21

merged 9 commits into from
Sep 6, 2023

Conversation

aufi
Copy link
Member

@aufi aufi commented Sep 1, 2023

To provide maximum information about the project functionality, tests exections were separated into three tiers (stages) 0,1,2. From core functionality to nice to haves.

Updated github workflows, Makefile targets and README with description.

To provide maximum information about the project functionality,
tests exections were separated into three stages (0,1,2).
From core functionality to nice to haves.

Signed-off-by: Marek Aufart <maufart@redhat.com>
Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi
Copy link
Member Author

aufi commented Sep 1, 2023

Stage1 target depends on #16

@aufi
Copy link
Member Author

aufi commented Sep 1, 2023

@mguetta1 @sshveta @dymurray @fabianvf Hi, please take a look, I think it makes sense split test executions in this repo to stages to have (rock) solid stage 0, solid stage 1 and maybe experimental stage 2. More details are in README and Makefile. I'm interested in your feedback, thanks!

@fabianvf
Copy link

fabianvf commented Sep 1, 2023

@aufi This looks good to me, were there any tests that needed to be dropped or are we at test parity with the old analyzer now?

Copy link
Collaborator

@mguetta1 mguetta1 left a comment

Choose a reason for hiding this comment

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

Thanks @aufi! I added few comments

Makefile Outdated
test-all: test-analysis
# Metrics.
test-metrics:
HUB_BASE_URL="http://${MINIKUBE_IP}/hub" go test -count=1 -v ./metrics/...
Copy link
Collaborator

Choose a reason for hiding this comment

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

@aufi could you please use ginkgo command here to enable relevant test info
HUB_BASE_URL="http://${MINIKUBE_IP}/hub" ginkgo -v ./e2e/metrics/...

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure! Will update once PR #16 gets merged (ginkgo command is not yet included in repo).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, thanks

Makefile Outdated

# Stage1 - all normal features expected to work.
test-stage1:
STAGE1=1 $(MAKE) test-analysis
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it necessary to execute tests included in earlier stage?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question, from my point of view it is no, but I'm happy discuss pros and cons.

Makefile Outdated Show resolved Hide resolved
Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi aufi changed the title Introduce test stages Introduce test tiers Sep 4, 2023
@aufi
Copy link
Member Author

aufi commented Sep 4, 2023

@aufi This looks good to me, were there any tests that needed to be dropped or are we at test parity with the old analyzer now?

@fabianvf We had just few tests from past on analysis (Pathfinder example-1 app and Petclinic). Currently Petclinic w/hazelcast is not included in analysis test - will be added (in one of next PRs).

mguetta1 and others added 2 commits September 5, 2023 08:53
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
Copy link
Collaborator

@mguetta1 mguetta1 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Marek Aufart <maufart@redhat.com>
Signed-off-by: Marek Aufart <maufart@redhat.com>
Signed-off-by: Marek Aufart <maufart@redhat.com>
Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi
Copy link
Member Author

aufi commented Sep 6, 2023

Merging with passing tier0.

@aufi aufi merged commit e4724e6 into konveyor:main Sep 6, 2023
2 of 4 checks passed
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.

None yet

3 participants