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

run automation throw error 'no such file or directory' in che-plugin-registry #19997

Closed
zWingz opened this issue Jun 18, 2021 · 12 comments
Closed
Assignees
Labels
area/plugin-registry kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. sprint/current
Milestone

Comments

@zWingz
Copy link

zWingz commented Jun 18, 2021

Describe the bug

when i run automation, it throw error 'no such file or directory'

image

che-theia-openshify-auth@0.0.1 does not have package.json

image

@zWingz zWingz added the kind/bug Outline of a bug - must adhere to the bug report template. label Jun 18, 2021
@zWingz zWingz changed the title che-plugin-registry throw error 'no such file or directory' for run automation throw error 'no such file or directory' in che-plugin-registry Jun 18, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jun 18, 2021
@ibuziuk ibuziuk added area/plugin-registry severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jun 21, 2021
@ibuziuk
Copy link
Member

ibuziuk commented Jun 21, 2021

@ericwill could you please take a look?

@ericwill
Copy link
Contributor

@zWingz can you please provide the steps you ran to reproduce this issue?

@zWingz
Copy link
Author

zWingz commented Jun 22, 2021

@ericwill

  • cd tools/automation
  • node ./lib/check-plugin-updates.js

image

@ericwill
Copy link
Contributor

ericwill commented Jun 24, 2021

@ericwill

* `cd tools/automation`

* `node ./lib/check-plugin-updates.js`

image

This isn't meant to be run by users, it's for generating a nightly report about the update status of plugins in the plugin registry. Are you trying to run the build script instead?

@eriawan
Copy link

eriawan commented Jun 24, 2021

@zWingz

@eriawan
@ericwill

  • cd tools/automation
  • node ./lib/check-plugin-updates.js

Just a humble reminder, could you update your comment so the next conversation will not quote my name? I think you mean ericwill, not me.

Cheers! 🙂

@benoitf
Copy link
Contributor

benoitf commented Jun 24, 2021

I've updated the comments thx for the notice

@zWingz
Copy link
Author

zWingz commented Jun 25, 2021

@ericwill

* `cd tools/automation`

* `node ./lib/check-plugin-updates.js`

image

This isn't meant to be run by users, it's for generating a nightly report about the update status of plugins in the plugin registry. Are you trying to run the build script instead?

yes, i know it is to generate a report about the update status of plugins. but it seem not work. Should I run it in another way ?

@ericwill
Copy link
Contributor

Seems you are correct, it is a bug. Thanks for the report, we'll take a look.

@ericwill ericwill mentioned this issue Jun 30, 2021
22 tasks
@svor svor added this to the 7.34 milestone Jul 8, 2021
@vitaliy-guliy
Copy link
Contributor

vitaliy-guliy commented Jul 13, 2021

@zWingz how do you run the script exactly?
Is it in the container or on your local machine?
(seems the image does not contain node at all)
When I try to run it by hands, I always get the following

$ node ./lib/check-plugin-updates.js
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'fs-extra'
Require stack:
- /home/vitaliy/projects/automation-issues/che-plugin-registry/tools/automation/lib/check-plugin-updates.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/vitaliy/projects/automation-issues/che-plugin-registry/tools/automation/lib/check-plugin-updates.js:13:12)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/vitaliy/projects/automation-issues/che-plugin-registry/tools/automation/lib/check-plugin-updates.js'
  ]
}

@zWingz
Copy link
Author

zWingz commented Jul 14, 2021

@vitaliy-guliy I run the script on my local machine. you should run yarn node ./lib/check-plugin-updates.js because it use yarn@2 https://yarnpkg.com/cli/node

@vitaliy-guliy
Copy link
Contributor

vitaliy-guliy commented Jul 15, 2021

@vitaliy-guliy I run the script on my local machine. you should run yarn node ./lib/check-plugin-updates.js because it use yarn@2 https://yarnpkg.com/cli/node

Thanks.
We will re-create the tag, this should will fix the issue.

@vitaliy-guliy
Copy link
Contributor

vitaliy-guliy commented Jul 16, 2021

che-incubator/che-theia-openshift-auth@0.0.1 is updated, the script is running wo errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin-registry kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. sprint/current
Projects
None yet
Development

No branches or pull requests

8 participants