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

Updated oc-test-happy-path.sh according to new test scripts in "Che" project #1641

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

nallikaea
Copy link
Contributor

@nallikaea nallikaea commented Mar 20, 2023

What does this PR do?

According to task #22043 test scripts were updated, necessary changes added to this repository.
PR: #22052

The old npm script "test-empty-workspace-devworkspace-happy-path-code" runs one test spec file - "EmptyWorkspace.spec.ts" from the test directory and uses hard-coded mocha config.
It was replaced with "test-all-devfiles" which uses new dynamic mocha config and will run the same file if variable "USERSTORY=EmptyWorkspace" or all test specs in the test directory if variable not set.

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

How to test this PR?

Run happy-pass PR check.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

…oject #22043

Signed-off-by: mdolhalo <mdolhalo@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Mar 20, 2023

Hi @nallikaea. Thanks for your PR.

I'm waiting for a eclipse-che member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link

openshift-ci bot commented Mar 20, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nallikaea

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tolusha
Copy link
Contributor

tolusha commented Mar 20, 2023

@nallikaea
Could you describe what test-all-devfiles is about?

@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Merging #1641 (0ba44f6) into main (239b536) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1641      +/-   ##
==========================================
- Coverage   57.95%   57.92%   -0.03%     
==========================================
  Files          70       70              
  Lines        8220     8224       +4     
==========================================
  Hits         4764     4764              
- Misses       3136     3140       +4     
  Partials      320      320              

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nallikaea
Copy link
Contributor Author

@tolusha sure, description updated

@tolusha
Copy link
Contributor

tolusha commented Mar 20, 2023

@nallikaea

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/eclipse-che_che-operator/1641/pull-ci-eclipse-che-che-operator-main-v12-devworkspace-happy-path/1637790262698708992

/tmp/e2e/node_modules/mocha/lib/cli/config.js:80
    throw createUnparsableFileError(
    ^
Error: Unable to read/parse mocha-all-devfiles-.json: Error: ENOENT: no such file or directory, open 'mocha-all-devfiles-.json'
    at createUnparsableFileError (/tmp/e2e/node_modules/mocha/lib/errors.js:514:13)
    at exports.loadConfig (/tmp/e2e/node_modules/mocha/lib/cli/config.js:80:11)
    at loadRc (/tmp/e2e/node_modules/mocha/lib/cli/options.js:162:21)
    at loadOptions (/tmp/e2e/node_modules/mocha/lib/cli/options.js:234:20)
    at Object.<anonymous> (/tmp/e2e/node_modules/mocha/bin/mocha:27:14)
    at Module._compile (node:internal/modules/cjs/loader:1191:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'ERR_MOCHA_UNPARSABLE_FILE'

@nallikaea
Copy link
Contributor Author

@nallikaea

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/eclipse-che_che-operator/1641/pull-ci-eclipse-che-che-operator-main-v12-devworkspace-happy-path/1637790262698708992

/tmp/e2e/node_modules/mocha/lib/cli/config.js:80
    throw createUnparsableFileError(
    ^
Error: Unable to read/parse mocha-all-devfiles-.json: Error: ENOENT: no such file or directory, open 'mocha-all-devfiles-.json'
    at createUnparsableFileError (/tmp/e2e/node_modules/mocha/lib/errors.js:514:13)
    at exports.loadConfig (/tmp/e2e/node_modules/mocha/lib/cli/config.js:80:11)
    at loadRc (/tmp/e2e/node_modules/mocha/lib/cli/options.js:162:21)
    at loadOptions (/tmp/e2e/node_modules/mocha/lib/cli/options.js:234:20)
    at Object.<anonymous> (/tmp/e2e/node_modules/mocha/bin/mocha:27:14)
    at Module._compile (node:internal/modules/cjs/loader:1191:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'ERR_MOCHA_UNPARSABLE_FILE'

thank you, @tolusha. this is expected result, because PR eclipse-che/che#22052 has not merged yet

@tolusha
Copy link
Contributor

tolusha commented Mar 21, 2023

/retest

@tolusha
Copy link
Contributor

tolusha commented Mar 21, 2023

/retest

4 similar comments
@tolusha
Copy link
Contributor

tolusha commented Mar 21, 2023

/retest

@nallikaea
Copy link
Contributor Author

/retest

@tolusha
Copy link
Contributor

tolusha commented Mar 21, 2023

/retest

@tolusha
Copy link
Contributor

tolusha commented Mar 22, 2023

/retest

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Mar 22, 2023

@nallikaea : it seems there is a mistake in https://github.com/eclipse/che/blame/main/tests/e2e/configs/sh-scripts/initDevfileTests.sh#L23 - redundant exit 1.

Also, it's not clear why $TS_SELENIUM_EDITOR is empty when execute "initDevfileTests.sh".

@ScrewTSW, @musienko-maxim: cc

@nallikaea
Copy link
Contributor Author

eclipse-che/che#22084

fix merged

@nallikaea
Copy link
Contributor Author

/retest

@nallikaea
Copy link
Contributor Author

/retest

@nallikaea
Copy link
Contributor Author

@tolusha @dmytro-ndp @musienko-maxim
ci/prow/v12-devworkspace-happy-path — Job succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants