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

'Try it' buttons on Che Theia PR are not working #20099

Closed
1 task done
RomanNikitenko opened this issue Jul 8, 2021 · 11 comments
Closed
1 task done

'Try it' buttons on Che Theia PR are not working #20099

RomanNikitenko opened this issue Jul 8, 2021 · 11 comments
Assignees
Labels
area/qe kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current

Comments

@RomanNikitenko
Copy link
Member

RomanNikitenko commented Jul 8, 2021

Describe the bug

I'm not able to start a workspace using Try it buttons.
The error is:

Cause: Devfile schema validation failed. Error: (/metadata):The value must be of object type, but actual type is null.(/generateName):The object must not have a property whose name is "generateName".(/projects/0):The object must have a property whose name is "source".(/source):The object must not have a property whose name is "source".(/type):The object must not have a property whose name is "type".(/location):The object must not have a property whose name is "location".(/branch):The object must not have a property whose name is "branch".(/components/0):The object must have a property whose name is "type".

Che version

  • nightly

Steps to reproduce

Try to use Try it buttons on a PR to che-theia

The URL is like the following:
https://workspaces.openshift.com/f?url=https://raw.githubusercontent.com/chepullreq4/pr-check-files/master/che-theia/pr-1161/simple/che-theia-simple-devfile.yaml

Screenshots

try_it

try_it_error

@RomanNikitenko RomanNikitenko added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 8, 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 Jul 8, 2021
@sleshchenko sleshchenko added dogfooding severity/P1 Has a major impact to 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 Jul 12, 2021
@sleshchenko
Copy link
Member

As far as I see it happens due broken yaml:

> curl https://raw.githubusercontent.com/chepullreq4/pr-check-files/master/che-theia/pr-1161/simple/che-theia-simple-devfile.yaml

apiVersion: 1.0.0
metadata:
generateName: pr-che_theia-1161-
projects:
- name: pr-1161
source:
type: git
location: 'https://github.com/eclipse-che/che-theia.git'
branch: 'dontSetPublicUrlValueToInternalUrlSettings'
components:
- reference: https://raw.githubusercontent.com/chepullreq4/pr-check-files/master/che-theia/pr-1161/simple/che-theia-editor.yaml
type: cheEditor

^ spaces are missing, it should be like:

apiVersion: 1.0.0
metadata:
  generateName: pr-che_theia-1161-
projects:
- name: pr-1161
source:
  type: git
  location: 'https://github.com/eclipse-che/che-theia.git'
  branch: 'dontSetPublicUrlValueToInternalUrlSettings'
components:
- reference: https://raw.githubusercontent.com/chepullreq4/pr-check-files/master/che-theia/pr-1161/simple/che-theia-editor.yaml
  type: cheEditor

I'm not sure who owns chepullreq4/pr-check-files, adding che theia area.

@sleshchenko sleshchenko changed the title 'Try it' buttons are not working 'Try it' buttons on Che Theia PR are not working Jul 12, 2021
@sleshchenko sleshchenko added the area/editor/theia Issues related to the che-theia IDE of Che label Jul 12, 2021
@RomanNikitenko
Copy link
Member Author

I'm not sure who owns chepullreq4/pr-check-files

I'm not sure as well, maybe @dmytro-ndp knows...

@dmytro-ndp
Copy link
Contributor

@RomanNikitenko: Che QE team is responsible for Che Theia PR check on CRW Jenkins including Try it buttons.

@dmytro-ndp dmytro-ndp added area/qe team/che-qe and removed area/editor/theia Issues related to the che-theia IDE of Che labels Jul 12, 2021
@dmytro-ndp dmytro-ndp self-assigned this Jul 12, 2021
@dmytro-ndp
Copy link
Contributor

@sleshchenko: thanks for the root cause analysis!

Small remark: source is projects property and so should be placed at the projects level:

apiVersion: 1.0.0
metadata:
  generateName: pr-che_theia-1161-
projects:
- name: pr-1161
  source:
    type: git
    location: 'https://github.com/eclipse-che/che-theia.git'
    branch: 'dontSetPublicUrlValueToInternalUrlSettings'
components:
- reference: https://raw.githubusercontent.com/chepullreq4/pr-check-files/master/che-theia/pr-1161/simple/che-theia-editor.yaml
  type: cheEditor

@dmytro-ndp
Copy link
Contributor

@RomanNikitenko
Copy link
Member Author

@dmytro-ndp
could you take a look please, I'm able to reproduce the problem again for the test PR without any changes.

The error is:

Failed to resolve a devfile. Error occurred during creation a workspace from devfile located at `https://raw.githubusercontent.com/chepullreq4/pr-check-files/master/che-theia/pr-1049/simple/che-theia-nodejs-devfile.yaml`. Cause: Devfile schema validation failed. Error: (/attributes/persistVolumes):The value must be of string type, but actual type is boolean.

try_it_buttons_errors

@RomanNikitenko
Copy link
Member Author

It looks like the cause of the problem is: #20153
thanks @skabashnyuk for an investigation...

@dmytro-ndp
Copy link
Contributor

@RomanNikitenko : thanks for update.
I am closing an issue then.

@RomanNikitenko
Copy link
Member Author

@dmytro-ndp
according to #20153 (comment) should we reopen the current issue?

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Jul 20, 2021

@RomanNikitenko: "Try it" buttons are linked with devfiles with:

   persistVolumes: false

The correct variant:

  persistVolumes: "false"

Let's reopen an issue and fix the devfile templates.

@dmytro-ndp dmytro-ndp reopened this Jul 20, 2021
@RomanNikitenko
Copy link
Member Author

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

No branches or pull requests

4 participants