-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added Eclipse Che typescript E2E functional tests PR check #22377
Conversation
c108674
to
d5e4a86
Compare
06cb615
to
e3db5f6
Compare
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.
LGTM.
Do you have any example run of SmokeTest suite?
.github/workflows/next-build.yml
Outdated
@@ -7,7 +7,7 @@ | |||
# SPDX-License-Identifier: EPL-2.0 | |||
# | |||
|
|||
name: build-next | |||
name: Build and push Next Che E2E image to quai.io |
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.
build-next
is unified name across Eclipse Che component repos, e.g. https://github.com/eclipse-che/che-server/blob/main/.github/workflows/next-build.yml
So, I would keep it untouched.
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.
it is just a name which will be shown in Actions tab and has no effect on build actions:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#name
I believe it should be clear what has built, why and where was pushed from this name. You don`t need to go through all workflow code to understand that.
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.
I see.
My point was that the this eclipse/che repo is not dedicated to e2e tests (looking at the root folder files), so I was not sure if it's eligible to modify build-next
action.
Moreover - this action has outdated code which we don't need anymore:
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
Anyway, we can consider movement to dedicated repo https://github.com/eclipse-che/che-tests
BTW: there is a TYPO in name: quai.io
> quay.io
.
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.
Fixed
yes: https://github.com/eclipse/che/actions/runs/5624111804 as I wrote in description I got the error '0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..', you can check logs in artifacts. It because low resources on VM (said insufficient cpu) |
- name: Deploy Che | ||
run: | | ||
# | ||
# load Che-Code image into minikube |
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.
It has to be next version for Eclipse Che Next (--channel=next
in line 57 above).
Therefore, correct image is address: quay.io/che-incubator/che-code:next .
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.
we tested that test commands still works correctly, not our product. I think we can use stable version here.
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.
It's about checking PRs into the main
branch, isn't it?
And main
branch is dedicated to testing Eclipse Che Next.
So, it's reasonable to run PR check against Eclipse Che Next.
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.
okay
cd tests/e2e | ||
docker build -t quay.io/eclipse/che-e2e:"${{ env.pr_number }}" -f build/dockerfiles/Dockerfile . | ||
|
||
- name: Run Empty Workspace UI test from che-e2e container |
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.
IMHO, it make sense to run SmokeTest instead - it covers project import additionally https://github.com/eclipse/che/blob/main/tests/e2e/specs/SmokeTest.spec.ts
Also, there is a plan to run SmokeTest in PR check of Eclipse Che repos:
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.
Please, read my description
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.
- we check that changes not broke e2e test functionality, commands from packege.json. We don`t check "che" here.
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.
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.
Let's comment it somewhere in the repo what exactly does PR check do?
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.
Added
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.
Looks commonly good with a few non-critical notices.
da9e622
to
d6f700d
Compare
Signed-off-by: mdolhalo <mdolhalo@redhat.com>
What does this PR do?
Resolve issue #22044
Screenshot/screencast of this PR
What issues does this PR fix or reference?
Resolve issue #22044
How to test this PR?
https://github.com/eclipse/che/actions/runs/5629951250
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.