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

Simplify the Raw devfile filename check #548

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Simplify the Raw devfile filename check #548

merged 3 commits into from
Sep 6, 2023

Conversation

vinokurig
Copy link
Contributor

@vinokurig vinokurig commented Aug 22, 2023

What does this PR do?

Do not check the Raw devfile file name but check if the url ends with .yaml before using the Raw devfile url resolver.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fixes eclipse-che/che#22368

How to test this PR?

  1. Deploy che with the PR image: quay.io/eclipse/che-server:pr-548
  2. In a public GitHub repository create a custom.yaml file with a simple devfile content:
schemaVersion: 2.2.0
metadata:
  name: test
  1. Copy the Raw file location.
  2. Start a workspace from the raw devfile location

See: workspace starts from the devfile.

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.

Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

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

I had followed test scenario described in PR description and successfully started workspace using factory link to RAW custom.yaml.

At the same time project was empty inside VS Code Editor, end it had been reproduced with che-server:next and Dev Spaces 3.8.0 on Dev Sandbox:
Screenshot from 2023-09-06 10-32-01

So, it seems to be another issue.

@openshift-ci openshift-ci bot removed the lgtm label Sep 6, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 6, 2023

New changes are detected. LGTM label has been removed.

@openshift-ci
Copy link

openshift-ci bot commented Sep 6, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dmytro-ndp, ibuziuk, tolusha, vinokurig

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

@openshift-ci
Copy link

openshift-ci bot commented Sep 6, 2023

@vinokurig: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v12-github-with-pat-setup-flow f13bde0 link true /test v12-github-with-pat-setup-flow
ci/prow/v12-gitlab-no-pat-oauth-flow f13bde0 link true /test v12-gitlab-no-pat-oauth-flow
ci/prow/v12-bitbucket-no-pat-oauth-flow f13bde0 link true /test v12-bitbucket-no-pat-oauth-flow
ci/prow/v12-gitlab-with-pat-setup-flow f13bde0 link true /test v12-gitlab-with-pat-setup-flow
ci/prow/v12-github-no-pat-oauth-flow f13bde0 link true /test v12-github-no-pat-oauth-flow

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@vinokurig vinokurig merged commit 9d43803 into main Sep 6, 2023
4 checks passed
@vinokurig vinokurig deleted the che-22368 branch September 6, 2023 11:15
@devstudio-release
Copy link

Build 3.10 :: server_3.x/212: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.10 :: server_3.x/213: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.10 :: get-sources-rhpkg-container-build_3.x/4186: FAILURE

server : 3.x :: Failed in 55145861 : BREW:BUILD/STATUS:UNKNOWN
FAILURE:; copied to quay

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.10 :: get-sources-rhpkg-container-build_3.x/4187: FAILURE

server : 3.x :: Failed in 55145886 : BREW:BUILD/STATUS:UNKNOWN
FAILURE:; copied to quay

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.

Starting a new workspace from a RAW devfile URL doesn't support URL parameter for the devfile file name
5 participants