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

[Test] Correctly patch DevSpaces sample devfiles #22187

Merged
merged 5 commits into from
May 1, 2023
Merged

Conversation

SkorikSergey
Copy link
Contributor

@SkorikSergey SkorikSergey commented May 1, 2023

What does this PR do?

Patch sample devfiles in performance tests as we do in API tests.

What issues does this PR fix or reference?

After getting devfile yaml file from devfile-registry add next envs to dwt and dw:

          env:
            - name: CHE_DASHBOARD_URL
              value: '$devspacesUrl'
            - name: CHE_PLUGIN_REGISTRY_URL
              value: $devspacesUrl/plugin-registry/v3
            - name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
              value: http://plugin-registry.openshift-devspaces.svc:8080/v3

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.

@SkorikSergey SkorikSergey added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. area/qe labels May 1, 2023
@SkorikSergey SkorikSergey self-assigned this May 1, 2023
@che-bot che-bot added the target/branch Indicates that a PR will be merged into a branch other than master. label May 1, 2023
@SkorikSergey SkorikSergey marked this pull request as ready for review May 1, 2023 15:14
@@ -30,7 +30,7 @@ spec:
value: REPLACE_PASSWORD
- name: KUBECONFIG
value: /tmp/.kube/config
image: quay.io/openshift/origin-cli
image: quay.io/sskoryk/performance
Copy link
Contributor

@dmytro-ndp dmytro-ndp May 1, 2023

Choose a reason for hiding this comment

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

would you consider not a personal organization, but https://quay.io/repository/crw_pr/performance ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

Copy link
Contributor

@dmytro-ndp dmytro-ndp May 1, 2023

Choose a reason for hiding this comment

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

If quay.io/sskoryk/performance is built using tests/performance/Dockerfile, then it is a useful information for readme.md file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I will add it.

cat dwt.yaml

yq -y ".spec.template.components[0].container.env += $patch" dw.yaml -i
yq -y '.spec += {"routingClass": "che"}' dw.yaml -i
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to do it if use DevWorkspace generator tool (issue #22149)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now it doesn't work correctly. Valerii said that it will work in DS 3.7.0. I need these changes to test DS 3.6.0.

@SkorikSergey SkorikSergey merged commit fb4c7e9 into main May 1, 2023
@SkorikSergey SkorikSergey deleted the patchDevfile branch May 1, 2023 15:56
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label May 1, 2023
SkorikSergey added a commit that referenced this pull request May 2, 2023
nallikaea pushed a commit to nallikaea/che that referenced this pull request May 9, 2023
nallikaea pushed a commit to nallikaea/che that referenced this pull request Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qe target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants